Repository navigation
docs(SelectorOption): a caller id lands on the content row, not on the option the listbox announces - #14060
docs(SelectorOption): a caller id lands on the content row, not on the option the listbox announces#14060cixzhang wants to merge 1 commit into
Conversation
…e option the listbox announces
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 2fdfed3 |
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approved pending CI. This pull request is a draft, so CI has not run on this head; marking it ready for review starts its run.
The sentence added to the ref entry matches the code at this head: Selector renders the content a renderOption returns inside its own role="option" element, and that element keeps the id aria-activedescendant names, while a caller id reaches the Item row inside it. Selector.test.tsx already covers that exact case ("keeps the option id when a SelectorOption row takes a caller id"), and the English, Chinese and dense entries carry the same statement, with a [docs] changeset that describes it accurately.
No blocking findings.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Docs only, with no code, test or record change — verified: the diff is two files,
packages/core/src/Selector/SelectorOption.doc.mjsand the new changeset. - SelectorOption renders inside Selector's own option element — verified:
Selector.tsxwraps therenderOptionresult in arole="option"element with its own id, on both the popover and the bottom-sheet paths. - A caller
idhas been possible since the previous pull request in this area — verified: that commit addedidto the global attributes the row accepts. - A caller
iddoes not name the option the listbox announces — verified: the Selector test asserts that the active-descendant reference is an option id and never the caller's, and that the option contains the caller's row. aria-activedescendantandaria-controlsmust not point at the content row — verified by the same test and by the component record's accessibility clause, which gives role, name and state to the option row.- No behavior change — verified: no rendered or shipped source file is touched.
- One sentence in the English, Chinese and dense docs — verified: all three
refdescriptions carry it. - The changeset is a
[docs]patch for the core package — verified in the changeset file. check:changesetspasses — verified: it reports 425 valid changesets at this head.- The overlap with the other open SelectorOption pull request is only the component, not the files — verified: that pull request changes the record and the test file only.
- Changeset coverage against the last release — reported by the author; the changeset check at this head agrees with the patch plan.
- Prettier is clean — reported by the author; the lint workflow is skipped on this draft head.
- A screen reader would announce the content row if a builder targeted it — reported as the motivation; no assistive-technology run is needed for a docs edit.
Files:
packages/core/src/Selector/SelectorOption.doc.mjs— clear: the threerefentries agree with each other and with the changeset..changeset/selector-option-id-content-row.md— clear: valid frontmatter,[docs]category, patch bump of the core package.
Summary
Docs only. When SelectorOption renders inside a Selector, it is the content row inside Selector's own
role="option"element. A builder who gives SelectorOption anid(possible since #14051) could think that id names the option. They might then pointaria-activedescendantoraria-controlsat it, and a screen reader would announce the content row instead of the option. Therefentry in SelectorOption's docs now says where a calleridlands, and not to target it.Change
SelectorOption.doc.mjs(en, zh, dense): one sentence in therefentry. A calleridlands on the content row, not on the option the listbox announces, so do not pointaria-activedescendantoraria-controlsat it..changeset/selector-option-id-content-row.md:[docs], no behavior change.No code, test or record change.
Testing
check:changesetspasses.Writing rubric results
Overlap checked: #14052 (also SelectorOption, but it changes only the test file and the record; this PR changes only the docs and a changeset)