Quick search box can't be activated in screen reader browse mode
Categories
(bugzilla.mozilla.org :: User Interface, defect)
Tracking
()
| Accessibility Severity | s3 |
People
(Reporter: Jamie, Assigned: glob)
References
Details
(Keywords: access)
Attachments
(1 file)
STR (with the NVDA screen reader):
- Go to https://bugzilla.mozilla.org/
- Press control+home to ensure you're at the top of the document.
- Press e to find the search edit box. Observe that there's no edit box.
- Press c to jump to the search combo box.
- Press enter.
- Expected: The search box gets focus, ready for input.
- Actual: Nothing happens.
Recently (a few days ago?), the quick search input control was wrapped in a role="combobox". However, the first child of that combobox is a heading. A combobox itself shouldn't contain a heading, although it can be labelled by one. Since the heading is the first child of a combobox, NVDA only renders that and doesn't render the text box.
I would recommend either:
- Removing the combobox role altogether and instead labelling the input. I don't think the combobox serves any purpose here. As far as I can tell, the combo box doesn't seem to expand a list anyway.
- If there really is a pop-up suggestions list and I just haven't seen it for some reason, the heading should be moved outside of the combobox.
For now, I can work around this by manually tabbing to the input in focus mode, but this is a pretty significant efficiency killer.
What's changed is the index page used to have a search field in addition to the one that's present in the header. To avoid duplication the search field on the index page has been removed, so you're now hitting the one from the header.
Focusing the search field does display a list of suggestions (#header-search-dropdown, has a role of listbox), so comboxbox appears to be correct.
The header (#header-search-label) within the combobox is not visible: it's positioned absolutely off screen at left: -99999px. I don't know why this is, but as it appears to be getting in the way we should just remove it.
While we're here we should probably add a keyboard shortcut to focus the search field.
Testing with NVDA hitting e indeed tells me there's no next edit field.
However, hitting c tells me there's no combo box.
I'll see if I can grab you on Slack to guide me through reproducing this locally.
| Reporter | ||
Comment 3•3 years ago
|
||
(In reply to :glob ✱ from comment #2)
However, hitting c tells me there's no combo box.
I think this is outdated compared to our conversation on Slack, but for the record, I can reproduce this in Chromium but not Firefox. The reason for that is a slight difference in the way Chromium exposes this combobox. Either way, removing the inner heading should fix it in both browsers.
Comment 4•3 years ago
|
||
Comment 5•3 years ago
|
||
Updated•2 years ago
|
Description
•