Open Bug 1566493 Opened 5 years ago Updated 2 years ago

Hiding radio buttons in a group breaks keyboard access

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

68 Branch
defect

Tracking

()

People

(Reporter: perrytrinier+github, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Please see https://output.jsbin.com/pufuxivozu .
The setup is that there is a list of radio buttons wrapped by label elements. The label elements are hidden using the hidden attribute when the list of radio buttons is filtered to only the matching items.

Actual results:

Once the list of radios is filtered, when you tab to the radio button group the keyboard access is not working as expected. Arrow keys are not moving the selection within the radio group. Additionally, if you tab away from the radio group and attempt to tab back into it, there is nothing focusable in the group.

Expected results:

The expected result is that arrow keys will work properly to change selection within the group even after the list of radio buttons has been filtered. Also, once focus has left the group it should be possible to focus the radio group again. The expected behaviour was observed in the latest stable Chrome and Safari.

I can reproduce the issue. Chrome works as expected.

Status: UNCONFIRMED → NEW
Component: Untriaged → Disability Access
Ever confirmed: true

Moving to keyboard navigation for now, although this is keyboard navigation within the rendered HTML, not the browser chrome.

Component: Disability Access → Keyboard Navigation

(In reply to Marco Zehe (:MarcoZ) from comment #2)

Moving to keyboard navigation for now, although this is keyboard navigation within the rendered HTML, not the browser chrome.

Right, this belongs in Core. I'm used to it, the Keyboard Navigation component is a dumping ground for bugs that belong elsewhere. :)

Component: Keyboard Navigation → User events and focus handling
Product: Firefox → Core
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.