Skip to content

fix(aria/menu): expose expanded state as a model and allow shared menu#33320

Draft
ok7sai wants to merge 1 commit into
angular:mainfrom
ok7sai:fix/aria-menu-expanded-state
Draft

fix(aria/menu): expose expanded state as a model and allow shared menu#33320
ok7sai wants to merge 1 commit into
angular:mainfrom
ok7sai:fix/aria-menu-expanded-state

Conversation

@ok7sai
Copy link
Copy Markdown
Member

@ok7sai ok7sai commented May 30, 2026

Hold off this PR for the stable release. This requires more testing and thought out on the directive bindings...

--

This provides the minimal support for sharing one single menu/submenu across multiple menu triggers/items which fixes #32782 and #32731. For usage please refer to the example code.

However, because ngMenu holds the list navigation information, reusing the same menu across triggers might end up having the wrong initial focus item. Although most of the time enter/arrow down should still go to the first focusable menu item.

The code example is also tested with screen readers and overall seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(aria/menu): Menu Trigger data

1 participant