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

Allow custom styling for the SVG Element #76

Merged
merged 2 commits into from
Jun 12, 2022

Conversation

arymoraes
Copy link

This allows us to be able to customize the SVG, meaning we can use a background image with all the CSS properties of background properly, and still be able to export an SVG with that background (we wouldn't be able to do that by having on the style since it wouldn't apply to the export).

might solve #58 too (that's the main reason I made this)

@vinothpandian
Copy link
Owner

vinothpandian commented Jun 11, 2022

@arymoraes Great pull request. Your code is quite clean and thanks a lot for writing tests and keeping the same coding style as the codebase.

You are correct. This does fix #58 by setting the background property in the svgStyle prop. But the catch was to set backgroundImage prop as none.

@vinothpandian vinothpandian linked an issue Jun 11, 2022 that may be closed by this pull request
@vinothpandian vinothpandian merged commit 74060fd into vinothpandian:master Jun 12, 2022
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.

Base64 String Image in background is distorted
2 participants