Skip to content

Commit

Permalink
Add status role
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Aug 17, 2023
1 parent 8320ef1 commit b5f3521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/SearchPanelNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class SearchPanelNavigation extends Component {
>
<ChevronLeftIcon style={iconStyle} />
</MiradorMenuButton>
<span style={{ unicodeBidi: 'plaintext' }}>
<span role="status" style={{ unicodeBidi: 'plaintext' }}>
{t('pagination', { current: currentHitIndex + 1, total: lengthText })}
</span>
<MiradorMenuButton
Expand Down
4 changes: 2 additions & 2 deletions src/components/ViewerInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export class ViewerInfo extends Component {

return (
<div className={classNames(ns('osd-info'), classes.osdInfo)}>
<Typography display="inline" variant="caption" className={ns('canvas-count')}>
<Typography display="inline" role="status" variant="caption" className={ns('canvas-count')}>
{ t('pagination', { current: canvasIndex + 1, total: canvasCount }) }
</Typography>
<Typography display="inline" variant="caption" className={ns('canvas-label')}>
<Typography display="inline" role="status" variant="caption" className={ns('canvas-label')}>
{canvasLabel && ` • ${canvasLabel}`}
</Typography>
</div>
Expand Down

0 comments on commit b5f3521

Please sign in to comment.