Skip to content

ETT-801: fix a11y of sidebar mobile view#189

Merged
carylwyatt merged 1 commit intomainfrom
ETT-801-sidebar-focus
Mar 3, 2026
Merged

ETT-801: fix a11y of sidebar mobile view#189
carylwyatt merged 1 commit intomainfrom
ETT-801-sidebar-focus

Conversation

@carylwyatt
Copy link
Member

This ticket was originally about fixing the mobile sidebar because it was receiving focus when it was hidden.

I fixed that, but I realized two other things were not accessible about the "Options" button: the focus state of the button was not obvious and the "Options" button didn't have the correct markup/aria to express that the "accordion" (sidebar panel) was open/expanded.

This is staged on dev-3 for review: https://dev-3.babel.hathitrust.org/cgi/pt?id=1
Narrow your browser window until the sidebar disappears from view and you see the "Options" button appear under the navbar. Then use your keyboard to tab to the "Options" button. To test that the sidebar doesn't receive focus, keep tabbing past the options button. You should be able to see the blue focus ring as you tab back to the options button (instead of what it currently does, which is tab around in the closed sidebar that you can't see).

@carylwyatt carylwyatt requested a review from kron-spar March 2, 2026 19:41
Copy link
Contributor

@kron-spar kron-spar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to use the inspect tools to mock different mobile screen sizes from smaller phones to larger phones and can confirm that when tabbing around, the focus state was obvious and on the screen the whole time.

@carylwyatt carylwyatt merged commit e1ddc9e into main Mar 3, 2026
2 checks passed
@carylwyatt carylwyatt deleted the ETT-801-sidebar-focus branch March 3, 2026 19:42
@carylwyatt carylwyatt mentioned this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants