make links accessible

This commit is contained in:
mathuramg 2016-07-12 12:25:48 -04:00
parent d72a6be009
commit 624d79075a
6 changed files with 21 additions and 19 deletions

View file

@ -6,20 +6,20 @@ function Nav(props) {
<nav className="nav">
<ul className="nav__items-left">
<li className="nav__item">
<p
<a
className="nav__new"
onClick={props.createProject}
>
New
</p>
</a>
</li>
<li className="nav__item">
<p
<a
className="nav__save"
onClick={props.saveProject}
>
Save
</p>
</a>
</li>
<li className="nav__item">
<p className="nav__open">

View file

@ -11,11 +11,13 @@ function Sidebar(props) {
'sidebar__file-item--selected': file.id === props.selectedFile.id
});
return (
<li
className={itemClass}
key={file.id}
onClick={() => props.setSelectedFile(file.id)}
>{file.name}</li>
<li className={itemClass}>
<a
key={file.id}
onClick={() => props.setSelectedFile(file.id)}
>{file.name}
</a>
</li>
);
})}
</ul>

View file

@ -5,8 +5,8 @@
.sidebar__file-item {
padding: #{8 / $base-font-size}rem #{20 / $base-font-size}rem;
color: $light-inactive-text-color;
}
.sidebar__file-item--selected {
background-color: $ide-border-color;
cursor: pointer;
&--selected {
background-color: $ide-border-color;
}
}