[Lens] (Accessibility) Focus mistakenly stops on righthand form #83591
Labels
accessibility best practice
bug
Fixes for quality problems that affect the customer experience
Feature:Lens
loe:small
Small Level of Effort
Project:Accessibility
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Firefox automatically allows users to place focus on all scrollable containers. This behavior differs from all webkit/chromium but is generally seen as a good accessibility improvement for a few reasons (users can scroll containers without tab stops in them, users can scroll before being teleported to the first tab stop in it which can be very problematic in long containers).
For some reason, this is being triggered on the right-hand sidebar (
div.lnsConfigPanel
) even when it isn't scrollable which is confusing (and not helped by the fact that firefox adds no focus state indicator for this.Generally, I'd say to not touch this but because we have a lot of tab stops in this scrollable container (so we don't have to worry about a user being teleported somewhere they can't see), we can safely remove this browser behavior by expressly telling Firefox we don't want it with a
tabIndex={-1}
.TLDR
Add
tabIndex={-1}
to.lnsConfigPanel
The text was updated successfully, but these errors were encountered: