Skip to content

Better aria-expanded defaults for combobox #1177

Open
@WilcoFiers

Description

@WilcoFiers

Under combobox it says:

Authors MUST set aria-expanded to true on an element with role combobox when it is expanded and false when it is collapsed

Requiring authors to set the aria-expanded attribute explicitly, even when the correct value can be inferred from aria-controls seems like an unnecessary point of failure. Have the few user agents do the lifting on this, instead of making every author do it.

I thought about leaving a similar comment for aria-controls, but that one's a little tricker, as the control might not be in the DOM in its collapsed state, so its default can't be guaranteed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Matt King

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions