Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.20.0, 5.3.1
-
Severity 2 - Major
-
Description
Issue Summary
The element appears and functions like a combobox but is missing required ARIA role(s) and/or attribute(s).
Element name:
- Jira filter
Location of the element: Combobox, in the "Connected tickets" tab section content, in the main content.
Note: The same issue applies to the "All actors" Combobox, in the "History" tab section content, in the main content.
Steps to reproduced
- Open the homepage
- Navigate to the "Assets" link and activate it
- Navigate to "Search for object" and activate it
- Navigate to the input field and search for the object
- Navigate to the links present in the table and activate it
- Try to access the “Jira Filter“ custom combobox with a screen reader on
Actual Results
The role is not provided for the “Jira Filter” custom combobox. In addition, a label is not provided for the mentioned combobox.
Following problems found with custom combobox →
- The custom combobox is missing the role of combobox.
- There is no accessible name for this combobox.
- role=”option” is missing for combobox options.
- The accessible name for this combobox is not announced for screen reader users.
Due to this, screen reader users may not be able to use the functionality effectively.
Expected Results
Making custom combobox accessible →
- role="combobox" and aria-autocomplete="list" to the <input> element to announce the correct role for this field.
- aria-expanded property to the <input> element and toggle its value programmatically to true/ false depending on the expanded/ collapsed state of combobox.
- <div> element with role=”listbox” and a unique id.
- “aria-owns” attribute to <input> element having value of id property of <div> element.
- role=”option” and unique id to the <div> elements present for options present for combobx.
- aria-activedescendant property to the <input> element having value as id property of <li> element
- A visible label such as “Jira filter” should be provided for Combobox using <label> element. Additionally “for“ and “id” attribute should be used to associate the label with its corresponding input field.
- If visible label is not feasible option then provide the label via "aria-label" attribute or off-screen <label> element.
For details on implementation, please see this example → https://www.w3.org/favicon.icoEditable Combobox With List Autocomplete Example
Screenshot
Workaround
Not Available
Bug Ref: 746820
Bulldog Ref:
Attachments
Issue Links
- relates to
-
JSDSERVER-11493 Search Result selection (select any of the options from the search results) : Combobox: Combobox is missing appropriate roles and/or attributes
- Closed