Skip to content

fix(rules): aria-command-name counts child svg role=img names #2223 - #2230

Merged
nc9 merged 1 commit into
mainfrom
boat/aria-command-name-svg-2223
Nov 22, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/aria-command-name-svg-2223

Conversation

@nc9

@nc9 nc9 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #2223. A link or button whose content includes a descendant role=img element (svg) with aria-label or aria-labelledby is now named (accname 2F). aria-hidden descendants do not name it.

Acceptance: aria-label, aria-labelledby and svg title pass; unnamed svg still fails; existing tests pass (tests/aria-command-name-svg-img-2223.test.ts, a11y-name-rules-hidden-671, a11y-root-custom-properties-938).

Gates in packages/rules: format:check, lint, typecheck clean; rules suite via scripts/test-suites.ts --run rules: 12612 pass, 0 fail. changelog check OK. Docs: no change. Skill: no change.

@nc9
nc9 marked this pull request as ready for review November 22, 2026 04:40
@nc9
nc9 merged commit dd1311d into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the boat/aria-command-name-svg-2223 branch November 22, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

a11y/aria-command-name: link named by a child svg role=img aria-label is flagged as unnamed

1 participant