-
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
Allow any <color> value in EuiIcon #1370
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,9 +204,10 @@ export const IconExample = { | |
text: ( | ||
<p> | ||
Use the <EuiCode>color</EuiCode> prop to assign a color for your icons. It | ||
can accept named colors from our pallete or a three or six color hex code. | ||
The default behavior is to inherit the text color as the SVG | ||
color <EuiCode>fill</EuiCode> property via <EuiCode>currentColor</EuiCode> in CSS. | ||
can accept named colors from our palette, a three or six color hex code, | ||
and rgb(r, g, b) or rgba(r, g, b, a) formats. The default behavior is to | ||
inherit the text color as the SVG color <EuiCode>fill</EuiCode> property | ||
via <EuiCode>currentColor</EuiCode> in CSS. | ||
chandlerprall marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add an example of the rgba/hsla to the docs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, the autodoc could use a note now. Right now it just says string or enum. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chandlerprall You can pull from one of my examples in the screenshot I pasted. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although, I pasted in a link in my docs suggestion re-write that points to all the valid color types. Maybe we should just reference that and not put more examples of things we don't want people to do in our docs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It also has way more examples of what is/isn't a valid color type. |
||
</p> | ||
), | ||
demo: <IconColors />, | ||
|
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.
This pointed at the wrong place