bughelp wanted
Repository metrics
- Stars
- (13,867 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Describe the bug
The <sl-icon> docs say
Icons inherit their color from the current text color. Thus, you can set the color property on the element or an ancestor to change the color.
All of the examples in the docs show style="color: #...;", not color="...".
<sl-icon> itself does accept color 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:
- change the documentation to describe
style="color: ..."rather thancolor="...", consistent with the examples and the working code - non-breaking change: if
<sl-icon>receives acolor, emit a warning message - breaking change: remove
colorfrom the accepted attributes for<sl-icon>and<SlIcon>