Skip to content

Commit 9c2d0e2

Browse files
committed
update icon styling
1 parent 2c3a6e1 commit 9c2d0e2

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

client/common/icons.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ import Copy from '../images/copy.svg';
3535
function 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
}

client/images/cross.svg

Lines changed: 1 addition & 1 deletion
Loading

client/modules/IDE/components/Banner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
);

client/styles/components/_banner.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
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) {
@@ -28,4 +28,5 @@
2828
height: 20px;
2929
width:20px;
3030
float: right;
31+
cursor: pointer;
3132
}

0 commit comments

Comments
 (0)