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 11import React from 'react' ;
22import PropTypes from 'prop-types' ;
33import styled from 'styled-components' ;
4- import { prop } from '../theme' ;
54import SortArrowUp from '../images/sort-arrow-up.svg' ;
65import SortArrowDown from '../images/sort-arrow-down.svg' ;
76import Github from '../images/github.svg' ;
@@ -35,20 +34,20 @@ import Copy from '../images/copy.svg';
3534function 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 }
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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 ) {
2728 height : 20px ;
2829 width :20px ;
2930 float : right ;
31+ cursor : pointer ;
3032}
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments