Remove style attributes on default SVG template
See original GitHub issueas mentioned here putting a style like:
style="width:0; height:0; visibility:hidden;"
is not very helpfull.
Even more when you reference the SVG externally, like:
<svg role="img" class="icon icon-pouic">
<use xlink:href="/svg/svg-symbols.svg#icon-pouic"></use>
</svg>
It should be:
- removed from SVG template
- add in the doc the “hidden accessible” CSS (like in #23)
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Why does TYPO3 remove values of style="" attributes during ...
-- It seems to be a longstanding Firefox Issue. Inkscape saved my SVG with inline CSS-styles, and Firefox removes these, by default. Because ......
Read more ><style> - SVG: Scalable Vector Graphics - MDN Web Docs
This attribute defines type of the style sheet language to use as a media type string. Value type: <string>; Default value: text/css ;...
Read more >Styling – SVG 1.1 (Second Edition) - W3C
Styling properties define how the graphics elements in the SVG content are to ... SVG content used as an exchange format (style sheet...
Read more >remove-svg-properties - npm
Remove attributes and styles from SVGs. Latest version: 0.3.4, last published: a year ago. Start using remove-svg-properties in your project ...
Read more >Work with SVG format in Illustrator - Adobe Support
Go to Effect > SVG Filters > Apply SVG Filter. · In the dialog box, select the effect and then select the Edit...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why not use a custom template?
see here
Yep, using native modules is often a good idea 😃