Skip to content

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

Closed

Description

@nc9

Source: MCP feedback fb_264 (run 01M7XFWNWK09DK0EPG1ZBGE9P6, site uiverify.ai).

Seen. a11y/aria-command-name (error) flags a[href="/"] on all 25 pages and made it the editor summary's #1 priority. Live markup: <a href="/"><svg role="img" aria-label="UI Verify">...</svg></a>. A link's name from content includes embedded role=img children (accname 2F), so the link is named "UI Verify". Five other flagged links on other sites are probably the same logo pattern.

Where. packages/rules/src/a11y/aria-command-name.ts: the name check only looks at svg title.

Expected. Include descendant svg[role=img] with aria-label/aria-labelledby/<title> and img[alt] in the computed name; fail only when the name is empty.

Acceptance Criteria

  • Fixture: a link containing <svg role="img" aria-label="X"> passes; with aria-labelledby and with <title> also pass.
  • A link containing only an svg with no name still fails.
  • Existing aria-command-name tests pass.

nik

Activity

  1. added
    bug
    size: S
    rules
    on Nov 22, 2026
  2. added theissue type on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions