fix(icons): scope white svgs to Icon components

This commit is contained in:
Leonard Kim 2019-09-17 10:50:58 -07:00 committed by virtuacoplenny
parent f5dba929a5
commit 92e7be34e3
2 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,7 @@ body {
}
}
svg {
.jitsi-icon svg {
fill: white;
}

View File

@ -11,7 +11,7 @@ type Props = {
/**
* Class name for the web platform, if any.
*/
className?: string,
className: string,
/**
* Color of the icon (if not provided by the style object).
@ -68,7 +68,7 @@ export default function Icon(props: Props) {
return (
<Container
className = { className }
className = { `jitsi-icon ${className}` }
style = { restStyle }>
<IconComponent
fill = { calculatedColor }
@ -79,3 +79,6 @@ export default function Icon(props: Props) {
);
}
Icon.defaultProps = {
className: ''
};