bug(frontend): hidden collapsed-sidebar Settings button remains keyboard-focusable
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
- Open the Electron app with the sidebar expanded.
- Navigate to the visible Settings button using the keyboard.
- Press
Tabonce. - 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-hiddenis not set- visible text is empty
- CSS has
pointer-events: none - pressing
Tabfrom 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.