-
Notifications
You must be signed in to change notification settings - Fork 641
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
Feature request: add 'class' parameter to svg() #3174
Comments
Not sure I’m following. You mean so it ends up like this? <svg class="<TheClassName>" ... /> |
Yep – can also be done with a find and replace on the text, but would be nice to have it as part of the svg() function if possible. |
I’m not really interested in making the |
Fair enough – I'll stick to my plugin! |
@frankharrison-wj Have you released this plugin somewhere by any chance? :) |
I’ve actually seen the light on why a |
@brandonkelly Great! Have you been using functional CSS by any chance? ;) |
Haha yes :) |
OK added for the next 3.1 beta release :) |
That was fast! |
Ah that's great! Was about to say that I'd not released my plugin anywhere, as it's probably not super-stable and relies on being used exactly as I use it! But glad to see I'm not going to need it soon. |
Would be great for the svg() function to allow a second 'class' parameter which would inject that class name into the SVG before inlining it. I built my own plugin to do this but would be nice to have out-of-the-box!
The text was updated successfully, but these errors were encountered: