Repository navigation
fix(web): name restore row checkboxes from the plain label - #4734
Conversation
Chromium read the <wbr> break points in a row's name as spaces, so a checkbox was announced as "maximiliana. vandenberghe". Each checkbox now takes its accessible name from the plain label. The account details' merge line also wraps a long username instead of running past the panel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 4 minutes. View limit details
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The accessibility snapshots support the checkbox-name fix. The merge-line wrapping also changes visible layout, but the Evidence section provides measurements instead of captures. Please add before-and-after screenshots of the expanded account details with the same long username at an affected desktop width and at phone width if affected; if phone layout is unchanged, note that explicitly. |
The break rule allowed a break after any dot not followed by a digit, so "Wait... What?" could split inside its ellipsis in a narrow row, and a dot before a space gained a needless break point. A dot now breaks only when a letter or symbol other than a dot or space follows it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (the backup restore screen exists only in web admin)
Since #4715, a screen reader can announce a restore row's checkbox with a space in the middle of its name, such as "maximiliana. vandenberghe". #4715 added
<wbr>break points after the dots and underscores in each row's name so it wraps between words in a narrow row. In a one-line row (42rem and wider) those<wbr>elements are hidden, and Chromium then reads each one as a space when it builds the checkbox's name from its label. This change names each checkbox from the plain label instead.#4715 also shows an account's merge status ("Merge into …") in its details whenever the row is narrow, which now includes 1024–1280 px desktop windows. A very long unbroken username there ran past the edge of the details; the line now wraps.
Approach
ItemRowandAccountRowpass the plain label to their checkbox asaria-label. The visible<label htmlFor>stays, so clicking the name still toggles the checkbox.wrap-anywhere.Validation
maximiliana. vandenbergheandtheodora. vanderwoodsen. On this branch they aremaximiliana.vandenbergheandtheodora.vanderwoodsenat 360, 1024 and 1440 px.<wbr>elements, which jsdom doesn't reproduce.Evidence
Nothing on screen changes apart from a very long username wrapping in an account's details, so the evidence is the measured names and widths.
Evidence: https://evidence.siloserver.org/r/silo-server/restore-row-checkbox-name/
Risks
None identified. The checkbox's name was already the label's text; it now skips the
<wbr>elements.Checklist
Council review
These are two findings from the background review of #4715, which merged before the fix landed there. The plan round was skipped because the fix is two attributes and one class where the reviewers placed them. The visual review was skipped because nothing on screen changes apart from the long-username wrap.
Background review: running, reviewing d70f408
AI Disclosure
🤖 Generated with Claude Code
Note
Name restore row checkboxes from the plain label and refine
BreakableKeydot breaksaria-labelto the row's plain display label inItemRow(RestoreRows.tsx) and to the account item label inAccountRow(RestoreUsers.tsx), so screen readers get an explicit name.BreakableKeyseparator rules: underscores stay break points; a dot is a break point only when the next character is not a digit, dot, or whitespace.wrap-anywhereclass to the small-screen account status paragraph.BreakableKeyno longer inserts break opportunities after dots followed by a digit, another dot, or whitespace — check existing restore-row key rendering for unwanted wrap changes.Macroscope summarized 3ba5c79.