Skip to content

Commit c0b70b1

Browse files
committed
Merge branch 'release-2.16.10' into release
2 parents ec0d4e9 + 3755844 commit c0b70b1

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

client/common/icons.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import styled from 'styled-components';
4-
import { prop } from '../theme';
54
import SortArrowUp from '../images/sort-arrow-up.svg';
65
import SortArrowDown from '../images/sort-arrow-down.svg';
76
import Github from '../images/github.svg';
@@ -35,20 +34,20 @@ import Copy from '../images/copy.svg';
3534
function withLabel(SvgComponent) {
3635
const StyledIcon = styled(SvgComponent)`
3736
&&& {
38-
color: ${prop('Icon.default')};
37+
color: ${(props) => props.Icon?.default};
3938
& g,
4039
& path,
4140
& polygon {
4241
opacity: 1;
43-
fill: ${prop('Icon.default')};
42+
fill: ${(props) => props.Icon?.default};
4443
}
4544
&:hover {
46-
color: ${prop('Icon.hover')};
45+
color: ${(props) => props.Icon?.hover};
4746
& g,
4847
& path,
4948
& polygon {
5049
opacity: 1;
51-
fill: ${prop('Icon.hover')};
50+
fill: ${(props) => props.Icon?.hover};
5251
}
5352
}
5453
}

client/images/cross.svg

Lines changed: 1 addition & 1 deletion
Loading

client/modules/IDE/components/Banner.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const Banner = ({ onClose }) => {
2626
const bannerURL = 'https://openprocessing.org/curation/89576';
2727
const bannerCopy = (
2828
<>
29-
We’re accepting p5.js sketches for a special curation exploring the new
30-
features in p5.js 2.0!{' '}
29+
We’re accepting p5.js sketches for a special curation exploring mental
30+
health and the newest features in p5.js 2.0!{' '}
3131
<span style={{ fontWeight: 600 }}>Submit by July 13!</span>
3232
</>
3333
);
@@ -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/modules/IDE/components/Header/__snapshots__/Nav.unit.test.jsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ exports[`Nav renders dashboard version for mobile 1`] = `
335335
>
336336
<test-file-stub
337337
aria-hidden="true"
338-
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
338+
classname="icons__StyledIcon-sc-xmer15-0 kjSZIe"
339339
focusable="false"
340340
/>
341341
</button>
@@ -351,7 +351,7 @@ exports[`Nav renders dashboard version for mobile 1`] = `
351351
>
352352
<test-file-stub
353353
aria-hidden="true"
354-
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
354+
classname="icons__StyledIcon-sc-xmer15-0 kjSZIe"
355355
focusable="false"
356356
/>
357357
</button>
@@ -930,7 +930,7 @@ exports[`Nav renders editor version for mobile 1`] = `
930930
>
931931
<test-file-stub
932932
aria-hidden="true"
933-
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
933+
classname="icons__StyledIcon-sc-xmer15-0 kjSZIe"
934934
focusable="false"
935935
/>
936936
</button>
@@ -946,7 +946,7 @@ exports[`Nav renders editor version for mobile 1`] = `
946946
>
947947
<test-file-stub
948948
aria-hidden="true"
949-
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
949+
classname="icons__StyledIcon-sc-xmer15-0 kjSZIe"
950950
focusable="false"
951951
/>
952952
</button>

client/styles/components/_banner.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
border-bottom: 1px solid #000;
88

99
a {
10-
color: #000;
11-
}
10+
color: $black;
1211

13-
a:hover {
14-
text-decoration: underline;
12+
&:hover {
13+
color: $black;
14+
text-decoration: underline;
15+
}
1516
}
1617

1718
@media (max-width: 770px) {
@@ -27,4 +28,5 @@
2728
height: 20px;
2829
width:20px;
2930
float: right;
31+
cursor: pointer;
3032
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js-web-editor",
3-
"version": "2.16.9",
3+
"version": "2.16.10",
44
"description": "The web editor for p5.js.",
55
"scripts": {
66
"clean": "rimraf dist",

0 commit comments

Comments
 (0)