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
Generated by PR Enrichment workflow | View current CI run |
58eead5 to
ec06c19
Compare
…-delta # Conflicts: # docs/architecture/public-component-api.md
There was a problem hiding this comment.
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-fieldsFR10, 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-labelon 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
altorname, so drop Avatar from both. - Miss: the description has no
## Writing rubric resultsand 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]
| such as an interactive ListItem row, a Selector trigger, or an interactive | ||
| Avatar, the interactive element owns the naming contract. Its accessible |
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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-fieldsFR10, 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-labelon 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
altorname, so drop Avatar from both. - Miss: the description has no
## Writing rubric resultsand DEC-3 narrates the change ("Today …", "now carries …"), so add the rubric results and state DEC-3 in the present tense.
[Automated review]
There was a problem hiding this comment.
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-fieldsFR10, 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-labelon 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
altorname, so drop Avatar from both. - Miss: the description has no
## Writing rubric resultsand 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-labelon 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-143on 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.
| name comes from the visible primary text, its description from the visible | ||
| secondary text, and the caller's `aria-label`, `aria-labelledby`, and |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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-fieldsFR10, 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-labelon 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
altorname, so drop Avatar from both. - Miss: the description has no
## Writing rubric resultsand 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-labelon 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-143on 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.
| 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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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-fieldsFR10, 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-labelon 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
altorname, so drop Avatar from both. - Miss: the description has no
## Writing rubric resultsand DEC-11 narrates the change (“Today …”, “now carries …”), so add the rubric results and state DEC-11 in the present tense. - The description says
maincarries DEC-1 to DEC-10, but this record onmainholds 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-labelon 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-147onmain). - 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:
maincarries DEC-1 to DEC-10. False: this record onmainholds 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.
| `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). |
There was a problem hiding this comment.
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.
Summary
A screen-reader user on an interactive settings row hears its label and description run together, and a caller's
aria-labelon the row can land on the list item, where nothing reads it.architecture:public-component-apiINV5 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, andaria-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).