-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
component: SvgIconThe React component.The React component.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.
Description
Although the SVG font icons support a children prop, I am unable to pass in a defs element to define a custom linear gradient. I.e.:
import Stars from 'material-ui/svg-icons/action/stars';
<Stars
children={
<defs>
<linearGradient id="MyGradient">
<stop offset="5%" stopColor="#F60" />
<stop offset="95%" stopColor="#FF6" />
</linearGradient>
</defs>
}
className="star--half"
/>The icon renders without the defs element.
oliviertassinari and nimahkh
Metadata
Metadata
Assignees
Labels
component: SvgIconThe React component.The React component.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.