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';
29
29
// could also give these a default size, color, etc. based on the theme
30
30
// Need to add size to these - like small icon, medium icon, large icon. etc.
31
31
function 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' ) } ;
36
43
& g,
37
44
& path,
38
45
& polygon {
39
46
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' ) } ;
50
48
}
51
49
}
52
- ` ;
50
+ }
51
+ ` ;
53
52
53
+ const Icon = ( props ) => {
54
54
const { 'aria-label' : ariaLabel } = props ;
55
55
if ( ariaLabel ) {
56
56
return (
You can’t perform that action at this time.
0 commit comments