Closed chasegiunta closed 1 year ago
It won't make any difference because icon data in Iconify doesn't allow any attributes on SVG element. All attributes are moved to path, so result would be the same.
You can target shapes that use stroke-width
with this:
svg [stroke-width="2"] {
stroke-width: 1.5px !important;
}
Okay, sounds good. Thanks.
This is a bit silly, and hopefully an easy fix, but it seems that Iconify may currently be grabbing icons from the heroicons
src
folder (or somewhere else) rather than theoptimized
folder.It looks like the optimized icons have the
stroke-width
applied tosvg
rather than the internalpath
's which allows for css manipulation via thestroke-width
rule. It also setscurrentColor
on the svg, and removes the color attribute on the internal paths.This is probably more complicated issue, but if possible, it would be ideal to use the optimized icons as to be able to customize the stroke width.