role and aria-label for file list

This commit is contained in:
Artur Paikin 2017-11-12 11:38:48 -05:00
parent 0c71a306cb
commit 8001b17bf7
2 changed files with 3 additions and 2 deletions

View file

@ -54,7 +54,8 @@ module.exports = (props) => {
handleFolderClick: props.getNextFolder,
getItemName: props.getItemName,
getItemIcon: props.getItemIcon,
handleScroll: props.handleScroll
handleScroll: props.handleScroll,
title: props.title
})}
</div>
</div>

View file

@ -16,7 +16,7 @@ module.exports = (props) => {
return html`
<table class="BrowserTable" onscroll=${props.handleScroll}>
<tbody>
<tbody role="listbox" aria-label="List of files from ${props.title}">
${props.folders.map((folder) => {
return Row({
title: props.getItemName(folder),