diff --git a/CHANGELOG.md b/CHANGELOG.md index 59adb8d..f2d1eb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Popover Attribute Polyfill Changelog -## UNRELEASED +## 0.0.7: 2023-01-19 +- 🐛 BUGFIX: Fix display issue with native popups -- + [#64](https://github.com/oddbird/popover-polyfill/pull/64) - 🐛 BUGFIX: Remove `stopPropagation` to allow handlers -- [#63](https://github.com/oddbird/popover-polyfill/pull/63) diff --git a/package-lock.json b/package-lock.json index ef677f0..80ad33e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@oddbird/popover-polyfill", - "version": "0.0.6", + "version": "0.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@oddbird/popover-polyfill", - "version": "0.0.6", + "version": "0.0.7", "license": "BSD-3-Clause", "devDependencies": { "@playwright/test": "^1.29.2", diff --git a/package.json b/package.json index 6f4ce9f..61cd492 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oddbird/popover-polyfill", - "version": "0.0.6", + "version": "0.0.7", "description": "Popover Attribute Polyfill", "license": "BSD-3-Clause", "publishConfig": { diff --git a/src/popover.css b/src/popover.css index 8825d5c..814bb81 100644 --- a/src/popover.css +++ b/src/popover.css @@ -13,16 +13,13 @@ } /* stylelint-disable selector-class-pattern */ -[popover]:not(.\:open) { - display: none; +@supports not selector([popover]:open) { + [popover]:not(.\:open) { + display: none; + } } /* stylelint-enable selector-class-pattern */ [popover][anchor] { inset: auto; } - -/* Necessary for compatibility with Chrome */ -[popover]:not(:-internal-popover-hidden) { - display: block; -}