diff --git a/CHANGELOG.md b/CHANGELOG.md index 873a2c2..7ed38c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ # Popover Attribute Polyfill Changelog -## UNRELEASED +## 0.0.10: 2023-03-03 -- 🏠 INTERNAL: Upgrade dependencies - 🚀 NEW: Add support for `aria-expanded` on invokers -- [#77](https://github.com/oddbird/popover-polyfill/pull/77) +- 🏠 INTERNAL: Upgrade dependencies ## 0.0.9: 2023-02-03 diff --git a/README.md b/README.md index da57774..765e3be 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ attributes to the HTMLElement class. ## Caveats -This polyfill is not a perfect replacement for the native behavior, there are +This polyfill is not a perfect replacement for the native behavior; there are some caveats which will need accommodations: - Native `popover` has an `:open` and `:closed` pseudo selector state. This is @@ -98,7 +98,7 @@ some caveats which will need accommodations: - Using native `:open` in CSS that does not support native `popover` results in an invalid selector, and so the entire declaration is thrown away. This is important because if you intend to style a popover using `.\:open` it - will need to be a separate declaration. e.g. + will need to be a separate declaration. For example, `[popover]:open, [popover].\:open` will not work. - Native `popover` elements use the `:top-layer` pseudo element which gets @@ -108,7 +108,7 @@ some caveats which will need accommodations: `overflow:` or `position:` CSS, then there will be visual differences between the polyfill and the native behavior. -- Native _invokers_ (that is: buttons or inputs using the `popoverHideTarget`, +- Native _invokers_ (that is, buttons or inputs using the `popoverHideTarget`, `popoverShowTarget`, or `popoverToggleTarget` attributes) on `popover=auto` will render in the accessibility tree as elements with `expanded`. The only way to do this in the polyfill is setting the `aria-expanded` attribute on diff --git a/package-lock.json b/package-lock.json index 5584aaf..e36a30c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@oddbird/popover-polyfill", - "version": "0.0.9", + "version": "0.0.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@oddbird/popover-polyfill", - "version": "0.0.9", + "version": "0.0.10", "license": "BSD-3-Clause", "devDependencies": { "@playwright/test": "^1.31.2", - "@types/node": "^18.14.6", + "@types/node": "*", "@typescript-eslint/eslint-plugin": "^5.54.0", "@typescript-eslint/parser": "^5.54.0", "esbuild": "^0.17.10", diff --git a/package.json b/package.json index 97110c4..9aeaef4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oddbird/popover-polyfill", - "version": "0.0.9", + "version": "0.0.10", "description": "Popover Attribute Polyfill", "license": "BSD-3-Clause", "publishConfig": { @@ -87,7 +87,7 @@ }, "devDependencies": { "@playwright/test": "^1.31.2", - "@types/node": "^18.14.6", + "@types/node": "*", "@typescript-eslint/eslint-plugin": "^5.54.0", "@typescript-eslint/parser": "^5.54.0", "esbuild": "^0.17.10",