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;
@ -18,7 +19,7 @@ $light-button-background-hover-color: $p5js-pink;
$light-button-background-active-color: #f10046;
$light-button-hover-color: $white;
$light-button-active-color: $white;
$light-modal-button-background-color: #e6e6e6;
$light-modal-button-background-color: #e6e6e6;
$light-icon-color: #8b8b8b;
$light-icon-hover-color: $light-primary-text-color;

View File

@ -1,12 +1,16 @@
.sidebar__file-list {
border-top: 1px solid $ide-border-color;
border-top: 1px solid $ide-border-color;
}
.sidebar__file-item {
padding: #{8 / $base-font-size}rem #{20 / $base-font-size}rem;
color: $light-inactive-text-color;
background-color: $light-sidebar-background;
border: none;
width: 100%;
outline: none;
cursor: pointer;
&--selected {
background-color: $ide-border-color;
}
}
.sidebar__file-item--selected {
background-color: $ide-border-color;
}