make sidebar accessible

This commit is contained in:
mathuramg 2016-07-12 11:22:27 -04:00
parent d72a6be009
commit 22ac7214bd
3 changed files with 19 additions and 11 deletions

View file

@ -11,11 +11,14 @@ 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>
<button
className={itemClass}
key={file.id}
onClick={() => props.setSelectedFile(file.id)}
>{file.name}
</button>
</li>
);
})}
</ul>

View file

@ -9,6 +9,7 @@ $light-primary-text-color: #333;
$light-secondary-text-color: #6b6b6b;
$light-inactive-text-color: #b5b5b5;
$light-background-color: #fdfdfd;
$light-sidebar-background: $white;
$light-button-background-color: #f4f4f4;
$light-button-color: $black;

View file

@ -5,8 +5,12 @@
.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;
background-color: $light-sidebar-background;
border: none;
width: 100%;
outline: none;
cursor: pointer;
&--selected {
background-color: $ide-border-color;
}
}