-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
mix-blend-mode causes all kinds of issues #8672
Comments
I don't think this can be solved simply. We probably need to do one of the following:
Let me know what you think would be ideal from an engineering perspective. |
Yeah, there is also the issue that once you set mix-blend-mode, all children seem to inherit this (similar to opacity) and you cannot unset this in a child. This is also the reason why I cannot have my nice blue drop feedback in light theme when dragging over tabs. If we do something about it, it should not be a hack. Maybe we go back to rgba() in tabs land? |
There are more issues with mix-blend: we lost LCD subpixel anti aliasing in the tabs control which will cause it to look blurry for some users. Marking as important because I would not want to ship July without a fix for this (going back to opacity?). |
We agreed in the UX meeting today to remove the |
👍 combined with the use of |
I pushed a change to remove mix-blend-mode from the tabs title. I did not introduce rgba() colors though and would like to wait for community feedback before reacting. |
@bpasero We still use |
@jrieken true, I saw that as well and it is probably very old. @bgashler1 do you have an idea why we have it? |
@jrieken @bpasero the Without this technique, it would look like this. A long time ago, we used a grayish selection which was not high enough in contrast to be accessibility compliant. Using this inverting technique hasn't caused any problems that I'm aware of and has been in the product for a long time. The alternative, which is currently not possible unless we add more logic, is to enable styling the text color of the selected text (beyond just allowing an overlay) and use black or very dark colors for all tokens when they're selected in the high-contrast theme. |
Issues:
The text was updated successfully, but these errors were encountered: