-
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
[Eui(Dual)Range] Updated EuiRangeLevel
color
property to accept CSS color values
#5171
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
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.
Thanks, @miukimiu!
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
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!
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.
Thanks for tackling this one!
); | ||
|
||
const levelClasses = classNames('euiRangeLevel', { | ||
'euiRangeLevel--customColor': isHexColor, |
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.
Just thinking out loud, and definitely not necessary, but we don't allow for consumers to pass custom classes or data-test-subj
to the levels at the moment. Should we do that, or should we just url
-ify the custom color ones and append that instead of just customColor
?
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
EuiRangeLevel
color
property to accept hex valuesEuiRangeLevel
color
property to accept CSS color values
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
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.
👍 Changes LGTM! Don't forget to rebase and update CL 😉
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5171/ |
Summary
Closes #4467.
This PR updates the
EuiRangeLevel
color
property to accept hex values.Ignore the levels not being positioned correctly (#5172)
Checklist
[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes