Skip to content

Dropdown component should allow the role to be overriden (Accessibility) #1268

Description

@tdroeske

Bug Report

  • Package version(s): 1.14

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? (Yes, No)
No

Requested priority: (Blocking, High, Normal, Low)
Normal

Describe the issue:

The Dropdown component has a role of "combobox". Our accessibility guidelines say that the role should be "listbox" since it is a simple dropdown and there is not editable aspect to it. We need to override the role but it isn't exposed.

Actual behavior:

Role is hard coded as "combobox".

Expected behavior:

Consumers should be able to override the role so accessibility needs can be met.

If applicable, please provide a codepen repro:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions