File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { setAllAccessibleOutput } from '../modules/IDE/actions/preferences';
11
11
import { logoutUser } from '../modules/User/actions' ;
12
12
13
13
import { metaKeyName , } from '../utils/metaKey' ;
14
+ import caretLeft from '../images/left-arrow.svg' ;
14
15
15
16
const triangleUrl = require ( '../images/down-filled-triangle.svg' ) ;
16
17
const logoUrl = require ( '../images/p5js-logo-small.svg' ) ;
@@ -224,8 +225,11 @@ class Nav extends React.PureComponent {
224
225
< InlineSVG src = { logoUrl } alt = "p5.js logo" className = "svg__logo" />
225
226
</ li >
226
227
< li className = "nav__item nav__item--no-icon" >
227
- < Link to = "/" >
228
- < span className = "nav__item-header" > Editor</ span >
228
+ < Link to = "/" className = "nav__back-link" >
229
+ < InlineSVG src = { caretLeft } className = "nav__back-icon" />
230
+ < span className = "nav__item-header" >
231
+ Back to Editor
232
+ </ span >
229
233
</ Link >
230
234
</ li >
231
235
</ ul >
Original file line number Diff line number Diff line change 58
58
color : getThemifyVariable (' nav-hover-color' );
59
59
}
60
60
}
61
+
62
+ & g , & path {
63
+ @include themify () {
64
+ fill : getThemifyVariable (' nav-hover-color' );
65
+ }
66
+ }
61
67
62
68
.nav__item-header-triangle polygon {
63
69
@include themify () {
68
74
69
75
.nav__item-header :hover {
70
76
@include themify () {
71
- color : getThemifyVariable (' nav-hover-color' );
77
+ color : getThemifyVariable (' nav-hover-color' );
78
+ }
79
+ & g , & path {
80
+ @include themify () {
81
+ fill : getThemifyVariable (' nav-hover-color' );
72
82
}
83
+ }
73
84
}
74
85
75
86
.nav__item-header-triangle {
181
192
}
182
193
}
183
194
}
195
+
196
+ .nav__back-icon {
197
+ & g , & path {
198
+ opacity : 1 ;
199
+ @include themify () {
200
+ fill : getThemifyVariable (' inactive-text-color' );
201
+ }
202
+ }
203
+ margin-right : #{5 / $base-font-size } rem;
204
+ }
205
+
206
+ .nav__back-link {
207
+ display : flex ;
208
+ }
You can’t perform that action at this time.
0 commit comments