-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ColorPalette: Show checkered background through semi-transparent colors #47476
Conversation
Size Change: +32 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
98d0642
to
d36ff24
Compare
That could definitely be one way!
Yup! Next steps could be:
What do you think about this plan? |
Sounds great! Thank you! |
What?
Fix #42715
This PR addresses the above issue for
ColorPalette
, to make it possible to see the color being selected regardless of the set transparency.This change also highlights an existing issue where when transparency is adjusted, the text becomes inaccessible due to low contrast.
In the below screencasts, 'what it should look like' is based on the solution proposed here: #47373, which isn't included in this PR. Therefore, there's another screencast to show how the change in this PR differs from that and the current state in trunk.
Why?
To improve the UX by showing a preview of the selected color value regardless of transparency.
How?
By adding a class to the parent component and moving the background styles onto that so it is behind the selected custom color.
Testing Instructions
Screenshots or screencast '
Screen.Recording.2023-01-26.at.4.mp4
Screen.Recording.2023-01-26.at.4.2.mp4
Screen.Recording.2023-01-26.at.4.1.mp4