-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(material/list): fix action-list focus state for high contrast fir… #23584
Conversation
…efox Fixes the focus state on the action-list for firefox in high-contrast mode. In firefox, the outline only renders on the top, right and left – not the bottom. This fixes the bottom of the outline being cut-off by setting the z-index of the focused list item to 1. fixes angular#23583
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…efox (#23584) Fixes the focus state on the action-list for firefox in high-contrast mode. In firefox, the outline only renders on the top, right and left – not the bottom. This fixes the bottom of the outline being cut-off by setting the z-index of the focused list item to 1. fixes #23583 (cherry picked from commit ef4fc56)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…efox
From the commit message
Fixes the focus state on the action-list for firefox in high-contrast
mode. In firefox, the outline only renders on the top, right and left –
not the bottom. This fixes the bottom of the outline being cut-off by
setting the z-index of the focused list item to 1.
fixes #23583
Other things I've tried
Also tried using margin but that turned out to be harder than this because we would also have to update the background of the list. This seems to only happen with buttons inside the list, but works fine with divs. I know that outline works differently between Firefox and Chrome, but I couldn't find a specific bug report for this situation.
I also considered ditching outline and using a box-shadow instead, but then the action-list's focus state would match our nav-list and other lists.