Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewComponent Size
Sizes are gzip. Import counts the JavaScript the import loads eagerly; CSS counts the package stylesheet rules referenced by the modules it can load from its own package, lazily loaded ones included. Bundle Size SummaryGzip figures measure each package's entry file, not the code an import pulls in.
Accessibility AuditStatus: 2 accessibility violation(s) found — 2 serious. Radio group pattern - 1 issue(s)
RadioList - 1 issue(s)
Visual Regression57 of 506 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 37 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Approval is on hold for a maintainer decision: the new title prop and the FR18 and DEC-13 rules it adds to the draft component:DropdownMenu record are not yet approved spec, so the DropdownMenu owner needs to approve or reject that contract, including label taking precedence over a visible title and single radio sets no longer using a DropdownMenuGroup wrapper. Whatever that decision, three fixes are needed, and the branch needs a rebase because main now conflicts in DropdownMenu.spec.md and DropdownMenuSelectable.test.tsx:
- Pass a caller's
aria-labelthrough whenlabelis omitted (DropdownMenuRadioGroup.tsxline 151 replaces it withundefined), and count it in the warning condition. - Describe the result in the changeset and the story comment as one group named by its heading, or name the NVDA + Chrome and VoiceOver + Safari check and the release block an announcement claim needs.
- Add a titled
DropdownMenuRadioGroupstate to the shared radio-group binding inventory (RadioGroup.a11y.states.ts).
[Automated review]
| {...rest} | ||
| role="group" | ||
| aria-label={label} | ||
| aria-label={hasLabel ? label : undefined} |
There was a problem hiding this comment.
With label now optional, <DropdownMenuRadioGroup aria-label="Sort by" …> type-checks, because BaseProps accepts aria-*. However, this line overwrites the spread aria-label with undefined, so the group is unnamed and the dev warning asks for a label or title. Suggest aria-label={hasLabel ? label : rest['aria-label']}, and counting rest['aria-label'] as a name in the warning condition above.
There was a problem hiding this comment.
Fixed in 6f2f825: label wins, otherwise a caller's aria-label names the group (over the title too), and either one counts as a name for the warning. New case "names the group by a caller's aria-label when label is omitted, title or not" fails at the previous head.
| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [feat] `DropdownMenuRadioGroup` (also exported as `ContextMenuRadioGroup`) takes a `title`: a visible heading above its radios, drawn like a `DropdownMenuGroup` heading, that names the group. With a title, `label` is optional. Give a menu section that holds one radio set this title instead of wrapping the set in a `DropdownMenuGroup`, so a screen reader announces one group with one name rather than two nested groups with the same name. Without `title` nothing changes. |
There was a problem hiding this comment.
This promises what a screen reader announces, but the tests prove the accessibility tree (one group named by its heading). Either phrase it as that exposure, or back the announcement with NVDA + Chrome and VoiceOver + Safari checks. The story comment above RadioGroupWithTitle makes the same promise.
There was a problem hiding this comment.
Reworded in 6f2f825, here and in the story comment: the menu exposes one group named by its heading. The PR description now says the same.
0b10c07 to
6f2f825
Compare
|
Rebased onto
|
There was a problem hiding this comment.
Approval is on hold for a maintainer decision: the new title prop and the FR18 and DEC-11 rules it adds to the draft component:DropdownMenu record are not yet approved spec, so a maintainer (the DropdownMenu owner) needs to approve or reject that contract as the governing spec, including whether label or a caller's aria-label may override a visible title (with label="Ordering" and title="Sort by", the group is named "Ordering" under the heading "Sort by"). Whatever the decision, CI's test-node job fails because label is now optional: delete the DropdownMenuRadioGroup.label required_mismatch line (line 26) from packages/cli/test/core-prop-docs.known-drift.json. Once the owner rules on that precedence, add the matching state to the radio-group binding inventory (RadioGroup.a11y.states.ts), or record why it is omitted. The aria-label, wording and titled-state fixes from the last round are in.
[Automated review]
There was a problem hiding this comment.
Approval is on hold for a maintainer decision: the new title prop and the FR18 and DEC-11 rules it adds to the draft component:DropdownMenu record are not yet approved spec, so the DropdownMenu owner needs to approve or reject that contract, including whether label or a caller's aria-label may override a visible title (with label="Ordering" and title="Sort by", the group is named "Ordering" under the heading "Sort by"). The drift-list fix from the last round is in, and CI is green. Whatever the owner decides, the shared radio-group binding inventory (RadioGroup.a11y.states.ts) still needs the naming state the ruling keeps, either bound or recorded with its reason in RADIO_GROUP_EXCLUSIONS.
[Automated review]
7a054e2 to
0c600e5
Compare
There was a problem hiding this comment.
Approval is on hold for a maintainer decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, so the record's owner, or another engineering owner on this exact head, needs to approve or change that contract as the governing spec. That decision includes the rules that a title rendering no text counts as no title (which also hides a title that is only an icon) and that a label beside a visible title is ignored. Nothing else blocks: the shipped block now titles its radio set, and the focusable-title case is in. Optionally, have FR1 say again that a caller's aria-label names an untitled group when label is omitted, and update the radio group's SYNC note, which still describes that block as wrapping its radio set.
[Automated review]
There was a problem hiding this comment.
Approval is on hold for a maintainer decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, so the record's owner, or another engineering owner on this exact head, needs to approve or change that contract as the governing spec. That decision includes the rules that a title rendering no text counts as no title (which also hides a title that is only an icon) and that a label beside a visible title is ignored. The FR1 and SYNC-note follow-ups from the last round are in, and nothing else blocks. Optionally, carry DropdownMenuGroup's "keep the title non-interactive" sentence into the title docs, since the arrow keys cannot reach a control placed in the heading.
[Automated review]
| name: 'title', | ||
| type: 'ReactNode', | ||
| description: | ||
| 'A visible heading above the radios, with the same treatment as a DropdownMenuGroup heading, that names the group through aria-labelledby; an aria-labelledby passed through base props is read after it. With a title, label is optional. A title that renders no text (true, an empty fragment, a component that returns null) counts as no title: no heading shows and the group is named as without one. Give a menu section that holds one radio set this title instead of wrapping the set in a DropdownMenuGroup, so the set is one group with one name rather than two nested groups with the same name.', |
There was a problem hiding this comment.
Not blocking: DropdownMenuGroup.doc.mjs tells builders "Keep title content non-interactive and place controls in DropdownMenu header or footer", because a control in the heading is outside the arrow-key order, and proposed FR7 and DEC-1 say the same holds here. Adding that sentence to this description (and to the Chinese, dense and JSDoc copies) keeps builders from putting a control keyboard users cannot reach into a radio set's title.
16955a2 to
3a05bf9
Compare
There was a problem hiding this comment.
Approval is on hold for an engineering owner's decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, including the rules that a title rendering no text counts as no title (which also hides an icon-only title) and that a label beside a visible title is ignored. Any engineering owner, the author included, can record that decision by commenting /approve-spec 3a05bf914a03e1c7305eb638eacb67e265e08509 on this pull request, or ask for changes to those rules. Independently of that decision, two fixes are needed:
- Regenerate
packages/cli/test/__golden__/no-icon-set/search-icon-set.jsonwithvitest run packages/cli/test/experimental-isolation.test.mjs --update, since the block's new "radio set" wording adds oneastryx search "icon set"match and CI'stest-node (1/4)fails on the old count. - Rewrite the best practice in
DropdownMenuRadioGroup.doc.mjs(line 24) that still sayslabel"remains required", and add the title to that doc's usage text and anatomy.
[Automated review]
| displayName: 'DropdownMenuGroup — Selectable rows', | ||
| description: | ||
| 'Titled groups around a radio group and checkbox rows — the rows the data API cannot express, which is why the heading lives in compound mode.', | ||
| 'A radio set titled by its own title and a titled group of checkbox rows — the rows the data API cannot express, which is why the headings live in compound mode. A section holding one radio set titles the set itself rather than a group around it, so it is one group with one name.', |
There was a problem hiding this comment.
This wording ("radio set", twice) makes astryx search "icon set" match this template too: 367 matches instead of 366, with this template the only new result. packages/cli/test/__golden__/no-icon-set/search-icon-set.json still records 366, so experimental-isolation.test.mjs fails its two "search icon set" cases (CI test-node (1/4)). Running vitest run packages/cli/test/experimental-isolation.test.mjs --update on the branch and committing the golden, after checking its diff changes only the count, fixes it.
| description: | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required even when aria-labelledby (via base props) points to visible text; that visible reference becomes the computed name while label remains the fallback.', | ||
| required: true, | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required unless title is given. An aria-labelledby passed through base props that points at visible text becomes the computed name, while label remains the fallback. With a title, the title names the group instead, so the name holds the visible heading; label (or an aria-label passed through base props) is then ignored, with a development warning when it differs from the text of the title. Without a title, an aria-label passed through base props names the group when label is omitted.', |
There was a problem hiding this comment.
This description now makes label required only without a title, but the best practice at line 24 of this file still tells builders "label remains required and supplies the aria-label fallback", and the usage text (line 14) and anatomy (lines 42–55) leave the title out. Rewriting line 24 to the title-or-label rule and adding a Title anatomy part, as DropdownMenuGroup.doc.mjs has, keeps astryx docs consistent with the component.
3a05bf9 to
c103ebd
Compare
There was a problem hiding this comment.
Approval is on hold for an engineering owner's decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, including the rules that a title rendering no text counts as no title (which also hides an icon-only title), that a label beside a visible title is ignored, and that label becomes optional for every caller. Any engineering owner, the author included, can record that decision by commenting /approve-spec c103ebd418b76e0fef303627a7a64209b21ba292 on this pull request, or ask for changes to those rules. Independently of that decision, the best practice at line 24 of DropdownMenuRadioGroup.doc.mjs still tells builders that label "remains required"; rewrite it to the title-or-label rule and add the title to that doc's usage text and anatomy.
[Automated review]
|
Posted by Cindy's agent on her behalf. Parts of this PR re-implement behavior that already exists, or is being specified, as a shared part of core. Converging keeps one implementation per behavior:
This is about where the behavior lives, not about the PR's intent. |
|
Agreed: one implementation. Observers. Now on |
There was a problem hiding this comment.
Approval is on hold for an engineering owner's decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, including the rules that a title rendering no text counts as no title (which also hides an icon-only title), that a label beside a visible title is ignored, and that label becomes optional for every caller. Any engineering owner, the author included, can record that decision by commenting /approve-spec 8097845634c46af339fae05ab7b41d044b7831c5 on this pull request, or ask for changes to those rules. Independently of that decision, the best practice at line 24 of DropdownMenuRadioGroup.doc.mjs still tells builders that label "remains required"; rewrite it to the title-or-label rule and add the title to that doc's usage text and anatomy.
[Automated review]
| description: | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required even when aria-labelledby (via base props) points to visible text; that visible reference becomes the computed name while label remains the fallback.', | ||
| required: true, | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required unless title is given. An aria-labelledby passed through base props that points at visible text becomes the computed name, while label remains the fallback. With a title, the title names the group instead, so the name holds the visible heading; label (or an aria-label passed through base props) is then ignored, with a development warning when it differs from the text of the title. Without a title, an aria-label passed through base props names the group when label is omitted.', |
There was a problem hiding this comment.
This now says label is required only without a title, but the best practice at line 24 still reads "label remains required and supplies the aria-label fallback", and beside a title the component drops label from the markup. Please rewrite that best practice to the title-or-label rule, mention title in the usage text (line 14), and add a Title part to the anatomy (lines 42–55).
| - **PR1 — Context, and the title's text.** The group memoizes a small context | ||
| value. Only while a `title` is given, it reads its heading's text after each | ||
| commit, before paint, and again through one `MutationObserver` on the heading, | ||
| disconnected on cleanup, so a title that changes its own text is read again | ||
| (proposed FR9). It owns no other Effect, listener, timer, request, or resource | ||
| lifecycle. |
There was a problem hiding this comment.
PR1 still describes a per-group MutationObserver "disconnected on cleanup". The group now subscribes the heading to the shared content observer, and cleanup removes only that subscription (sharedMutationObserver.ts lines 41–44). The three useDevWarning calls also each add an Effect, so "owns no other Effect" is not true either.
…g is one named group DropdownMenuRadioGroup takes the title a DropdownMenuGroup takes: a visible heading, drawn and targeted like a group heading, that names the group. A visible title always names the group (a caller's aria-labelledby is read after it; label and aria-label are ignored, with a development warning when they differ from its text), so the name holds the text a speech-input user reads; a title that renders no text counts as no title. The shipped selectable-rows block titles its radio set itself.
…ropdownMenuRadioGroup Main now has the component's own record, component:DropdownMenuRadioGroup (draft). The title rules this change proposed as component:DropdownMenu FR22 and DEC-15, and its Radio set heading concept, move there as proposed FR7-FR9, DEC-1 and a Title concept, and the record's statements this change alters follow: FR1 and the Accessible name concept (a visible title names the group first; label becomes optional beside one), the ownership and compatibility notes, AR1 and AR3, a titled representative state, the title heading in the design relationships, a verification row, and PR1, which now names the title-text read (a layout read after each commit and one MutationObserver on the heading, only while a title is given). component:DropdownMenu is back to main's text.
…the SYNC note says the block titles its set FR1 had dropped what the code, the docs and the untitled aria-label case do: without a title, a caller's aria-label names the group when label is omitted. It says so again (the cell stays within its column). The header's SYNC note still described the shipped selectable-rows block as wrapping its radio set in a DropdownMenuGroup; this change makes the block title the set itself, and the note now says so. Record and comment only.
This pull request's docs say "radio set" (the block's description, and the group's label and title props), so the CLI search for "icon set" in experimental-isolation.test.mjs matches 367 entries instead of 366; the first 20 results are unchanged. The two goldens record the new count. Tests only.
…the shared content observer Each titled radio group created its own MutationObserver to re-read a title whose text changes without the group rendering. It now registers with observeContent from utils/sharedMutationObserver.ts, the content-change counterpart of sharedResizeObserver.ts: one observer for every observed element (architecture:react-component-runtime INV7). The group never had a ResizeObserver. New case: two titled groups' headings are observed by the same observer instance; it fails on the previous head, where each group had its own. The case that re-reads a title changing through its own state still passes.
8097845 to
43989aa
Compare
There was a problem hiding this comment.
Approval is on hold for an engineering owner's decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, including the rules that a title rendering no text counts as no title (which also hides an icon-only title), that a label beside a visible title is ignored, and that label becomes optional for every caller. Any engineering owner, the author included, can record that decision by commenting /approve-spec 43989aa79c2fda3e4eb9df19232ad02a59a8e7cb on this pull request, or ask for changes to those rules. Independently of that decision, two fixes are needed:
- Rewrite the best practice at line 24 of
DropdownMenuRadioGroup.doc.mjs, which still sayslabel"remains required", to the title-or-label rule, and add the title to that doc's usage text and anatomy. - Reword proposed PR1 in
DropdownMenuRadioGroup.spec.md, which still describes a per-groupMutationObserverand no other Effect, to the shared content observer subscription and the three development-warning Effects.
[Automated review]
| description: | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required even when aria-labelledby (via base props) points to visible text; that visible reference becomes the computed name while label remains the fallback.', | ||
| required: true, | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required unless title is given. An aria-labelledby passed through base props that points at visible text becomes the computed name, while label remains the fallback. With a title, the title names the group instead, so the name holds the visible heading; label (or an aria-label passed through base props) is then ignored, with a development warning when it differs from the text of the title. Without a title, an aria-label passed through base props names the group when label is omitted.', |
There was a problem hiding this comment.
This makes label required only without a title, but the best practice at line 24 of this file still tells builders "label remains required and supplies the aria-label fallback", and the usage text (line 14) and anatomy (lines 42–55) leave the title out. Please rewrite line 24 to the title-or-label rule, mention title in the usage text, and add a Title anatomy part, as DropdownMenuGroup.doc.mjs has for its heading.
| - **PR1 — Context, and the title's text.** The group memoizes a small context | ||
| value. Only while a `title` is given, it reads its heading's text after each | ||
| commit, before paint, and again through one `MutationObserver` on the heading, | ||
| disconnected on cleanup, so a title that changes its own text is read again | ||
| (proposed FR9). It owns no other Effect, listener, timer, request, or resource | ||
| lifecycle. |
There was a problem hiding this comment.
PR1 still describes "one MutationObserver on the heading, disconnected on cleanup" and says the group "owns no other Effect". The group now subscribes to the shared content observer (observeContent), whose cleanup removes only this registration (sharedMutationObserver.ts lines 41–44), and the three useDevWarning calls each add an Effect (useDevWarning.ts line 48). Please reword PR1 to match the code before an owner approves it.
There was a problem hiding this comment.
Approval is on hold for an engineering owner's decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, including the rules that a title rendering no text counts as no title (which also hides an icon-only title), that a label beside a visible title is ignored, and that label becomes optional for every caller. Any engineering owner, the author included, can record that decision by commenting /approve-spec 8e83453e490b04068a25aa4e125478d0b567a313 on this pull request, or ask for changes to those rules. Independently of that decision, two fixes are needed:
- Rewrite the best practice at line 24 of
DropdownMenuRadioGroup.doc.mjs, which still sayslabel"remains required", to the title-or-label rule, and add the title to that doc's usage text and anatomy. - Reword proposed PR1 in
DropdownMenuRadioGroup.spec.md, which still describes a per-groupMutationObserverand no other Effect, to the shared content observer subscription and the three development-warning Effects.
[Automated review]
| description: | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required even when aria-labelledby (via base props) points to visible text; that visible reference becomes the computed name while label remains the fallback.', | ||
| required: true, | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required unless title is given. An aria-labelledby passed through base props that points at visible text becomes the computed name, while label remains the fallback. With a title, the title names the group instead, so the name holds the visible heading; label (or an aria-label passed through base props) is then ignored, with a development warning when it differs from the text of the title. Without a title, an aria-label passed through base props names the group when label is omitted.', |
There was a problem hiding this comment.
This now says label is required only without a title and is ignored beside one, but the best practice at line 24 of this file still says "label remains required and supplies the aria-label fallback". Please rewrite line 24 to the title-or-label rule, mention title in the usage text (line 14), and add a Title part to the anatomy.
| - **PR1 — Context, and the title's text.** The group memoizes a small context | ||
| value. Only while a `title` is given, it reads its heading's text after each | ||
| commit, before paint, and again through one `MutationObserver` on the heading, | ||
| disconnected on cleanup, so a title that changes its own text is read again | ||
| (proposed FR9). It owns no other Effect, listener, timer, request, or resource | ||
| lifecycle. |
There was a problem hiding this comment.
PR1 describes "one MutationObserver on the heading, disconnected on cleanup" and "no other Effect", but the group subscribes to the shared content observer (observeContent), whose cleanup removes only this registration, and its three useDevWarning calls each add an Effect. Please reword PR1 to match the code before it is approved.
Main and this branch each raised the CLI's "icon set" search golden from 369 to 370, so git merges them cleanly, but the merged docs match 371 entries (main's new match plus this branch's "radio set"). The golden is regenerated with experimental-isolation.test.mjs --update on the merged tree; only the count changes.
There was a problem hiding this comment.
Approval is on hold for an engineering owner's decision: the new title prop and the FR7–FR9 and DEC-1 rules this pull request adds to the draft component:DropdownMenuRadioGroup record are not yet approved spec, including the rules that a title rendering no text counts as no title (which also hides an icon-only title), that a label beside a visible title is ignored, and that label becomes optional for every caller. Any engineering owner, the author included, can record that decision by commenting /approve-spec 7fb6b844ecbd1c063bbcbfcbc23077bb136356a4 on this pull request, or ask for changes to those rules. Independently of that decision, two fixes are needed:
- Rewrite the best practice at line 24 of
DropdownMenuRadioGroup.doc.mjs, which still sayslabel"remains required", to the title-or-label rule, and add the title to that doc's usage text and anatomy. - Reword proposed PR1 in
DropdownMenuRadioGroup.spec.md, which still describes a per-groupMutationObserverand no other Effect, to the shared content observer subscription and the three development-warning Effects.
[Automated review]
| - **PR1 — Context, and the title's text.** The group memoizes a small context | ||
| value. Only while a `title` is given, it reads its heading's text after each | ||
| commit, before paint, and again through one `MutationObserver` on the heading, | ||
| disconnected on cleanup, so a title that changes its own text is read again | ||
| (proposed FR9). It owns no other Effect, listener, timer, request, or resource | ||
| lifecycle. |
There was a problem hiding this comment.
Proposed PR1 does not match the code: the group subscribes to the shared content observer (observeContent in utils/sharedMutationObserver.ts), whose cleanup removes only this subscription, and the three useDevWarning calls each add an Effect. Reword it to the shared-observer subscription and the warning Effects before an owner approves it.
| description: | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required even when aria-labelledby (via base props) points to visible text; that visible reference becomes the computed name while label remains the fallback.', | ||
| required: true, | ||
| 'Accessible name for the group, applied as aria-label so screen readers announce the radios as a named set, e.g. "Sort by". Required unless title is given. An aria-labelledby passed through base props that points at visible text becomes the computed name, while label remains the fallback. With a title, the title names the group instead, so the name holds the visible heading; label (or an aria-label passed through base props) is then ignored, with a development warning when it differs from the text of the title. Without a title, an aria-label passed through base props names the group when label is omitted.', |
There was a problem hiding this comment.
This now says label is required only without a title, but the best practice at line 24 of this file still says "label remains required", the usage text (line 14) asks for a label, and the anatomy (lines 42–55) has no title part. Update those three so astryx docs gives one rule.
|
I'm pausing this work for now to reduce contention on the repo. Thank you for the reviews and the spec guidance. |
User need
What led to it: this comes from moving every menu and picker in our app onto Astryx, which began with a press, slide and lift bug in its phone menus. Some of our menus title a section that holds a single radio set, such as "Sort by: Newest / Oldest".
Why: today the heading comes from wrapping the set in a
DropdownMenuGroup, andDropdownMenuRadioGroupneeds its ownlabel, so a screen reader meets two nested groups with the same name, and no public API avoids it.Problem and solution fit
DropdownMenuRadioGrouptakesDropdownMenuGroup'stitle: the same section heading, as its first child, naming the radio group. One group, one name, no wrapper.Current specification
component:DropdownMenuRadioGroup(draft): this PR proposes a Title concept, FR7–FR9 and DEC-1, pending owner review. The heading reusescomponent:DropdownMenuFR14 and DEC-6.Public delta and caller burden
titleonDropdownMenuRadioGroup(also exported asContextMenuRadioGroup);labelbecomes optional when atitleis given.aria-labelledbyis read after it, andlabeloraria-labelis ignored, with a development warning when they differ.title, nothing changes. Callers who wrapped a single set in aDropdownMenuGroupcan drop the wrapper.Design and alternatives
DropdownMenuGroupstop naming itself when its only child is a named set. No new prop, but the group would have to inspect its children.label. Small, but the visible text and the spoken name can drift apart.titleon the radio group (chosen). The sibling already ships it, and the visible heading is the name. The cost:titleandlabelnow interact, which the warning covers.Evidence
New cases in
DropdownMenuSelectable.test.tsxfail onmain;RadioGroupTitle.a11y.chromium.spec.tschecks in Chromium that the set is one group named by its heading.Writing rubric results
R1 narration: none.
R2 research: none.
R3 evidence: none.
R4 rejected alternatives: none.
R5 change references: none.
R6 open questions: none.
Evidence
See Testing: red on
main, green here.Scope
Testing
In Storybook, open Core/DropdownMenu → Radio group with a title and open "Filter".