Skip to content

Commit 3a65afb

Browse files
committed
change link to editor back to 'back to editor'
1 parent 4163664 commit 3a65afb

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

client/components/Nav.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { setAllAccessibleOutput } from '../modules/IDE/actions/preferences';
1111
import { logoutUser } from '../modules/User/actions';
1212

1313
import { metaKeyName, } from '../utils/metaKey';
14+
import caretLeft from '../images/left-arrow.svg';
1415

1516
const triangleUrl = require('../images/down-filled-triangle.svg');
1617
const logoUrl = require('../images/p5js-logo-small.svg');
@@ -224,8 +225,11 @@ class Nav extends React.PureComponent {
224225
<InlineSVG src={logoUrl} alt="p5.js logo" className="svg__logo" />
225226
</li>
226227
<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>
229233
</Link>
230234
</li>
231235
</ul>

client/styles/components/_nav.scss

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
color: getThemifyVariable('nav-hover-color');
5959
}
6060
}
61+
62+
& g, & path {
63+
@include themify() {
64+
fill: getThemifyVariable('nav-hover-color');
65+
}
66+
}
6167

6268
.nav__item-header-triangle polygon {
6369
@include themify() {
@@ -68,8 +74,13 @@
6874

6975
.nav__item-header:hover {
7076
@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');
7282
}
83+
}
7384
}
7485

7586
.nav__item-header-triangle {
@@ -181,3 +192,17 @@
181192
}
182193
}
183194
}
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+
}

0 commit comments

Comments
 (0)