Skip to content

docs(spec): the interactive element owns a composite's accessible name - #10102

Draft
cixzhang wants to merge 6 commits into
mainfrom
spec/composite-naming-delta
Draft

cixzhang wants to merge 6 commits into
mainfrom
spec/composite-naming-delta

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A screen-reader user on an interactive settings row hears its label and description run together, and a caller's aria-label on the row can land on the list item, where nothing reads it. architecture:public-component-api INV5 says caller ARIA reaches "the element that owns the contract", but it doesn't say which element that is when a button sits inside a non-interactive root. This draft names the focused element.

Spec explainer (human view): kept internally with the owner review.

Owner decision (draft until decided)

Where a composite's name and the caller's naming attributes go (INV5 paragraph, DEC-11, decider pending). Recommended A: the interactive element gets its name from the visible primary text, its description from the secondary text, and the caller's aria-label, aria-labelledby, and aria-describedby. Styling and layout inputs stay on the root. Alternatives: B, every caller prop goes to the interactive element; C, each component decides (today).

Current-state impact

  • architecture:public-component-api: an INV5 paragraph, a verification row, and DEC-11 (main now carries DEC-1 to DEC-10; DEC-11 is this decision).
  • Components that put naming attributes on the root (an interactive ListItem today) change with conformance work.
  • No code changes and no new props. No open pull request claims these lines.

@vercel

vercel Bot commented Nov 5, 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 23, 2026 7:21pm UTC

Request Review

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

astracat-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 23, 2026, 7:23 PM UTC

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

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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.

This pull request needs a maintainer check before review continues.

[Automated review]

@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.

This pull request needs a maintainer check before review continues.

[Automated review]

…-delta

# Conflicts:
#	docs/architecture/public-component-api.md

@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.

Approval waits on an engineering owner's decision on the new INV5 naming paragraph and DEC-3 in architecture:public-component-api. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision should also say whether a caller aria-label replaces the whole name taken from the visible text.

These record fixes are needed whatever the decision:

  • Miss: the fallback "stay on the root unless the component's record names another element" contradicts family:input-fields FR10, which sends base props to the primary semantic control, so let a family record name another element too.
  • Miss: the naming rule contradicts ClickableCard FR6, SelectableCard FR6 and Token FR10, which keep caller ARIA such as aria-label on the root, so amend those clauses here or narrow the paragraph to the components it means.
  • Regression: the Selector trigger example contradicts Selector AR1, which names the trigger from its label followed by the selected value, so drop it or let a component's record compose the name from more than one visible text.
  • The interactive-Avatar example and its verification-row entry contradict Avatar FR5, FR6 and FR9, where the link or button is the root and is named from alt or name, so drop Avatar from both.
  • Miss: the description has no ## Writing rubric results and DEC-3 narrates the change ("Today …", "now carries …"), so add the rubric results and state DEC-3 in the present tense.

The description still calls the decision DEC-2, which at this head is the data-attribute decision; the proposal is DEC-3.

[Automated review]

Comment on lines +145 to +146
such as an interactive ListItem row, a Selector trigger, or an interactive
Avatar, the interactive element owns the naming contract. Its accessible

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.

Two examples do not fit the rule. Selector AR1 names the closed trigger "its label followed by the selected value's text", which neither reading of primary and secondary text gives. Avatar FR6 makes the link or button the root, and FR5 names it from alt or name, not visible text. Drop both here and in the INV5 (naming), DEC-3 verification row, or let a component's record compose the name.

Comment on lines +453 to +458
it, not the list item around it. Today a caller's `aria-label` or
`aria-describedby` on such a component can land on the root, where nothing
reads it, and the row's description is not linked to the button. The element
that takes focus now carries the name, the description, and the caller's
naming attributes (INV5). Layout and styling inputs stay on the root, so no
current styling call changes.

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.

architecture:knowledge-contracts asks a record to describe the system in the present tense, not the project. "Today …", "now carries …" and "so no current styling call changes" narrate the change; state the decision and its reason as they hold once decided.

…-delta

# Conflicts:
#	docs/architecture/public-component-api.md

@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.

Approval waits on an engineering owner's decision on the new INV5 naming paragraph and DEC-3 in architecture:public-component-api. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision should also say whether a caller aria-label replaces the whole name taken from the visible text.

These record fixes are needed whatever the decision:

  • Miss: the fallback "stay on the root unless the component's record names another element" contradicts family:input-fields FR10, which sends base props to the primary semantic control, so let a family record name another element too.
  • Miss: the naming rule contradicts ClickableCard FR6, SelectableCard FR6 and Token FR10, which keep caller ARIA such as aria-label on the root, so amend those clauses here or narrow the paragraph to the components it means.
  • Regression: the Selector trigger example contradicts Selector AR1, which names the trigger from its label followed by the selected value, so drop it or let a component's record compose the name from more than one visible text.
  • The interactive-Avatar example and its verification-row entry contradict Avatar FR5, FR6 and FR9, where the link or button is the root and is named from alt or name, so drop Avatar from both.
  • Miss: the description has no ## Writing rubric results and DEC-3 narrates the change ("Today …", "now carries …"), so add the rubric results and state DEC-3 in the present tense.

[Automated review]

@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.

Approval waits on an engineering owner's decision on the new INV5 naming paragraph and DEC-3 in architecture:public-component-api. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision should also say whether a caller aria-label replaces the whole name taken from the visible text.

These record fixes are needed whatever the decision:

  • Miss: the fallback "stay on the root unless the component's record names another element" contradicts family:input-fields FR10, which sends base props to the primary semantic control, so let a family record name another element too.
  • Miss: the naming rule contradicts ClickableCard FR6, SelectableCard FR6 and Token FR10, which keep caller ARIA such as aria-label on the root, so amend those clauses here or narrow the paragraph to the components it means.
  • Regression: the Selector trigger example contradicts Selector AR1, which names the trigger from its label followed by the selected value, so drop it or let a component's record compose the name from more than one visible text.
  • The interactive-Avatar example and its verification-row entry contradict Avatar FR5, FR6 and FR9, where the link or button is the root and is named from alt or name, so drop Avatar from both.
  • Miss: the description has no ## Writing rubric results and DEC-3 narrates the change ("Today …", "now carries …"), so add the rubric results and state DEC-3 in the present tense.
Claims and files checked
  • Claim: a screen-reader user hears an interactive row's label and description run together. Verified: Item's invisible button wraps both texts (packages/core/src/Item/Item.tsx:911-925).
  • Claim: a caller aria-label on the row lands on the list item. Verified: caller props spread on the row root (Item.tsx:1001).
  • Claim: INV5 does not say which element owns the contract when a button sits inside a non-interactive root. Verified (public-component-api.md:140-143 on main).
  • Claim: option A names the interactive element from the primary text, describes it from the secondary text, sends it the caller's naming attributes and keeps styling and layout on the root. Verified as written (:144-151, :459-474); the record also keeps other DOM, data and event inputs on the root.
  • Claim: the change adds an INV5 paragraph, a verification row and DEC-3, with DEC-2 already taken on main. Verified (:424, :459, :509).
  • Claim: components that put naming attributes on the root, such as an interactive ListItem, change with conformance work. Incomplete: ClickableCard, SelectableCard and Token also do by their current records (findings above).
  • Claim: no code changes and no new props. Verified: one Markdown record changes.
  • Claim: no open pull request claims these lines. Verified for INV5 and DEC-3 among the open record changes found; two of them add DEC-4, DEC-5 and DEC-7 to this record and edit the same verification table.
  • File docs/architecture/public-component-api.md: the findings above for the INV5 paragraph, DEC-3 and the new row; the re-padded table is clear.

Automated review (maintainer link)

Comment on lines +147 to +148
name comes from the visible primary text, its description from the visible
secondary text, and the caller's `aria-label`, `aria-labelledby`, and

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.

Sending the caller's naming attributes to the interactive element contradicts three current records this pull request leaves unamended: ClickableCard FR6 and SelectableCard FR6 send caller ARIA to the Card root, and Token FR10 keeps a caller aria-label on the clickable root. Amend those clauses here, each with a requirement gap until the code follows, or narrow the paragraph to the components it means.

main reworded the public-component-api INV18 verification row (catalog message rewords) and reflowed the table. Take main's table and keep this branch's INV5 naming and DEC-3 row.

@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.

Approval waits on an engineering owner's decision on the new INV5 naming paragraph and DEC-3 in architecture:public-component-api. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision should also say whether a caller aria-label replaces the whole name taken from the visible text.

These record fixes are needed whatever the decision:

  • Miss: the fallback "stay on the root unless the component's record names another element" contradicts family:input-fields FR10, which sends base props to the primary semantic control, so let a family record name another element too.
  • Miss: the naming rule contradicts ClickableCard FR6, SelectableCard FR6, Token FR10, ListItem FR1 and Thumbnail FR3/FR7, which keep a caller aria-label on the root (Thumbnail's root also holds two buttons), so amend those clauses here or narrow the paragraph to the components it means.
  • Regression: the Selector trigger example contradicts Selector AR1, which names the trigger from its label followed by the selected value, so drop it or let a component's record compose the name from more than one visible text.
  • The interactive-Avatar example and its verification-row entry contradict Avatar FR5, FR6 and FR9, where the link or button is the root and is named from alt or name, so drop Avatar from both.
  • Miss: the description has no ## Writing rubric results and DEC-3 narrates the change ("Today …", "now carries …"), so add the rubric results and state DEC-3 in the present tense.
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: a screen-reader user hears an interactive row's label and description run together. Verified: Item's invisible button wraps both texts (packages/core/src/Item/Item.tsx:967-983).
  • Claim: a caller aria-label on the row lands on the list item. Verified: caller props spread on the row root (Item.tsx:1035).
  • Claim: INV5 does not say which element owns the contract when a button sits inside a non-interactive root. Verified (public-component-api.md:140-143 on main).
  • Claim: option A names the interactive element from the primary text, describes it from the secondary text, sends it the caller's naming attributes and keeps styling and layout on the root. Verified as written (:144-151, :462-476); the record also keeps other DOM, data and event inputs on the root.
  • Claim: the change adds an INV5 paragraph, a verification row and DEC-3, with DEC-2 already taken on main. Verified (:435, :462, :512).
  • Claim: components that put naming attributes on the root, such as an interactive ListItem, change with conformance work. Incomplete: ClickableCard, SelectableCard, Token and Thumbnail also do by their current records (findings above).
  • Claim: no code changes and no new props. Verified: one Markdown record changes.
  • Claim: no open pull request claims these lines. Verified among the open record changes found: three others edit this record and its table, adding DEC-4 to DEC-9, and none adds DEC-3 or touches the INV5 paragraph.
  • File docs/architecture/public-component-api.md: the findings above for the INV5 paragraph, DEC-3 and the new row; the re-padded table is clear.

Automated review (maintainer link)

supported DOM, data, ARIA, style, class, and event inputs reach the element that
owns the contract. Component-owned accessibility and behavior cannot be
accidentally overwritten.
In a component whose interactive element sits inside a non-interactive root,

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.

Miss: two more current records keep a caller aria-label off the interactive element. component:ListItem FR1 sends other DOM and data props to the <li> and carves out only aria-current for the row's focusable element, and component:Thumbnail FR3 and FR7 let a caller aria-label name the role="group" root, which holds separate Open and Remove buttons, so "the interactive element" does not say which would take it. Amend those clauses with requirement gaps, or narrow the paragraph to composites with one action element and let a component's record name the target when a root holds several.

Main now carries DEC-1 to DEC-10 in public-component-api, so this
record's decision moves from DEC-3 to DEC-11, with its INV5 citation
and verification row. The verification table takes main's rows plus
this record's row.

@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.

Approval waits on an engineering owner's decision on the new INV5 naming paragraph and DEC-11 in architecture:public-component-api. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision should also say whether a caller aria-label replaces the whole name taken from the visible text or only the label's part of it.

These fixes are needed whatever the decision:

  • Miss: the fallback “stay on the root unless the component's record names another element” contradicts family:input-fields FR10, which sends base props to the primary semantic control, so let a family record name another element too.
  • Miss: the naming rule contradicts ClickableCard FR6, SelectableCard FR6, Token FR10, ListItem FR1 and Thumbnail FR3/FR7, which keep a caller aria-label on the root (Thumbnail's root also holds two buttons), so amend those clauses here or narrow the paragraph to the components it means.
  • Regression: the Selector trigger example contradicts Selector AR1, which names the trigger from its label followed by the selected value, so drop it or let a component's record compose the name from more than one visible text.
  • The interactive-Avatar example and its verification-row entry contradict Avatar FR5, FR6 and FR9, where the link or button is the root and is named from alt or name, so drop Avatar from both.
  • Miss: the description has no ## Writing rubric results and DEC-11 narrates the change (“Today …”, “now carries …”), so add the rubric results and state DEC-11 in the present tense.
  • The description says main carries DEC-1 to DEC-10, but this record on main holds only DEC-1, DEC-2, DEC-6 and DEC-10, so correct that line.
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: a screen-reader user hears an interactive row's label and description run together. Verified: Item's invisible button wraps both texts (packages/core/src/Item/Item.tsx:973-989).
  • Claim: a caller aria-label on the row lands on the list item. Verified: caller props spread on the row root (Item.tsx:1041).
  • Claim: INV5 does not say which element owns the contract when a button sits inside a non-interactive root. Verified (public-component-api.md:144-147 on main).
  • Claim: a human-view explainer is kept with the owner review. Not checkable in the repository; the description carries no link.
  • Claim: option A names the interactive element from the primary text, describes it from the secondary text, sends it the caller's naming attributes and keeps styling and layout on the root. Verified as written (:148-155, :495-509); the record also keeps other DOM, data and event inputs on the root.
  • Claim: alternatives B (every caller prop to the interactive element) and C (each component decides) are rejected. Verified (:507-509).
  • Claim: the change adds an INV5 paragraph, a verification row and DEC-11. Verified (:148-155, :495, :537).
  • Claim: main carries DEC-1 to DEC-10. False: this record on main holds DEC-1, DEC-2, DEC-6 and DEC-10 (finding above).
  • Claim: components that put naming attributes on the root, such as an interactive ListItem, change with conformance work. Incomplete: ClickableCard, SelectableCard, Token and Thumbnail also do by their current records (findings above).
  • Claim: no code changes and no new props. Verified: one Markdown record changes.
  • Claim: no open pull request claims these lines. Verified among the open record changes found: three others edit this record and its table, adding DEC-4, DEC-5 and DEC-7 to DEC-9, and none touches the INV5 paragraph or adds DEC-11.
  • File docs/architecture/public-component-api.md: the findings above for the INV5 paragraph, DEC-11 and the new row; the re-padded table is clear.

Automated review (maintainer link)

Comment on lines +153 to +155
`aria-describedby` reach it. Other DOM, data, style, class, and event inputs
stay on the root unless the component's record names another element
(DEC-11).

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.

This fallback contradicts family:input-fields FR10: in a Field-composed component such as Selector, base props, data-* and DOM event handlers MUST reach the primary semantic control, and there is no root xstyle, className or style. Suggest “unless the component's or its family's record names another element”, as INV6 already allows a family exception.

This branch was successfully deployed

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

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant