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

Added configuration to preserve viewBox attribute in README #120

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leoolivier
Copy link

By default, SVGO does not preserve the viewBox attribute for optimization reasons. This can cause issues when you need to resize your SVG with CSS. This pull request proposes to add a code snippet showing the configuration to preserve the viewBox attribute.

@leoolivier leoolivier changed the title Added configuration to preserve ViewBox attribute in README Added configuration to preserve viewBox attribute in README Jul 27, 2023
@Aybee5 Aybee5 mentioned this pull request Oct 4, 2023
Copy link

@richrd richrd left a comment

Choose a reason for hiding this comment

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

Thanks, this was really helpful. LGTM! Hope it gets merged soon.

@mvarchdev
Copy link

Needed also here!

@jpkleemans
Copy link
Owner

Thanks for your PR. I think this should be in a new section "Common issues". Can cou add that to the readme and place your issue + solution there, as a collapsed item (see this gist)?

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

4 participants