Skip to content

Commit 2103d41

Browse files
committed
[SvgIcon] Add support for color attribute
1 parent 75e2fd9 commit 2103d41

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/SvgIcon/SvgIcon.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ class SvgIcon extends Component {
8181

8282
const offColor = color ? color :
8383
style && style.fill ? style.fill :
84-
baseTheme.palette.textColor;
84+
'currentColor';
85+
8586
const onColor = hoverColor ? hoverColor : offColor;
8687

8788
const mergedStyles = Object.assign({
8889
display: 'inline-block',
90+
color: baseTheme.palette.textColor,
8991
fill: this.state.hovered ? onColor : offColor,
9092
height: 24,
9193
width: 24,

0 commit comments

Comments
 (0)