-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiButton] Focus outlines are getting default browser color instead of custom in Firefox #5538
Comments
As a reminder, the idea is that there is a consistent experience within a single browser. We do not need to have a consistent experience across browsers. There's known performance issues with plugins that target specific browsers and there's no good way to do that in CSS. How would you propose we only target Chrome with this enhancement? |
@cchaos I agree that:
But in Firefox the experience used to be better. Right now there is not enough focus ring contrast for some buttons. It seems that But in FF the So after some thought, and because the problem is with Firefox. Here are some ideas. Option 1 ) We can target firefox instead of Chrome (that I agree is much more difficult) and specify the type of @-moz-document url-prefix() {
&:focus-visible {
outline-style: solid;
}
} Option 2) We can just define Here are some tests with for Let me know if you agree with any of the above two options. If there is something I might be missing. Or if you have a better idea. |
Ahhh, so I went back to the originating PR: #4242 Where you can see in the screenshot that FF & Safari were getting the right color for the outline, but it seems that the latest versions of these browsers broke that implementation. Sorry, I think I was misunderstanding where the problem was occurring (because I was certain that I had originally accounted for proper coloring/contrast in these other browsers, so I went on the defensive 🤦♀️ ). I think the main reason I forced I do agree, we need to fix Firefox, but I'm wary of both suggestions...
But no. 2 is a possibility, I'd just take the time to really test it out. The one other thing that I'll note here that I worry about is having too large of an |
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error. |
In Firefox 96.0 when we focus on any type of buttons they show the default browser color instead of custom.
Screen.Recording.2022-01-13.at.04.55.54.PM.mp4
In the past, these buttons were getting a square outline matching the current color. As we can see on the following comment:
eui/src/global_styling/reset/global_styles.tsx
Lines 66 to 71 in 4d9ba8d
Should we improve these styles to target chrome only?
eui/src/global_styling/reset/global_styles.tsx
Lines 76 to 79 in 4d9ba8d
The text was updated successfully, but these errors were encountered: