Skip to content
Snippets Groups Projects
Commit fbb182c9 authored by Chris Beer's avatar Chris Beer
Browse files

Add additional aria properties to make the thumbnail navigation spec-compliant

parent 84164b3c
Branches
Tags
No related merge requests found
...@@ -50,6 +50,8 @@ export class ThumbnailCanvasGrouping extends PureComponent { ...@@ -50,6 +50,8 @@ export class ThumbnailCanvasGrouping extends PureComponent {
width: (Number.isInteger(style.width)) ? style.width - SPACING : null, width: (Number.isInteger(style.width)) ? style.width - SPACING : null,
}} }}
className={ns('thumbnail-nav-container')} className={ns('thumbnail-nav-container')}
role="gridcell"
aria-colindex={index + 1}
> >
<div <div
role="button" role="button"
......
...@@ -204,6 +204,7 @@ export class ThumbnailNavigation extends Component { ...@@ -204,6 +204,7 @@ export class ThumbnailNavigation extends Component {
onKeyUp={this.handleKeyUp} onKeyUp={this.handleKeyUp}
role="grid" role="grid"
> >
<div role="row" style={{ height: '100%', width: '100%' }}>
<AutoSizer <AutoSizer
defaultHeight={100} defaultHeight={100}
defaultWidth={400} defaultWidth={400}
...@@ -223,6 +224,7 @@ export class ThumbnailNavigation extends Component { ...@@ -223,6 +224,7 @@ export class ThumbnailNavigation extends Component {
</List> </List>
)} )}
</AutoSizer> </AutoSizer>
</div>
</Paper> </Paper>
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment