Skip to content

Conversation

@wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Oct 3, 2025

Overview

  • Only set aria-hidden if role is absent.
  • Indent attributes for Icon container (<span>).

Let user decide via attribute on Icon.

Related

None.

Changes

  • edit template

Testing

  1. Add an .svg Icon with no role attribute`.
  2. Verify HTML has aria-hidden="true".
  3. Add an .svg Icon with role attribute1 with any non-empty value.
  4. Verify HTML has role="that value" and no aria-hidden="true".

UI

Screen.Recording.2025-10-03.at.16.14.40.mov

Footnotes

  1. User can add role via Attributes (via "Advanced settings"). If user manually adds aria-hidden, no problem (it's just a duplicate).

@wesleyboar wesleyboar changed the title fix: svg could display content fix: svg icon should support role Oct 3, 2025
@wesleyboar wesleyboar merged commit 80208ac into main Oct 3, 2025
@wesleyboar wesleyboar deleted the fix/svg-role-should-not-assume-only-ever-presentation branch October 3, 2025 21:17
wesleyboar added a commit that referenced this pull request Oct 3, 2025
wesleyboar added a commit that referenced this pull request Oct 3, 2025
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.

2 participants