Skip to content

Review allowed roles for button #375

Closed
@ZoeBijl

Description

@ZoeBijl

With the introduction of a select only combobox (no text input), would it make sense to allow role=combobox on <button>?

<button
    aria-label="Tag"
    role="combobox"
    aria-activedescendant="selected_option"
    aria-autocomplete="list"
    aria-controls="owned_listbox"
    aria-expanded="true"
    aria-haspopup="listbox"
    type="button"
>
    Zoom
</button>
<ul role="listbox" id="owned_listbox">
    <li role="option">Zebra</li>
    <li role="option" id="selected_option">Zoom</li>
</ul>

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARIA 1.2 relatedIssues directly related to updates in ARIA 1.2Allowed rolesPertaining to the allowed roles of HTML elements

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions