Skip to content

Commit 669f010

Browse files
committed
Add changeset
1 parent fed27c3 commit 669f010

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.changeset/pretty-tigers-brake.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
"dom-accessibility-api": patch
3+
---
4+
5+
Use label attribute for naming of `<optgroup>` elements.
6+
7+
Given
8+
9+
```jsx
10+
<select>
11+
<optgroup label="foo">
12+
<option value="1">bar</option>
13+
</optgroup>
14+
</select>
15+
```
16+
17+
Previously the `<optgroup />` would not have an accessible name.
18+
Though [2D in `accname` 1.2](https://www.w3.org/TR/accname-1.2/) could be interpreted to use the `label` attribute:
19+
20+
> Otherwise, if the current node's native markup provides an attribute (e.g. title) or element (e.g. HTML label) that defines a text alternative, return that alternative [...]
21+
22+
This was confirmed in NVDA + FireFox.

0 commit comments

Comments
 (0)