Skip to content

Commit

Permalink
Merge pull request #64 from oddbird/css-fix-native
Browse files Browse the repository at this point in the history
Update popover.css
  • Loading branch information
jgerigmeyer authored Jan 19, 2023
2 parents fff4f27 + cec78c6 commit d1be162
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
11 changes: 4 additions & 7 deletions src/popover.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d1be162

Please sign in to comment.