Skip to content

Commit

Permalink
ADA-1062 - Change role on Advanced captions settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tanasediana committed Jun 26, 2024
1 parent 97b1aa4 commit e405f26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,10 @@ class MenuItem extends Component<any, any> {
render(props: any): VNode<any> {
const badgeType: string | null =
props.data.badgeType && !props.isSelected(props.data) ? BadgeType[props.data.badgeType] : BadgeType[props.data.badgeType + 'Active'];
const isAdvanced = props.data.value == "Advanced captions settings" ? true : false;
return (
<div
role="menuitemradio"
role={isAdvanced ? "menuitem" : "menuitemradio"}
tabIndex={-1}
aria-checked={props.isSelected(props.data) ? 'true' : 'false'}
ref={element => {
Expand Down

0 comments on commit e405f26

Please sign in to comment.