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

Svgo icons cleanup #4285

Merged
merged 3 commits into from Sep 19, 2021
Merged

Svgo icons cleanup #4285

merged 3 commits into from Sep 19, 2021

Conversation

jimblue
Copy link
Contributor

@jimblue jimblue commented Sep 19, 2021

Hi,

I've noticed Statamic SVG icons aren't all responsive because some have a hard coded with and height.

In the exemple below, you can see that the second icon (the "earth") doesn't scale as expected:

Screenshot 2021-09-19 at 21 09 19

This PR add SVGO in the project to fix this issue and optimise all SVG icons at the same time.

jimblue and others added 3 commits Sep 19, 2021
- use 'preset-default' as base config
- use 'sortAttrs' to beautify SVG
- use 'removeDimensions' to make SVG responsive
@jackmcdade jackmcdade self-requested a review Sep 19, 2021
@jackmcdade jackmcdade merged commit 8ad6f26 into statamic:3.2 Sep 19, 2021
25 checks passed
@jackmcdade
Copy link
Member

@jackmcdade jackmcdade commented Sep 19, 2021

This was on my todo list forever. Thank you! 👏

@jimblue
Copy link
Contributor Author

@jimblue jimblue commented Sep 19, 2021

I had no idea but that's great then, one more checked box ! 💪🏼

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