Skip to content

fix(DropdownMenu): a custom trigger named by aria-labelledby names its menu - #13730

Merged
cixzhang merged 5 commits into
mainfrom
fix/dropdown-menu-labelledby-trigger-name
Nov 25, 2026
Merged

cixzhang merged 5 commits into
mainfrom
fix/dropdown-menu-labelledby-trigger-name

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Primary intent

Bug fix: a DropdownMenu whose custom trigger (renderTrigger) is named by aria-labelledby now gives its open menu the same name.

User impact

  • Who: screen-reader users opening a menu from a custom trigger that a caller names by pointing at visible text, such as an icon button labelled by a section heading.
  • Before: the trigger was announced as "Project actions", but the menu that opened was unnamed. The menu pointed at the trigger, and an accessible-name reference never follows a second reference, so the trigger's own aria-labelledby was skipped.
  • After: the open menu points at the same ids the trigger names itself by, so it is announced as "Project actions menu".
  • Unchanged: the Button path (aria-label from the button's label), a custom trigger named by its content or by aria-label, and a caller aria-label on the menu.

Change

  • DropdownMenu.tsx (popover): as the menu opens, it reads the custom trigger's aria-labelledby (beside the accessible name it already reads for the Back row) and points the menu's aria-labelledby at those ids. Fallback: a trigger without aria-labelledby, or whose ids resolve to no element or only to empty text, keeps today's behaviour, and the menu points at the trigger's id (the trigger is still named by its own text). The resolve check is shared with readAccessibleName through a new internal labelledByText helper in utils/accessibleName.ts. A drilled-in menu still takes no name of its own (fix(DropdownMenu, ContextMenu): a drilled-in sub-menu is the one menu in the accessibility tree #13678).
  • Record (component:DropdownMenu AR1): one consistency sentence: when the control names itself by aria-labelledby, the open menu points at the same ids, because a name reference does not follow a second reference.
  • Tests: two new custom-trigger cases. An icon trigger labelled by a heading: the menu is found by the name "Project actions" and points at the heading's id (fails on main). A text trigger with aria-labelledby="missing": the menu keeps the trigger's own name and points at its id (fails on the earlier head of this PR, passes here).
  • DropdownMenuTriggerProps.id JSDoc: says the menu points at the trigger's own ids when they resolve to text.
  • Changeset: [fix] patch.

Authority

  • component:DropdownMenu FR9 ("the menu is named by that control") and AR1 ("A custom trigger still names the menu"). Records-decided defect; AR1 gains a consistency sentence.

Evidence

  • Red first: the new case fails on main and passes here.

  • Units: DropdownMenu and utils pass, 1809, on current main. tsc is clean.

  • check:knowledge is aligned; prettier and eslint are clean.

  • First-load size (component-import-boundaries INV10), from pnpm size:pages --base <main 6d1ed2ed> --unused-on menu at this head, esbuild, minified / gzip bytes:

    Page (components) Base Head Change
    docs (Text, Heading, Link, Card, Divider, List) 242,042 / 80,101 242,042 / 80,101 +0 / +0
    form (Button, IconButton, TextInput, CheckboxInput, Text, Heading, Card) 327,858 / 110,818 327,858 / 110,818 +0 / +0
    menu (DropdownMenu, ContextMenu, Button, Text) 398,642 / 136,470 398,848 / 136,554 +206 / +84
    table (Table, Text, Button) 379,859 / 129,237 379,859 / 129,237 +0 / +0

    The module graph is unchanged on every page. The menu page, which also covers MoreMenu's import of DropdownMenu.tsx, grows +84 B gzip: PASS against INV10's 0.3 KB limit.

Writing rubric results

  • R1 narration: none. The AR1 sentence is present tense.
  • R2 research: none.
  • R3 evidence: none in the record.
  • R4 rejected alternatives: none.
  • R5 change references: none.
  • R6 open questions: none.
  • R7 project status: none.

Scope

Components: DropdownMenu.

Fixes #13651. Thanks to @korkt-kim for the precise report and reproduction, and to @rheatkhs, whose #13671 found the same cause first. This carries that fix forward with the review's asks; rheatkhs is credited as co-author.

Overlap

Overlap checked: #13671, #12582, #12350, #12226, #12216, #11297, #8217, #6819 (#13671 is rheatkhs's idle PR for the same issue, carried forward here with credit, and it closes with thanks when this merges; the others share DropdownMenu files for unrelated behaviour, such as the sheet sub-menu, bottom-sheet keys, disabled reasons, touch outside, pointer-open focus, ChatLayout drag and Selector defaults, and none sets the menu's aria-labelledby)

Owner and land path

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 24, 2026
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 25, 2026 6:49am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 25, 2026, 7:24 AM UTC

@cixzhang cixzhang added the lane:1 Astryx fix-loop lane 1 owns this label Nov 24, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 24, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 66aa7d2

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · b8b228e

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
lab/CommentThread 387.9 kB (+190 B) · 2.4 kB CSS (0) — — · — · —
lab/AudioPlayer 242.4 kB (+123 B) · 1.8 kB CSS (0) — — · — · —
lab/Comments 394.7 kB (+115 B) · 2.5 kB CSS (0) — — · — · —
26 more components
Component Size LoC Visual · A11y · RTL
MoreMenu 137.0 kB (+105 B) · 20.1 kB CSS (0) — — · — · —
DropdownMenu 136.8 kB (+85 B) · 20.1 kB CSS (0) — ✓ · ✓ · ✓
lab/VideoPlayer 240.3 kB (+71 B) · 2.1 kB CSS (0) — — · — · —
SideNav 118.1 kB (+25 B) · 12.7 kB CSS (0) — — · — · —
lab/MediaTimeSlider 232.4 kB (+22 B) · 1.5 kB CSS (0) — — · — · —
lab/MediaVolume 232.4 kB (+22 B) · 1.5 kB CSS (0) — — · — · —
lab/MediaCaptionsButton 232.4 kB (+21 B) · 1.5 kB CSS (0) — — · — · —
lab/MediaPlaybackRate 232.4 kB (+21 B) · 1.5 kB CSS (0) — — · — · —
lab/MediaSeekButton 232.4 kB (+21 B) · 1.5 kB CSS (0) — — · — · —
lab/MediaTime 232.4 kB (+21 B) · 1.5 kB CSS (0) — — · — · —
lab/MediaPlayButton 232.4 kB (+20 B) · 1.5 kB CSS (0) — — · — · —
lab/MediaFullscreenButton 232.4 kB (+19 B) · 1.5 kB CSS (0) — — · — · —
ContextMenu 110.0 kB (0) · 19.9 kB CSS (0) — — · — · —
ContextMenuItem 40.1 kB (0) · 7.4 kB CSS (0) — — · — · —
DropdownMenuCheckboxItem 30.3 kB (0) · 7.7 kB CSS (0) — ✓ · ✓ · ✓
DropdownMenuDivider 5.4 kB (0) · 548 B CSS (0) — ✓ · ✓ · —
DropdownMenuGroup 6.6 kB (0) · 3.4 kB CSS (0) — ✓ · ✓ · —
DropdownMenuItem 29.5 kB (0) · 7.2 kB CSS (0) — ✓ · ✓ · —
DropdownMenuRadioGroup 6.7 kB (0) · 3.4 kB CSS (0) — ✓ · ✓ · —
DropdownMenuRadioItem 30.3 kB (0) · 7.7 kB CSS (0) — ✓ · ✓ · —
DropdownMenuSubMenu 82.9 kB (0) · 11.5 kB CSS (0) — ✓ · ✓ · ✓
Markdown 214.2 kB (0) · 23.8 kB CSS (0) — — · — · —
Table 129.4 kB (0) · 21.5 kB CSS (0) — — · — · —
TableCell 111.1 kB (0) · 20.5 kB CSS (0) — — · — · —
TableHeaderCell 111.0 kB (0) · 20.3 kB CSS (0) — — · — · —
BreadcrumbItem 106.4 kB (−7 B) · 14.3 kB CSS (0) — — · — · —

Package size: @astryxdesign/core 8.05 MB packed (+699 B); no new dependencies.

Touched components checked; for the full suites, add ci:run-visual for Visual, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: the menu now takes its name in the reported case, but it loses its name when a trigger's aria-labelledby points at nothing.

  • readNameReference (DropdownMenu.tsx:580-583) hands the menu any non-empty aria-labelledby, so a trigger whose ids resolve to no element, or only to empty text, is still named by its visible text but now opens an unnamed menu where main used that text: use the ids only when they resolve to non-empty text (sharing that check with readAccessibleName in utils/accessibleName.ts), fall back to the trigger id otherwise, and add a test with a dangling reference.
  • MoreMenu also imports DropdownMenu.tsx and ships the new code without using it, so the import-boundaries record (INV10) asks for the base-against-head first-load gzip delta on each of the four reference pages; please add those numbers to the description.

Two small cleanups: readNameReference sits between resolveCustomTriggerMenuName and that function's doc comment, and the id doc on DropdownMenuTriggerProps still says the menu always points at that id.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules (1): an owner's change request stays unresolved (maintainer-account dismissal). Checked: this pull request's reviews and comments; no owner change request or dismissal, no finding.
  • Claim: before, a trigger named by aria-labelledby opened an unnamed menu, because the menu pointed at the trigger and a name reference is not followed twice. Verified from main's menu wiring and the name-computation rule.
  • Claim: after, the menu points at the trigger's ids and is named "Project actions". Verified in the code, and the new test asserts it.
  • Claim: the Button path, triggers named by content or aria-label, and a caller aria-label on the menu are unchanged. Verified.
  • Claim: a trigger without aria-labelledby keeps today's behaviour. Verified. A trigger whose aria-labelledby resolves to nothing does not keep it (first bullet).
  • Claim: a drilled-in menu still takes no name. Verified.
  • Claim: the record gains one AR1 sentence. Verified, and an engineering owner approved it for this head.
  • Claim: the new test fails on main and passes here. Consistent with the code; no run confirms it.
  • Claim: the DropdownMenu tests, typecheck, knowledge check, prettier and eslint pass. Not verified; CI has not run on this head.
  • Claim: the pull request carries the earlier fix forward with that review's asks. Partly false: the caller precedence, the callback read and the citation are fixed, but the fallback for unresolved ids is not.
  • Claim: the co-author is credited. Verified in a commit trailer.
  • Claim: the overlapping pull requests do not set the menu's aria-labelledby. Not checked; it does not bear on this verdict.
  • Changeset: a custom trigger named by aria-labelledby now names its open menu. Verified for the pointer popover; the bottom sheet already took this name.
  • File .changeset/dropdown-menu-labelledby-trigger-name.md: clear.
  • File docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear. FR9's wiring sentence could name the new exception.
  • File packages/core/src/DropdownMenu/DropdownMenu.test.tsx: clear, but it needs a dangling-reference case (first bullet).
  • File packages/core/src/DropdownMenu/DropdownMenu.tsx: the first bullet and the misplaced doc comment.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f330d2a

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: the menu now takes its name in the reported case, but it loses its name when a trigger's aria-labelledby points at nothing. The merge from main leaves both points below open.

  • readNameReference (DropdownMenu.tsx:580-583) hands the menu any non-empty aria-labelledby, so a trigger whose ids resolve to no element, or only to empty text, is still named by its visible text but now opens an unnamed menu where main used that text: use the ids only when they resolve to non-empty text (sharing that check with readAccessibleName in utils/accessibleName.ts), fall back to the trigger id otherwise, and add a test with a dangling reference.
  • MoreMenu also imports DropdownMenu.tsx and ships the new code without using it, so the import-boundaries record (INV10) asks for the base-against-head first-load gzip delta on each of the four reference pages; please add those numbers to the description.

Two small cleanups: readNameReference sits between resolveCustomTriggerMenuName and that function's doc comment, and the id doc on DropdownMenuTriggerProps still says the menu always points at that id.

Claims and files checked

Review mode: carry-forward; reason: none

  • Claim: before, a trigger named by aria-labelledby opened an unnamed menu, because the menu pointed at the trigger and a name reference is not followed twice. Verified from main's menu wiring and the name-computation rule.
  • Claim: after, the menu points at the trigger's ids and is named "Project actions". Verified in the code, and the new test asserts it.
  • Claim: the Button path, triggers named by content or aria-label, and a caller aria-label on the menu are unchanged. Verified.
  • Claim: a trigger without aria-labelledby keeps today's behaviour. Verified. A trigger whose aria-labelledby resolves to nothing does not keep it (first bullet).
  • Claim: a drilled-in menu still takes no name. Verified.
  • Claim: the record gains one AR1 sentence. Verified, and an engineering owner approved it for this head.
  • Claim: the new test fails on main and passes here. Consistent with the code; no run confirms it.
  • Claim: the DropdownMenu tests, typecheck, knowledge check, prettier and eslint pass. Not verified; CI has not run on this head.
  • Claim: the pull request carries the earlier fix forward with that review's asks. Partly false: the caller precedence, the callback read and the citation are fixed, but the fallback for unresolved ids is not.
  • Claim: the co-author is credited. Verified in a commit trailer.
  • Claim: the overlapping pull requests do not set the menu's aria-labelledby. Not checked; it does not bear on this verdict.
  • Changeset: a custom trigger named by aria-labelledby now names its open menu. Verified for the pointer popover; the bottom sheet already took this name.
  • File .changeset/dropdown-menu-labelledby-trigger-name.md: clear.
  • File docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear. FR9's wiring sentence could name the new exception.
  • File packages/core/src/DropdownMenu/DropdownMenu.test.tsx: clear, but it needs a dangling-reference case (first bullet).
  • File packages/core/src/DropdownMenu/DropdownMenu.tsx: the first bullet and the misplaced doc comment.

Automated review (maintainer link)

…ls back to the trigger id

Co-authored-by: Febiadi Wisnu Akbar <rheatkhs@gmail.com>
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 4a34b4c

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: a custom trigger named by aria-labelledby now names its open menu, and a trigger whose aria-labelledby points at nothing keeps the menu named by its own text. CI is still running on this head, and its one failing job, test-ui (1/4), fails on a List reorder timing test this change does not reach; main fixed that test in #13755, so merging main should clear it.

Optional touches: FR9 in the DropdownMenu record still says the menu points at the trigger's id, so one clause there would match the new AR1 sentence; the changeset could say "in the pointer popover", since the bottom sheet already took this name; and a stray blank line is left at DropdownMenu.tsx:595.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: before, a trigger named by aria-labelledby opened an unnamed menu, because the menu pointed at the trigger and a name reference is not followed twice. Verified from main's menu wiring (DropdownMenu.tsx:1930 on main) and the name-computation rule.
  • Claim: after, the menu points at the same ids and is announced by the trigger's name. Verified at DropdownMenu.tsx:1949-1955; the new test at DropdownMenu.test.tsx:4250-4275 asserts it and passed in CI.
  • Claim: the Button path, a custom trigger named by its content or by aria-label, and a caller aria-label on the menu are unchanged. Verified at DropdownMenu.tsx:1942-1955; the existing content-named test (DropdownMenu.test.tsx:4215-4248) passed in CI.
  • Claim: the trigger's aria-labelledby is read as the menu opens, beside the name already read for the Back row. Verified at DropdownMenu.tsx:1176-1177.
  • Claim: a trigger without aria-labelledby, or whose ids resolve to no element or only to empty text, keeps today's behaviour. Verified at DropdownMenu.tsx:583-588 and utils/accessibleName.ts:39-53; the dangling case is tested, and the empty-text case follows from the same check.
  • Claim: the resolve check is shared with readAccessibleName through a new internal helper. Verified at utils/accessibleName.ts:39-53 and :67-70; readAccessibleName returns the same names as before.
  • Claim: a drilled-in menu still takes no name. Verified at DropdownMenu.tsx:1950-1951.
  • Claim: the record gains one AR1 sentence. Verified at DropdownMenu.spec.md:205-207, and an engineering owner approved it for this head.
  • Claim: two new custom-trigger tests, the first failing on main and the second failing on the earlier revision of this pull request. Verified by reading: main points the menu at the trigger's own id, so the first test's aria-labelledby assertion cannot pass there, and the earlier revision passed any non-empty reference through, so the second test's fallback assertion could not pass there; both pass in CI at this head.
  • Claim: the id doc on DropdownMenuTriggerProps says the menu points at the trigger's own ids when they resolve to text. Verified at DropdownMenu.tsx:397-401.
  • Claim: a patch changeset is added. Verified.
  • Claim: the DropdownMenu and utils tests pass, the typecheck is clean, the knowledge check is aligned, and formatting and lint are clean. Verified in CI at this head: the DropdownMenu tests (248) and the utils tests in the finished shards passed, and the typecheck, knowledge check, formatting and ESLint steps passed; the 1809 tally is the author's own run.
  • Claim: on the four reference pages the first-load size is unchanged for docs, form and table, the menu page grows by 84 bytes gzip, and no module graph changes. Not rebuilt here; consistent with CI's size report for this head, under the import-boundaries record's 0.3 KB limit, and CI's import-boundaries check passed.
  • Claim: the record sentence passes the writing rubric (present tense, no narration). Verified.
  • Claim: the pull request fixes the reported issue and credits the earlier contributor as co-author. Verified in the issue and the commit trailers.
  • Claim: the overlapping pull requests do not set the menu's aria-labelledby. Verified: of the eight listed, only the earlier pull request for the same issue adds aria-labelledby to DropdownMenu files.
  • Claim: this merges after the DropdownMenu change it waits on, through specs, code review, CI and merge. A process note; that change is still open, and this pull request is now out of draft.
  • Changeset: a custom trigger named by aria-labelledby now names its open menu. Verified for the pointer popover; the bottom sheet already took this name.
  • File .changeset/dropdown-menu-labelledby-trigger-name.md: clear; "in the pointer popover" would make it exact.
  • File docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear; FR9's wiring sentence could name the new exception.
  • File packages/core/src/DropdownMenu/DropdownMenu.test.tsx: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.tsx: clear; a stray blank line at line 595.
  • File packages/core/src/utils/accessibleName.ts: clear.

Automated review (maintainer link)

* when it is a non-empty string, else the trigger's own accessible name. The
* popover and the bottom sheet both name the menu through this.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: moving the helper left this blank line between resolveCustomTriggerMenuName's doc comment and the function. Drop it so the comment sits directly on the function it documents.

@cixzhang
cixzhang marked this pull request as ready for review November 25, 2026 00:31
@cixzhang cixzhang added the ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) label Nov 25, 2026
@cixzhang
cixzhang marked this pull request as draft November 25, 2026 00:50
@cixzhang
cixzhang marked this pull request as ready for review November 25, 2026 00:50
@cixzhang
cixzhang marked this pull request as draft November 25, 2026 06:38
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 25, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec b8b228e

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 25, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved: a custom trigger named by aria-labelledby now names its open menu, and a trigger whose aria-labelledby points at nothing keeps the menu named by its own text. CI passes on this head, including both new DropdownMenu cases.

Optional touches: a stray blank line remains at DropdownMenu.tsx:596; FR9 in the DropdownMenu record still says the menu points at the trigger's id, so one clause there would match the new AR1 sentence; the changeset could say "in the pointer popover", since the bottom sheet already took this name; and a Chromium accessibility-tree case for the heading-labelled trigger would prove the computed name in a browser, since the new tests run in jsdom.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: before, a trigger named by aria-labelledby opened an unnamed menu, because the menu pointed at the trigger and a name reference is not followed twice. Verified from main's menu wiring (DropdownMenu.tsx:1931 on main) and the name-computation rule.
  • Claim: after, the menu points at the same ids and takes the trigger's name. Verified at DropdownMenu.tsx:1950-1956; the new test at DropdownMenu.test.tsx:4284-4309 asserts it and passes in CI on this head.
  • Claim: the Button path, a custom trigger named by its content or by aria-label, and a caller aria-label on the menu are unchanged. Verified at DropdownMenu.tsx:1943-1956 and by the existing content-named test (DropdownMenu.test.tsx:4249-4282).
  • Claim: the trigger's aria-labelledby is read as the menu opens, beside the name already read for the Back row. Verified at DropdownMenu.tsx:1177-1178.
  • Claim: a trigger without aria-labelledby, or whose ids resolve to no element or only to empty text, keeps today's behaviour. Verified at DropdownMenu.tsx:584-589 and utils/accessibleName.ts:39-53; the dangling case is tested (DropdownMenu.test.tsx:4311-4333), and the empty-text case follows from the same check.
  • Claim: the resolve check is shared with readAccessibleName through a new internal helper. Verified at utils/accessibleName.ts:39-53 and :67-70; readAccessibleName returns the same names as before.
  • Claim: a drilled-in menu still takes no name. Verified at DropdownMenu.tsx:1951-1952.
  • Claim: the record gains one AR1 sentence, governed by FR9 and AR1. Verified at DropdownMenu.spec.md:139, :203 and :206-208, and an engineering owner approved it for this head.
  • Claim: two new custom-trigger tests, the first failing on main and the second failing on the earlier revision of this pull request. Verified by reading: main points the menu at the trigger's own id, and the earlier revision passed any non-empty reference through; both pass in CI on this head.
  • Claim: the id doc on DropdownMenuTriggerProps says the menu points at the trigger's own ids when they resolve to text. Verified at DropdownMenu.tsx:398-402.
  • Claim: a patch changeset is added. Verified.
  • Claim: the DropdownMenu and utils tests pass, the typecheck is clean, the knowledge check is aligned, and formatting and lint are clean. Verified in CI on this head for the typecheck, lint and the DropdownMenu and SideNav test files; the test tally is the author's own run.
  • Claim: on the four reference pages first-load size is unchanged for docs, form and table, and the menu page grows by 84 bytes gzip. Not rebuilt here; under the import-boundaries record's 0.3 KB limit as reported.
  • Claim: the record sentence passes the writing rubric. Verified: present tense, no narration or status.
  • Claim: the pull request fixes the reported issue and credits the earlier contributor as co-author. Verified in the issue and the commit trailers.
  • Claim: the overlapping pull requests do not set the menu's aria-labelledby. Verified: of the eight listed, only the earlier pull request for the same issue adds aria-labelledby lines to DropdownMenu files.
  • Claim: this merges after the DropdownMenu change it waits on. A process note; that change is still open, and the land path still says draft although the pull request is now ready for review.
  • Changeset: a custom trigger named by aria-labelledby now names its open menu. Verified for the pointer popover; the bottom sheet already took this name.
  • File .changeset/dropdown-menu-labelledby-trigger-name.md: clear; "in the pointer popover" would make it exact.
  • File docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear; FR9's wiring sentence could name the new exception.
  • File packages/core/src/DropdownMenu/DropdownMenu.test.tsx: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.tsx: clear; a stray blank line at line 596.
  • File packages/core/src/utils/accessibleName.ts: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 25, 2026 06:57
@cixzhang
cixzhang merged commit 0526bd8 into main Nov 25, 2026
162 of 163 checks passed
@github-actions
github-actions Bot deleted the fix/dropdown-menu-labelledby-trigger-name branch November 26, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — b8b228e8 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. lane:1 Astryx fix-loop lane 1 owns this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] DropdownMenu: a custom trigger named by aria-labelledby opens an unnamed menu

1 participant