-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
<sl-icon color> inconsistencies #2382
Comments
I cant find an instance in the docs where we use
That doesnt come from us. It comes from which we use as the base for our custom element type so theres not a whole lot we can do to change it. |
Right here:
It does accept a
I think the docs should say the
|
Alas, it looks like you're right about
to the React wrappers. |
FWIW, the reason I raised this is that I was converting from another icon component that does support |
Describe the bug
The
<sl-icon>
docs sayAll of the examples in the docs show
style="color: #...;"
, notcolor="..."
.<sl-icon>
itself does acceptcolor
and sets it on the element, but that has no effect:The React wrapper also accepts
color?: string
, but it does nothing.To Reproduce
Create an
<sl=icon color="#fedcba">
Additional information
Recommended actions:
style="color: ..."
rather thancolor="..."
, consistent with the examples and the working code<sl-icon>
receives acolor
, emit a warning messagecolor
from the accepted attributes for<sl-icon>
and<SlIcon>
The text was updated successfully, but these errors were encountered: