-
Notifications
You must be signed in to change notification settings - Fork 844
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
[EuiIcon] Fix color prop for custom colors #4104
[EuiIcon] Fix color prop for custom colors #4104
Conversation
…from fill to color
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4104/ |
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 the fix @thefaded ! Just a couple extra suggestions but the solution works great.
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4104/ |
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 @thefaded ! LGTM, but your CL is now out of sync with master. Can you rebase and move your CL entry to the Bug fixes
before the latest version?
…tom-color-full-mono
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4104/ |
* Add fully mono support for EuiIcon custom color, change css property from fill to color
Summary
Fixes #4093
Add fully mono color support for
EuiIcon
when customcolor
prop is provided. Changed CSS property fromfill
tocolor
because under the hood all CSS classes uses variablecurrentColor
, so there's no any reason to providefill
, because it will be inherited fromcolor
. Absolutely the sameprimary
fromnamedColors
– they're providecolor
.Checklist
[ ] Checked Code Sandbox works for the any docs examples[ ] Checked for breaking changes and labeled appropriately