Closed Bug 2019988 Opened 2 months ago Closed 2 months ago

Update the panel-list variant of moz-select to use role="combobox"

Categories

(Toolkit :: UI Widgets, task)

task

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: hjones, Assigned: akulyk)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(1 file)

Based on some of the issues flagged in bug 2019492 it looks like we need to make improvements to the accessibility semantics of the panel-list variant of moz-select to have it announce properly to screen readers. According to :akulyk updating the panelTargetTemplate to have the following attributes causes this select to announce in the same way as the native select:

role="combobox"
aria-label=${ifDefined(this.ariaLabel)}
aria-labelledby="label"

We should double check if we need both the aria-label and aria-labelledby, since according to MDN aria-labelledby will take precedence over all other methods of providing an accessible name.

Assignee: nobody → akulyk
Whiteboard: [recomp]
Attachment #9548769 - Attachment description: WIP: Bug 2019988 - Update the panel-list variant of moz-select to use role="combobox" r=#recomp-reviewers,hjones → Bug 2019988 - Update the panel-list variant of moz-select to use role="combobox" r=#recomp-reviewers,hjones
Blocks: 2019492
Pushed by imoraru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f1370b7bcba0 https://hg.mozilla.org/integration/autoland/rev/0d7fd62a3b05 Revert "Bug 2019988 - Update the panel-list variant of moz-select to use role="combobox" r=hjones" for causing bc failures on browser_searchDefaultEngine.js.

Revert for causing bc failures on browser_searchDefaultEngine.js.

Flags: needinfo?(akulyk)
Flags: needinfo?(akulyk)
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: