Repository navigation
revert: menus no longer special-case controls placed among their rows - #7338
Merged
Merged
Conversation
Reverts #7309 before it ships. A menu holds only menu items: role="menu" admits menuitem, menuitemcheckbox, menuitemradio, groups and separators, so a text field or button placed among the rows is invalid structure. Teaching the menus' key handling to step aside for those controls made that structure work instead of fixing it. Removes the hosted-control key handling from DropdownMenu, ContextMenu and the sub-menu flyout, the HostedField story and its tests, the FR12 and FR8 rows it added to the DropdownMenu and ContextMenu records, and its pending changeset. Unreleased, so no caller is affected. Controls that belong beside a menu's rows go outside the role="menu" element; a header/footer region for that follows separately. Original change by vjeux.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
/approve-spec 7f3e553 |
cixzhang
enabled auto-merge (squash)
October 11, 2026 18:08
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report
|
Contributor
Author
|
/approve-spec af1e7da |
This was referenced Oct 11, 2026
Closed
4 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User impact
Screen-reader users are told they're in a menu, then run into a text field and a button that aren't menu items. #7309 made that structure work from the keyboard instead of fixing it. This revert takes it out before it ships in a release, so nothing published ever depended on it.
What this removes
All of #7309, unreleased:
DropdownMenu,ContextMenuand the sub-menu flyout: printable keys, Enter/Space, the caret guard, and Left in a flyout field.HostedFieldstory, its unit tests, and the real-Chromium spec.component:DropdownMenuand FR8 incomponent:ContextMenu. Both records are drafts, and the rows were never owner-approved.Why
Owner ruling, @cixzhang: a menu holds only menu items.
role="menu"admitsmenuitem,menuitemcheckbox,menuitemradio, groups and separators. A control that belongs beside a menu's rows goes outside therole="menu"element, where the menu's key and press handling never claims it. Aheader/footerregion onDropdownMenufor exactly that case follows in its own PR.#7305, the pointer counterpart of the same pattern, has a change request on the same ruling.
Evidence
git revertof the merge commit. Nothing merged since depends on its helpers;isTextEntryinDialog.tsxis an unrelated local.useMenuPressanduseListFocussuites: 323 passed. Core type-check clean.pnpm check:knowledgealigned.Scope