Issue Description
In Cockpit's New Object wizard, using arrow keys to select which type of object to create resulted in a change of context. A "change of context" simply means that if an up or down arrow key is pressed to select a previous or next option, the focus changes over to the close button; thus a "change of context" disorients users who must rely on keyboard for navigation. This is impactful for those who have motor impairments and can affect users who have mental or memory disabilities. This fails Web Content Accessibility Guidelines 2.2 Success Criterion 2.4.3 Focus Order. This also affects 3.2.2 On Input which is affected by DOM reload.
Package Version and Platform:
- Platform: Arch Linux rolling release
- Package and version: cockpit 364-1, 389-ds-base 3.3.0-1
- Browser Firefox
Steps to Reproduce
- Login to Cockpit, open 389 Directory Server, and in an opened instance, navigate to LDAP Browser.
- Navigate to any of the objects in the LDAP database.
- Navigate to the menu next to the Distinguished Name and navigate to New.
- Navigate to the radio buttons by using the TAB key. The focus outline does not seem to be visible in the dark theme (2.4.7, Level AA Focus Visible)
- Press the down arrow key. Instead of selecting "Create a New Group", a "Create a new Organization Unit" is selected.
- Observe the location of the focus outline. The focus is now in the Close button.
- Navigate back to the set of radio buttons. "Create a new Organization Unit" should be selected.
- Repeat the process by pressing the down arrow key to select "Create a new Role".
- The "Close" button is now in focus.
- Repeat this again with both the down and up arrow keys. Each time the arrow keys is pressed, the Close button always receives focus.
- If any of the radio buttons are clicked other than what is selected, the close button may not receive the focus outline, but by activating the context menu FROM the keyboard (not the mouse) by pressing the menu key or by Shift+F10, the context menu shows up near the close button, which does receive focus, but again, no focus outline is shown because a pointing device such as a mouse is used.
Expected results
The focus must stay as they are within a group of radio buttons until the user presses the TAB or Shift+Tab key to get out of the group of radio buttons.
Screenshots

Additional Notes
While contemplating my thoughts and while preparing myself to get some sleep at the time of writing, I must have realized that the DOM within the dialog must have reloaded the radio buttons which causes the focus to redirect to Close button. I confirmed the entire dialog just flashed when using the down arrow key and sure enough, the DOM for the dialog got reloaded. Now to get some sleep because I have work tomorrow... (sigh)
Issue Description
In Cockpit's New Object wizard, using arrow keys to select which type of object to create resulted in a change of context. A "change of context" simply means that if an up or down arrow key is pressed to select a previous or next option, the focus changes over to the close button; thus a "change of context" disorients users who must rely on keyboard for navigation. This is impactful for those who have motor impairments and can affect users who have mental or memory disabilities. This fails Web Content Accessibility Guidelines 2.2 Success Criterion 2.4.3 Focus Order. This also affects 3.2.2 On Input which is affected by DOM reload.
Package Version and Platform:
Steps to Reproduce
Expected results
The focus must stay as they are within a group of radio buttons until the user presses the TAB or Shift+Tab key to get out of the group of radio buttons.
Screenshots

Additional Notes
While contemplating my thoughts and while preparing myself to get some sleep at the time of writing, I must have realized that the DOM within the dialog must have reloaded the radio buttons which causes the focus to redirect to Close button. I confirmed the entire dialog just flashed when using the down arrow key and sure enough, the DOM for the dialog got reloaded. Now to get some sleep because I have work tomorrow... (sigh)