mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 04:56:06 +08:00
A11Y: Use listbox role for dropdowns (#14391)
This commit is contained in:
parent
bba973f0d5
commit
c13127b024
|
@ -18,7 +18,7 @@ export default Component.extend(UtilsMixin, {
|
|||
|
||||
selectKit: null,
|
||||
|
||||
role: "application",
|
||||
role: "listbox",
|
||||
|
||||
ariaLevel: 1,
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ export default SelectKitHeaderComponent.extend(UtilsMixin, {
|
|||
tagName: "summary",
|
||||
layout,
|
||||
classNames: ["single-select-header"],
|
||||
attributeBindings: ["name"],
|
||||
attributeBindings: ["name", "name:aria-label"],
|
||||
|
||||
focusIn(event) {
|
||||
event.stopImmediatePropagation();
|
||||
|
|
Loading…
Reference in New Issue
Block a user