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

Convert Style Elements to Attributes #1169

Merged
merged 9 commits into from
Apr 30, 2022

Conversation

maltejur
Copy link
Contributor

In the process of trying to release the newest version of the react devicons, I got an error caused by the usage of style elements. The standards state that those style elements shouldn't be used

Each .svg must use the fill attribute instead of using classes for colors. This is to prevent class name clashing when using inline SVG. See #407 for more details.

so this pull request fixes all the icons which have style elements.


@thehedgefrog since all those icons were from you and I saw that you used Illustrator to create them, when you export the icon there is should be an option to include the css properties as Presentation Attributes. In the future you should use that (Style Attributes should also be fine).

image

@thehedgefrog
Copy link
Contributor

Oh my bad! I had missed that (and am still quite new at SVGs), sorry!

I'm happy to redo them if you'd prefer.

@maltejur
Copy link
Contributor Author

No problem

I'm happy to redo them if you'd prefer.

Thanks but there is no need for that, i have already cleaned up all icons in this PR

@amacado amacado merged commit b88855e into devicons:develop Apr 30, 2022
@maltejur maltejur deleted the fix_fill_attributes branch April 30, 2022 20:53
Snailedlt pushed a commit to Snailedlt/devicon that referenced this pull request Oct 15, 2022
* fix harvester icons

* fix vsphere icons

* fix k3os icons

* fix rancher icons

* fix k3os

* fix rider icons

* fix portainer icons

* remove missing class attributes

* add viewBox attribute
Snailedlt pushed a commit to Snailedlt/devicon that referenced this pull request Oct 15, 2022
* fix harvester icons

* fix vsphere icons

* fix k3os icons

* fix rancher icons

* fix k3os

* fix rider icons

* fix portainer icons

* remove missing class attributes

* add viewBox attribute
Snailedlt pushed a commit to Snailedlt/devicon that referenced this pull request Oct 15, 2022
* fix harvester icons

* fix vsphere icons

* fix k3os icons

* fix rancher icons

* fix k3os

* fix rider icons

* fix portainer icons

* remove missing class attributes

* add viewBox attribute
@Snailedlt Snailedlt mentioned this pull request Feb 5, 2024
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.

3 participants