You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's not possible to dynamically import the icons and color them with the current text color. Simply adding a group tag with an id and fill='currentColor' attribute would enable this. For example:
I like the idea of the <g> tag with an ID because this allows us to use the <use> tag for individual .svg files. This removes the overhead of loading the entire sprite when all you need is 2 icons.
On the other hand, the fill attribute isn't necessary because you can already manipulate the fill via CSS. For example: svg { fill: red } works like a charm.
Currently it's not possible to dynamically import the icons and color them with the current text color. Simply adding a group tag with an
id
andfill='currentColor'
attribute would enable this. For example:The text was updated successfully, but these errors were encountered: