-
Notifications
You must be signed in to change notification settings - Fork 842
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
Created a euiPaletteColorBlindBehindText
variant of the color blind palette
#2750
Conversation
1. Created SASS map for viz palette 2. Removed duplicated colors from other themes and use dist folder json instead 3. Created a SASS function to convert vis palette for use behind text
- $euiColorVisColors -> $euiPaletteColorBlind - SASS map now is a nested map containing direct hexes for both graphic and behindText variants - Created new vars for each behindText variant - Got rid of temp color function
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.
Code changes LGTM 👍
Looking now! Started yesterday evening and forgot to get back on it! |
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, just a single comment.
I like the theme cleanup and the moving of commonly used bits to /services!
This PR adds another palette called
euiPaletteColorBlindBehindText()
for use in places like EuiBadgeAs mentioned in #2455, we can increase the brightness of the color blind palette when using it with text. This creates an automatic palette for this use case.
It also updates the SASS by creating a new SASS map with both
graphic
andbehindText
variants.In the color guidelines page, the example has been updated to import the palette from JS and allowing the user to toggle between variants.
This palette is now being used directly by EuiBadge, EuiAvatar, EuiLoadingChart, and EuiComboBox's examples.
Checklist
[ ] Checked in mobile[ ] Props have proper autodocs[ ] Checked for breaking changes and labeled appropriately