From 1c67898de8c581d304a97f2cc85791d297c2b8ae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Mar 2022 09:26:12 +0100 Subject: [PATCH] release: 0.5.13 (#813) Co-authored-by: github-actions[bot] --- .changeset/twelve-icons-dance.md | 16 ---------------- CHANGELOG.md | 17 +++++++++++++++++ package.json | 2 +- 3 files changed, 18 insertions(+), 17 deletions(-) delete mode 100644 .changeset/twelve-icons-dance.md diff --git a/.changeset/twelve-icons-dance.md b/.changeset/twelve-icons-dance.md deleted file mode 100644 index 07e643ee..00000000 --- a/.changeset/twelve-icons-dance.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"dom-accessibility-api": patch ---- - -Prefer button subtree over `title` attribute. - -```diff - const name = computeAccessibleName(); --'from-title' === name -+'from-content' === name -``` - -`` would previously compute the accessible name "from-title". -This is correct in ACCNAME 1.2 but is changed in the latest editors draft. -The latest editors draft specifically refers to HTML-AAM which says that the subtree should take precedent over the `title` attribute. -`computeAccessibleName` now calculates "from-content" as the accessible name. diff --git a/CHANGELOG.md b/CHANGELOG.md index c69f5f6b..95afc9ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # dom-accessibility-api changelog +## 0.5.13 + +### Patch Changes + +- [#811](https://github.com/eps1lon/dom-accessibility-api/pull/811) [`5b0f48e`](https://github.com/eps1lon/dom-accessibility-api/commit/5b0f48e0668f77458396723751db498ba74d5686) Thanks [@eps1lon](https://github.com/eps1lon)! - Prefer button subtree over `title` attribute. + + ```diff + const name = computeAccessibleName(); + -'from-title' === name + +'from-content' === name + ``` + + `` would previously compute the accessible name "from-title". + This is correct in ACCNAME 1.2 but is changed in the latest editors draft. + The latest editors draft specifically refers to HTML-AAM which says that the subtree should take precedent over the `title` attribute. + `computeAccessibleName` now calculates "from-content" as the accessible name. + ## 0.5.12 ### Patch Changes diff --git a/package.json b/package.json index 99c63e61..32051e8f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dom-accessibility-api", "description": "Implements https://w3c.github.io/accname/", - "version": "0.5.12", + "version": "0.5.13", "main": "dist/index.js", "module": "dist/index.mjs", "type": "commonjs",