Skip to content

Assign menuitemcheckbox role to toggleable menu items#823

Merged
krassowski merged 3 commits into
jupyterlab:mainfrom
MUFFANUJ:toggleRole
Jul 3, 2026
Merged

Assign menuitemcheckbox role to toggleable menu items#823
krassowski merged 3 commits into
jupyterlab:mainfrom
MUFFANUJ:toggleRole

Conversation

@MUFFANUJ

Copy link
Copy Markdown
Member

Closes #755

This updates the menu ARIA behavior so any toggleable command item is always rendered with role="menuitemcheckbox" (not only when toggled), while non-toggleable items remain menuitem. It also sets aria-checked to the current true/false state.

@MUFFANUJ MUFFANUJ added bug Something isn't working accessibility Addresses accessibility needs labels May 27, 2026

@krassowski krassowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just compatibility note

Comment thread packages/widgets/src/menu.ts Outdated
Comment thread packages/widgets/src/menu.ts Outdated

@krassowski krassowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@krassowski krassowski merged commit b390af5 into jupyterlab:main Jul 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility Addresses accessibility needs bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assign menuitemcheckbox role to all entries which can be toggled

2 participants