Skip to content

Commit 1c67898

Browse files
release: 0.5.13 (#813)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5b0f48e commit 1c67898

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

.changeset/twelve-icons-dance.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# dom-accessibility-api changelog
22

3+
## 0.5.13
4+
5+
### Patch Changes
6+
7+
- [#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.
8+
9+
```diff
10+
const name = computeAccessibleName(<button title="from-title">from-content</button>);
11+
-'from-title' === name
12+
+'from-content' === name
13+
```
14+
15+
`<button title="from-title">from-content</button>` would previously compute the accessible name "from-title".
16+
This is correct in ACCNAME 1.2 but is changed in the latest editors draft.
17+
The latest editors draft specifically refers to HTML-AAM which says that the subtree should take precedent over the `title` attribute.
18+
`computeAccessibleName` now calculates "from-content" as the accessible name.
19+
320
## 0.5.12
421

522
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dom-accessibility-api",
33
"description": "Implements https://w3c.github.io/accname/",
4-
"version": "0.5.12",
4+
"version": "0.5.13",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
77
"type": "commonjs",

0 commit comments

Comments
 (0)