File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,20 @@ import Copy from '../images/copy.svg';
3535function withLabel ( SvgComponent ) {
3636 const StyledIcon = styled ( SvgComponent ) `
3737 &&& {
38- color: ${ prop ( ' Icon.default' ) } ;
38+ color: ${ ( props ) => props . Icon ? .default } ;
3939 & g,
4040 & path,
4141 & polygon {
4242 opacity: 1;
43- fill: ${ prop ( ' Icon.default' ) } ;
43+ fill: ${ ( props ) => props . Icon ? .default } ;
4444 }
4545 &:hover {
46- color: ${ prop ( ' Icon.hover' ) } ;
46+ color: ${ ( props ) => props . Icon ? .hover } ;
4747 & g,
4848 & path,
4949 & polygon {
5050 opacity: 1;
51- fill: ${ prop ( ' Icon.hover' ) } ;
51+ fill: ${ ( props ) => props . Icon ? .hover } ;
5252 }
5353 }
5454 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const Banner = ({ onClose }) => {
3636 < div className = "banner" >
3737 < a href = { bannerURL } > { bannerCopy } </ a >
3838 < button className = "banner-close-button" onClick = { onClose } >
39- < CrossIcon />
39+ < CrossIcon Icon = { { default : '#000' , hover : '#333' } } />
4040 </ button >
4141 </ div >
4242 ) ;
Original file line number Diff line number Diff line change 88
99 a {
1010 color : $black ;
11- }
1211
13- a :hover {
14- color : $black ;
15- text-decoration : underline ;
12+ & :hover {
13+ color : $black ;
14+ text-decoration : underline ;
15+ }
1616 }
1717
1818 @media (max-width : 770px ) {
2828 height : 20px ;
2929 width :20px ;
3030 float : right ;
31+ cursor : pointer ;
3132}
You can’t perform that action at this time.
0 commit comments