Skip to content

Commit fe5970f

Browse files
Added aria-label to the role="listbox" element (#2246)
1 parent 66404b7 commit fe5970f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_rules/aria-required-id-references-in6db8.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The `aria-controls` [attribute value][] of this `scrollbar` matches the `id` of
7878
The `aria-controls` [attribute value][] of this expanded `combobox` matches the `id` of the `ul` element in the same document.
7979

8080
```html
81-
<label for="tag_combo">Tag</label>
81+
<label for="tag_combo" id="tag_label">Tag</label>
8282
<input
8383
type="text"
8484
id="tag_combo"
@@ -87,7 +87,7 @@ The `aria-controls` [attribute value][] of this expanded `combobox` matches the
8787
aria-controls="popup_listbox"
8888
aria-activedescendant="selected_option"
8989
/>
90-
<ul role="listbox" id="popup_listbox">
90+
<ul role="listbox" id="popup_listbox" aria-labelledby="tag_label">
9191
<li role="option">Zebra</li>
9292
<li role="option" id="selected_option">Zoom</li>
9393
</ul>

0 commit comments

Comments
 (0)