Skip to content

Commit

Permalink
fix: use aria-checked and role menuitemradio
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Stoehr committed Nov 25, 2024
1 parent 2fb038f commit 076311b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/WindowViewSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ export class WindowViewSettings extends Component {
none of the click handlers work? */
const menuItem = ({ value, Icon }) => (
<ViewOption
aria-selected={windowViewType === value}
aria-checked={windowViewType === value}
autoFocus={windowViewType === value}
key={value}
onClick={() => { this.handleChange(value); handleClose(); }}
selected={windowViewType === value}
role="menuitemradio"
>
<FormControlLabel
value={value}
Expand Down

0 comments on commit 076311b

Please sign in to comment.