Update `:focus` to `:focus-visible` for super sidebar focus styles
What does this MR do and why?
Update :focus
to :focus-visible
for super sidebar focus styles
Screenshots or screen recordings
CleanShot_2023-03-20_at_10.39.47
How to set up and validate locally
- Enable the feature flag in rails console with
rails c
Feature.enable(:super_sidebar_nav)
- Enable the "New navigation" setting toggle from the user dropdown
- Collapse/expand the super sidebar with keyboard tdb/enter, a focus-ring should be shown when sidebar is expanded
- Use a mouse to toggle sidebar, no focus-ring should be visible
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Scott de Jonge