Skip to content

Using Arrow Keys in New Object Wizard Resulted in DOM Reload #7637

Description

@GraysonPeddie

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

  1. Login to Cockpit, open 389 Directory Server, and in an opened instance, navigate to LDAP Browser.
  2. Navigate to any of the objects in the LDAP database.
  3. Navigate to the menu next to the Distinguished Name and navigate to New.
  4. 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)
  5. Press the down arrow key. Instead of selecting "Create a New Group", a "Create a new Organization Unit" is selected.
  6. Observe the location of the focus outline. The focus is now in the Close button.
  7. Navigate back to the set of radio buttons. "Create a new Organization Unit" should be selected.
  8. Repeat the process by pressing the down arrow key to select "Create a new Role".
  9. The "Close" button is now in focus.
  10. Repeat this again with both the down and up arrow keys. Each time the arrow keys is pressed, the Close button always receives focus.
  11. 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
Radio buttons in New Object Wizard redirecting focus to close button

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)

Metadata

Metadata

Assignees

Labels

cockpitCockpit UI Pluginneeds triageThe issue will be triaged during scrum

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions