[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/ |
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/ |
cchaos
left a comment
There was a problem hiding this comment.
Thanks for tackling this one!
| ); | ||
|
|
||
| const levelClasses = classNames('euiRangeLevel', { | ||
| 'euiRangeLevel--customColor': isHexColor, |
There was a problem hiding this comment.
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/ |
cchaos
left a comment
There was a problem hiding this comment.
👍 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
EuiRangeLevelcolorproperty 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