Skip to content

Commit 7e6cf07

Browse files
committed
Add roles that support text content for accessible name
1 parent 5fb4105 commit 7e6cf07

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

lib/components_guide_web/templates/accessibility_first/accessible-name.html.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,28 @@ These names are provided by HTML in a number of ways:
88
- `aria-labelledby` attribute
99
- `aria-label` attribute
1010
- The displayed value
11-
- The text content
11+
- The text content for the following roles:
12+
- button
13+
- cell
14+
- checkbox
15+
- columnheader
16+
- gridcell
17+
- heading
18+
- link
19+
- menuitem
20+
- menuitemcheckbox
21+
- menuitemradio
22+
- option
23+
- radio
24+
- row
25+
- rowgroup
26+
- rowheader
27+
- switch
28+
- tab
29+
- tooltip
30+
- tree
31+
- treeitem
32+
1233

1334
The algorithm is specified in [W3C’s Accessible Name and Description Computation](https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_te).
1435

0 commit comments

Comments
 (0)