Repository navigation
fix(content): size the small loading dots to an icon, and let a loader name itself to screen readers (#1403 follow-up) - #1446
Merged
Conversation
…r name itself to screen readers - the sm dots are 16 px wide (w-4, 2 px gaps), the icon they most often stand in for, so a button's label doesn't move when its work starts - LoadingDots takes an optional label, said as a status (sr-only), for the five loaders nothing else named: the webhook dialog, the Content page, an opportunity's detail, the basket's Send and the file picker Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
approved these changes
Oct 24, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. One note on the test plan, fine as a follow-up.
What I checked:
- Item 2 (label shift): the
smbox is now 16 px (w-4: three 4 px dots and two 2 px gaps), the width of anh-4icon. Nosmcaller passes a width or gap of its own. The callers withmr-1.5/ml-1.5keep their spacing. - Item 3 (silent loaders): all five now pass a
label, and each key resolves in its component's namespace:content.webhook.loading,content.loadingOpportunities,content.loadingOpportunity,content.sendingandcontentEditor.newContent.content.reading.- Without a label, the markup is the same as before.
- With one,
classNamemoves to therole="status"wrapper. Sotext-muted-foregroundstill colors the dots throughbg-current, and thesr-onlytext adds no width.
- The two new tests cover the 16 px box and the labelled status, with the dots still
aria-hidden.
- (low) Step 2 of How to test won't hold as written. The basket's Send button (
web/src/components/content/opportunity-basket.tsx:302) replaces its text "Send" with the dots, not an icon, so it gets about 10 px narrower while it sends. If the width should stay, keep the text in the button asinvisibleand lay the dots over it. That also keeps "Sending..." as the only accessible name, because hidden text isn't read. Otherwise, drop "The button keeps its width" from the test plan.
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These are the two low follow-ups from the #1403 review (items 2 and 3).
smdots are now 16 px wide:w-4 justify-center, three 4 px dots with 2 px gaps. 16 px is the width of the icon they most often stand in for (h-4, 9 of 16 swaps).smcaller sets a width of its own.LoadingDotstakes an optionallabel. With it, the dots sit in arole="status"wrapper with the label assr-onlytext, andclassNamegoes on the wrapper. Without it, nothing changes: the dots stayaria-hidden.content.webhook.loading);content.loadingOpportunities);content.loadingOpportunity);content.sending);contentEditor.newContent.content.reading).Related issue
Follow-up to #1403 (review items 2 and 3).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && yarn test src/components/ui/loading-dots.test.tsxcovers the 16 px box, and the label read as a status with the dots still hidden.I haven't checked this in the browser yet; the Mac was under memory pressure. I'll add light and dark screenshots at 1024 px in the next local test session.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Tests: 3,341 pass. One fails in the full run: main's
_export-dialog.test.tsx"downloads Word and Markdown…", which checks focus right after an arrow key. It fails the same way on other branches under load, and passes on its own. The build passes.🤖 Generated with Claude Code