make sidebar accessible
This commit is contained in:
parent
d72a6be009
commit
22ac7214bd
3 changed files with 19 additions and 11 deletions
|
@ -11,11 +11,14 @@ function Sidebar(props) {
|
||||||
'sidebar__file-item--selected': file.id === props.selectedFile.id
|
'sidebar__file-item--selected': file.id === props.selectedFile.id
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<li
|
<li>
|
||||||
|
<button
|
||||||
className={itemClass}
|
className={itemClass}
|
||||||
key={file.id}
|
key={file.id}
|
||||||
onClick={() => props.setSelectedFile(file.id)}
|
onClick={() => props.setSelectedFile(file.id)}
|
||||||
>{file.name}</li>
|
>{file.name}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -9,6 +9,7 @@ $light-primary-text-color: #333;
|
||||||
$light-secondary-text-color: #6b6b6b;
|
$light-secondary-text-color: #6b6b6b;
|
||||||
$light-inactive-text-color: #b5b5b5;
|
$light-inactive-text-color: #b5b5b5;
|
||||||
$light-background-color: #fdfdfd;
|
$light-background-color: #fdfdfd;
|
||||||
|
$light-sidebar-background: $white;
|
||||||
|
|
||||||
$light-button-background-color: #f4f4f4;
|
$light-button-background-color: #f4f4f4;
|
||||||
$light-button-color: $black;
|
$light-button-color: $black;
|
||||||
|
|
|
@ -5,8 +5,12 @@
|
||||||
.sidebar__file-item {
|
.sidebar__file-item {
|
||||||
padding: #{8 / $base-font-size}rem #{20 / $base-font-size}rem;
|
padding: #{8 / $base-font-size}rem #{20 / $base-font-size}rem;
|
||||||
color: $light-inactive-text-color;
|
color: $light-inactive-text-color;
|
||||||
}
|
background-color: $light-sidebar-background;
|
||||||
|
border: none;
|
||||||
.sidebar__file-item--selected {
|
width: 100%;
|
||||||
|
outline: none;
|
||||||
|
cursor: pointer;
|
||||||
|
&--selected {
|
||||||
background-color: $ide-border-color;
|
background-color: $ide-border-color;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue