Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use svg() for inline svgs #7247

Merged
merged 4 commits into from Dec 14, 2020
Merged

Use svg() for inline svgs #7247

merged 4 commits into from Dec 14, 2020

Conversation

missmatsuko
Copy link
Contributor

Description

Sanitizes SVG so there are no duplicate IDs.

For valid HTML and minor a11y improvement.

Sanitizes SVG so there are no duplicate IDs
@brandonkelly
Copy link
Member

Decided to just namespace each of the system’s SVG icon files instead, since these are trusted and we don’t need to actually sanitize them.

brandonkelly added a commit that referenced this pull request Dec 14, 2020
@brandonkelly brandonkelly reopened this Dec 14, 2020
@brandonkelly
Copy link
Member

Reverted as I overlooked the possibility of including the same SVG multiple times on the same page.

@brandonkelly brandonkelly merged commit ebed361 into develop Dec 14, 2020
@brandonkelly brandonkelly deleted the hotfix/svgs-duplicate-ids branch December 14, 2020 00:29
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.

None yet

2 participants