Repository navigation
fix(site/src): announce copy, loading, and error status messages - #32143
Merged
Merged
Conversation
Copy buttons, the logs loading spinner, latency refresh, and sign in and password form errors now update live regions that are mounted before the message appears, so screen readers announce them (WCAG 4.1.3).
…tus among live regions Messages now include CopyButton status regions, so the story can no longer assume a single status on the page.
jaaydenh
approved these changes
Nov 13, 2026
The loading spinner renders inside the popover, which mounts together with it, so screen readers never heard the loading state. An always-mounted status region outside the popover announces it.
aqandrew
temporarily deployed
to
docs-preview
November 14, 2026 00:00 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Screen readers did not announce copy confirmations, the logs and user search loading states, latency refreshes, or sign in and password errors (WCAG 4.1.3 Status Messages). Each of these now updates a live region that is already mounted before its message appears, so the text change is announced reliably. Nothing changes visually: all new regions are
sr-only, and the form layout keeps its spacing.CopyButton(workspace name, SSH command viaCodeExample, and every other caller), the agent logs copy button, and the user menu's deployment ID item render arole="status"span that reads "Copied" while the check icon shows. In the menu, the span sits inside the menu item becausestatusis not an allowed child ofmenu.role="status"span outsideCollapsibleContentreads "Loading logs" while the logs spinner shows.CollapsibleContentunmounts when closed, so a region inside it would mount at the same moment as its text.Autocomplete(Share Chat "Search for user or group" and the other sharing pickers) announces "Loading" while options load, from arole="status"span outside its popover.role="status"span next to the proxy menu (outside the menu content, which is non-modal since fix(site/src): stop dropdown menus hiding the page from assistive technology #31969) reads "Refreshing latencies", then "Latencies refreshed".ErrorAlerts now render inside an always-mountedrole="alert"wrapper. The innerAlertgetsrole="none"through a new optionalroleprop, so the message is announced once. The sign in field errors ("Please enter an email address.") are always-mountedrole="alert"spans;gap-2moved to margins so the empty span takes no space. Mutation errors reset on retry, so a repeated failure is announced again.The
ChatPageContentstoryInterruptingShowsBusyComposernow picks its status out of several live regions, because chat messages renderCopyButtons.Closes DEQ-82
Closes DEQ-203
Closes DEQ-329
Closes DEQ-480
Closes DEQ-560
Screen reader announcements were not verified with NVDA here; tests assert that each message lands in a region that existed before it appeared.
Dropped review findings
AgentRowrender test for the logs copy and loading status: renderingAgentRowneeds agent log websockets.CopyButton.test.tsxcovers the identical copy pattern.<span role="status" className="sr-only">into a component: about five existing call sites already inline the same span, and a new primitive for one line is premature.Grouping and decision log
agent-okwas applied. Its first element (deployment ID copy) was already covered by the user menu change. Its second element is fixed in the sharedAutocomplete. The trigger's inline spinner adds "Loading spinner" to the trigger's accessible name. That predates this PR and is left alone.Alertalready hadrole="alert", yet Deque reported the login and security errors as not announced. Instead of changingAlerttiming globally, the two affected forms keep an always-mounted region and neutralize the inner role to avoid a double announcement.position: absolute(sr-only), so it adds no flex gap. All 14CopyButtoncall sites were checked forspace-*,divide-*,last:and similar sibling selectors; none apply.role="alert"(assertive) to match the form error alert. After a failed submit, the first keystroke that changes the message ("enter an email" to "enter a valid email") is announced once.🤖 Generated by Coder Agents on behalf of @aqandrew.