Skip to content

refactor(icons): normalize SVG formatting and a11y#56

Merged
hakula139 merged 1 commit into
mainfrom
style/icon-svg-normalize
May 10, 2026
Merged

refactor(icons): normalize SVG formatting and a11y#56
hakula139 merged 1 commit into
mainfrom
style/icon-svg-normalize

Conversation

@hakula139

@hakula139 hakula139 commented May 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Normalize all icon SVGs to a consistent single-line, viewBox-first style.
  • Drop fediverse.svg's empty <g> wrapper and collapse its multi-line layout.
  • Add aria-hidden="true" to fediverse.svg so screen readers skip the decorative glyph; the surrounding link's accessible name already comes from t('menu_social_fediverse').
  • Reorder listenbrainz.svg's attributes to match (viewBoxxmlnsaria-hidden).

Why

Most of the 11 bundled icons already follow the dominant style (single line, viewBox xmlns aria-hidden, no wrapping <g>, no inline fill). Three outliers were inconsistent enough to be worth a one-off cleanup.

Test plan

  • Render the home page in the consuming site; visually confirm Fediverse and ListenBrainz icons display unchanged.
  • Tab through the social row with VoiceOver / NVDA; confirm Fediverse link reads t('menu_social_fediverse') only, not the SVG content.

Match the dominant single-line, viewBox-first style across all icons.
Drop fediverse.svg's empty <g> wrapper, collapse its multi-line layout,
and add aria-hidden="true" so screen readers skip the decorative glyph
(the surrounding link's accessible name comes from t('menu_social_*')).
Reorder listenbrainz.svg attributes to match.
@hakula139 hakula139 added the enhancement New feature or request label May 10, 2026
@hakula139 hakula139 self-assigned this May 10, 2026
@hakula139 hakula139 added refactor Reorganize the code to be cleaner and easier readable and removed enhancement New feature or request labels May 10, 2026
@hakula139 hakula139 merged commit b8b2211 into main May 10, 2026
1 check passed
@hakula139 hakula139 deleted the style/icon-svg-normalize branch May 10, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Reorganize the code to be cleaner and easier readable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant