- ๐จ๐ฆCanada mgifford Ottawa, Ontario
With inline SVG we can manage multilingual content in Twig.
Lots to pull on from here https://cariefisher.com/a11y-svg-updated/
- ๐ฆ๐นAustria hudri Austria
Default presentation attributes (fill/stroke/etc) should be moved off from SVG tags if it reduces the weight, and placed as Internal CSS
Please don't do this, especially not in core. I even propose to avoid CSS styles and encourage the use of presentation attributes, as they are very easy to overrule in CSS by contrib+custom modules and themes. To avoid repetition and weight, better use an intermediate group (e.g.
<g fill="currentcolor">
) instead.Do not re-enter the dark age of CSS selector specifity battles
.my-custom-admin-sub-theme .gin-theme #contrib-module a svg path.something { color: blue !important; } .my-custom-admin-sub-theme .gin-theme #contrib-module a:hover svg path.something { color: red !!!!!!!!!important; }