agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

bug(frontend): hidden collapsed-sidebar Settings button remains keyboard-focusable

Open Hardik180704 opened this issue 4 months ago • 0 comments

Description

When the sidebar is expanded, the Settings button from the collapsed sidebar rail remains in the keyboard tab order underneath the visible Settings row.

This creates a duplicate invisible focus stop for keyboard and screen-reader users.

Steps to reproduce

  1. Open the Electron app with the sidebar expanded.
  2. Navigate to the visible Settings button using the keyboard.
  3. Press Tab once.
  4. Focus moves to the hidden Settings button belonging to the collapsed sidebar rail.

Expected behavior

Only the currently visible Settings control should be focusable and exposed to assistive technologies.

Actual behavior

The hidden rail button receives keyboard focus even though it is not the active sidebar variant.

Verified on the native Electron renderer from the latest main:

  • hidden button has tabIndex=0
  • aria-hidden is not set
  • visible text is empty
  • CSS has pointer-events: none
  • pressing Tab from the visible Settings row focuses this hidden button

Possible fix

Remove the inactive sidebar variant from the tab order and accessibility tree, for example with tabIndex={-1} and aria-hidden="true", while ensuring those attributes switch correctly when the sidebar collapses. A focused keyboard-accessibility test should cover both expanded and collapsed states.

I am willing to work on this issue.

Hardik180704 avatar Jul 26 '26 20:07 Hardik180704