File tree Expand file tree Collapse file tree 7 files changed +21
-20
lines changed Expand file tree Collapse file tree 7 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import styled from 'styled-components' ;
4
- import { prop } from '../theme' ;
5
4
import SortArrowUp from '../images/sort-arrow-up.svg' ;
6
5
import SortArrowDown from '../images/sort-arrow-down.svg' ;
7
6
import Github from '../images/github.svg' ;
@@ -35,20 +34,20 @@ import Copy from '../images/copy.svg';
35
34
function withLabel ( SvgComponent ) {
36
35
const StyledIcon = styled ( SvgComponent ) `
37
36
&&& {
38
- color: ${ prop ( ' Icon.default' ) } ;
37
+ color: ${ ( props ) => props . Icon ? .default } ;
39
38
& g,
40
39
& path,
41
40
& polygon {
42
41
opacity: 1;
43
- fill: ${ prop ( ' Icon.default' ) } ;
42
+ fill: ${ ( props ) => props . Icon ? .default } ;
44
43
}
45
44
&:hover {
46
- color: ${ prop ( ' Icon.hover' ) } ;
45
+ color: ${ ( props ) => props . Icon ? .hover } ;
47
46
& g,
48
47
& path,
49
48
& polygon {
50
49
opacity: 1;
51
- fill: ${ prop ( ' Icon.hover' ) } ;
50
+ fill: ${ ( props ) => props . Icon ? .hover } ;
52
51
}
53
52
}
54
53
}
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ const Banner = ({ onClose }) => {
26
26
const bannerURL = 'https://openprocessing.org/curation/89576' ;
27
27
const bannerCopy = (
28
28
< >
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!{ ' ' }
31
31
< span style = { { fontWeight : 600 } } > Submit by July 13!</ span >
32
32
</ >
33
33
) ;
@@ -36,7 +36,7 @@ const Banner = ({ onClose }) => {
36
36
< div className = "banner" >
37
37
< a href = { bannerURL } > { bannerCopy } </ a >
38
38
< button className = "banner-close-button" onClick = { onClose } >
39
- < CrossIcon />
39
+ < CrossIcon Icon = { { default : '#000' , hover : '#333' } } />
40
40
</ button >
41
41
</ div >
42
42
) ;
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ exports[`Nav renders dashboard version for mobile 1`] = `
335
335
>
336
336
<test-file-stub
337
337
aria-hidden = " true"
338
- classname = " icons__StyledIcon-sc-xmer15-0 dStXqm "
338
+ classname = " icons__StyledIcon-sc-xmer15-0 kjSZIe "
339
339
focusable = " false"
340
340
/>
341
341
</button >
@@ -351,7 +351,7 @@ exports[`Nav renders dashboard version for mobile 1`] = `
351
351
>
352
352
<test-file-stub
353
353
aria-hidden = " true"
354
- classname = " icons__StyledIcon-sc-xmer15-0 dStXqm "
354
+ classname = " icons__StyledIcon-sc-xmer15-0 kjSZIe "
355
355
focusable = " false"
356
356
/>
357
357
</button >
@@ -930,7 +930,7 @@ exports[`Nav renders editor version for mobile 1`] = `
930
930
>
931
931
<test-file-stub
932
932
aria-hidden = " true"
933
- classname = " icons__StyledIcon-sc-xmer15-0 dStXqm "
933
+ classname = " icons__StyledIcon-sc-xmer15-0 kjSZIe "
934
934
focusable = " false"
935
935
/>
936
936
</button >
@@ -946,7 +946,7 @@ exports[`Nav renders editor version for mobile 1`] = `
946
946
>
947
947
<test-file-stub
948
948
aria-hidden = " true"
949
- classname = " icons__StyledIcon-sc-xmer15-0 dStXqm "
949
+ classname = " icons__StyledIcon-sc-xmer15-0 kjSZIe "
950
950
focusable = " false"
951
951
/>
952
952
</button >
Original file line number Diff line number Diff line change 7
7
border-bottom : 1px solid #000 ;
8
8
9
9
a {
10
- color : #000 ;
11
- }
10
+ color : $black ;
12
11
13
- a :hover {
14
- text-decoration : underline ;
12
+ & :hover {
13
+ color : $black ;
14
+ text-decoration : underline ;
15
+ }
15
16
}
16
17
17
18
@media (max-width : 770px ) {
27
28
height : 20px ;
28
29
width :20px ;
29
30
float : right ;
31
+ cursor : pointer ;
30
32
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " p5.js-web-editor" ,
3
- "version" : " 2.16.9 " ,
3
+ "version" : " 2.16.10 " ,
4
4
"description" : " The web editor for p5.js." ,
5
5
"scripts" : {
6
6
"clean" : " rimraf dist" ,
You can’t perform that action at this time.
0 commit comments