File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -29,28 +29,28 @@ import CircleInfo from '../images/circle-info.svg';
2929// could also give these a default size, color, etc. based on the theme
3030// Need to add size to these - like small icon, medium icon, large icon. etc.
3131function withLabel ( SvgComponent ) {
32- const Icon = ( props ) => {
33- const StyledIcon = styled ( SvgComponent ) `
34- &&& {
35- color: ${ prop ( 'Icon.default' ) } ;
32+ const StyledIcon = styled ( SvgComponent ) `
33+ &&& {
34+ color: ${ prop ( 'Icon.default' ) } ;
35+ & g,
36+ & path,
37+ & polygon {
38+ opacity: 1;
39+ fill: ${ prop ( 'Icon.default' ) } ;
40+ }
41+ &:hover {
42+ color: ${ prop ( 'Icon.hover' ) } ;
3643 & g,
3744 & path,
3845 & polygon {
3946 opacity: 1;
40- fill: ${ prop ( 'Icon.default' ) } ;
41- }
42- &:hover {
43- color: ${ prop ( 'Icon.hover' ) } ;
44- & g,
45- & path,
46- & polygon {
47- opacity: 1;
48- fill: ${ prop ( 'Icon.hover' ) } ;
49- }
47+ fill: ${ prop ( 'Icon.hover' ) } ;
5048 }
5149 }
52- ` ;
50+ }
51+ ` ;
5352
53+ const Icon = ( props ) => {
5454 const { 'aria-label' : ariaLabel } = props ;
5555 if ( ariaLabel ) {
5656 return (
You can’t perform that action at this time.
0 commit comments