Repository navigation
fix(accessibility): give the loading region a role so its label is exposed - #725
Merged
addyosmani merged 1 commit intoOct 29, 2026
Merged
Conversation
…posed Co-authored-by: Cursor <cursoragent@cursor.com>
addyosmani
approved these changes
Oct 29, 2026
addyosmani
left a comment
Owner
There was a problem hiding this comment.
praise: a div can't be named without a role, so the loading label was never exposed to assistive tech. role="status" is the right fix. Merging.
hillemacher
pushed a commit
to hillemacher/agent-skills
that referenced
this pull request
Dec 1, 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.
The loading skeleton in
frontend-ui-engineeringand the "Loading states" example inreferences/accessibility-checklist.mdboth putaria-label="Loading tasks"on a plain<div>. ARIA 1.2 prohibits naming an element with no role (adivisgeneric), so assistive tech drops the label and "Loading tasks" is never announced. The skeleton is exactly the case an agent copies when it follows the skill's "skeleton loading" advice.Trigger: run axe on the example as written.
(The checklist copy has child text in my harness, so axe reports it as "needs review" rather than a hard violation; it is the same markup problem.)
Fix: add
role="status"to both.statusallows an author-supplied name, and it is the polite live region the checklist already recommends for status messages, so the region is announced when loading ends.Verification:
wcag2a,wcag2aa,best-practice). Onmain: exits 1 with the output above. With this change: no violations, nothing to review, exit 0. I reverted the change once and watched it fail again.node scripts/validate-skills.js,validate-versions.js,validate-reference-links.js,validate-commands.js,validate-artifact-paths.js: pass.node --teston the seven test files CI runs: pass.bash hooks/session-start-test.sh: pass.node scripts/run-evals.js --min-rank1 95: 143 checks passed, rank-1 91/91.No description or trigger text changed.