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

Use styles in SVGs #31

Open
buzcarter opened this issue Sep 13, 2023 · 0 comments
Open

Use styles in SVGs #31

buzcarter opened this issue Sep 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@buzcarter
Copy link
Owner

Instead of using props use style in SVG, as Adobe Illustrator...

Replace:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 350 360">
<path class=style="fill:#EBEBEB;" d="..." />

With

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 350 360">
<style type="text/css">
  .st0{fill:#EBEBEB;}
</style>
<path class="st0" d="..." />
@buzcarter buzcarter added the enhancement New feature or request label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant