Skip to content

Commit

Permalink
fix(ADA-1407): [Strategic Blue / University of Sheffield] - Button el…
Browse files Browse the repository at this point in the history
…ement has the wrong role (#365)

Change the role of navigation items to "button", since this is a clickable and there is no indication for that.

solves ADA-1407
  • Loading branch information
Tzipi-kaltura authored Aug 6, 2024
1 parent 39ce8a9 commit bb7fe45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class NavigationItem extends Component<NavigationItemProps, NavigationIte
onClick={this._handleClick}
onDownKeyPressed={this.props.onNext}
onUpKeyPressed={this.props.onPrev}
role={selectedItem ? 'text' : 'listitem'}>
role='button'>
<div
tabIndex={0}
aria-label={ariaLabelTitle}
Expand Down

0 comments on commit bb7fe45

Please sign in to comment.