-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
improvement: replace svg classes with inline css #403
Conversation
Release develop to master after icon build job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files still retain their original color and shape from the changes. I have only check a small percentage but overall everything seems fine.
Hey @rawdanowiczdev, Thank you very much for your work! That seems to be a lot of files to get through so props to your dedication. We will double check your work and accept your PR after more checking. Out of curiosity, how did you convert the classes to fills? I'm thinking that we might have to look out for this issue in the future and if you have a script that can fix files with these issues, it'd be great if we can use it. |
Hey @Thomas-Boi,
I believe it would be a good decision to make it mandatory not to use CSS classes for the future icons to avoid any new conflicts. |
Thanks for your time @rawdanowiczdev! We will need some time to double check all modifications, and make sure everything looks as expected. I would suggest to setup a small github action which will check that future pull requests will pass our requirements of having inline attributes instead of classes for the svg's (we should also add this requirement to our contribution guidelines). A action which auto-corrects those pull requests is optional in my opinion. I will create a new issue for this request: #407. |
Hey @amacado , I'll double check the svg files for us both so we don't repeat each other's work. I've already went through 26 of them so it shouldn't take too long. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked all of the files and most of them are great. However, there are two files that were changed by the replacement process. They are:
Besides these two svgs, everything else looks great. We'll accept your PR once these files are updated 😄
@Thomas-Boi that's right, I should have seen that! But it's already good to go with my last commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing haskell. For me I'm fine with all changes, waiting for @Thomas-Boi to approve as well :)
Nice to hear that! I hope everything's good to go now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job @rawdanowiczdev 👍
Everything looks good now. Props to @amacado for spotting Haskell, I didn't notice the color change.
I'll approve and merge this commit.
improvement: replace svg classes with inline css
Hello,
according to my issue I've closed the scope of all icons that were using classes.
With this PR there should be no more conflicts beetween icons in case of using more of them in a single project. Each icon is styled directly with
fill
attribute and if required (for example with gradients) a uniqueid
.I hope it's gonna be helpful.