Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

fix(icons): update inner-path id to data attribute #411

Merged

Conversation

joshblack
Copy link
Contributor

Can't use an id in markup without chance of collision, this PR updates the SVGO logic to translate the id="inner-path" that we receive from Illustrator/Sketch to a data attribute: data-icon="inner-path".

Changelog

New

Changed

  • Map id to data-* attribute

Removed

@netlify
Copy link

netlify bot commented Mar 12, 2019

Deploy preview for carbon-elements ready!

Built with commit 1158952

https://deploy-preview-411--carbon-elements.netlify.com

@joshblack joshblack marked this pull request as ready for review March 13, 2019 16:27
@joshblack joshblack changed the title Fix update two tone to class fix(icons): update inner-path id to data attribute Mar 13, 2019
Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me 👍

@joshblack joshblack merged commit 490b0b1 into carbon-design-system:master Mar 13, 2019
@joshblack joshblack deleted the fix-update-two-tone-to-class branch March 13, 2019 19:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants