refactor(icons): normalize SVG formatting and a11y#56
Merged
Conversation
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.
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.
Summary
viewBox-first style.fediverse.svg's empty<g>wrapper and collapse its multi-line layout.aria-hidden="true"tofediverse.svgso screen readers skip the decorative glyph; the surrounding link's accessible name already comes fromt('menu_social_fediverse').listenbrainz.svg's attributes to match (viewBox→xmlns→aria-hidden).Why
Most of the 11 bundled icons already follow the dominant style (single line,
viewBox xmlns aria-hidden, no wrapping<g>, no inlinefill). Three outliers were inconsistent enough to be worth a one-off cleanup.Test plan
t('menu_social_fediverse')only, not the SVG content.