@kolkrabbi/kol-icons 0.61.0 → 0.61.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Icon.jsx +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-icons",
3
- "version": "0.61.0",
3
+ "version": "0.61.1",
4
4
  "description": "The icon loader and icon sets",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/Icon.jsx CHANGED
@@ -217,7 +217,10 @@ const Icon = ({
217
217
  return null
218
218
  }
219
219
 
220
- const sizedMarkup = applySizeToMarkup(svgMarkup, dimension)
220
+ /* A CSS SIZE IS NOT AN SVG ATTRIBUTE (float-everything W6, 2026-11-04): `size="var(--kol-float-ic)"` (every float
221
+ * Button glyph) wrote `width="var(--kol-float-ic)"` onto the <svg>, which no browser reads — the glyph drew blank in
222
+ * a box of the right size. The span carries the CSS size; the svg fills it. A plain length still goes on the svg. */
223
+ const sizedMarkup = applySizeToMarkup(svgMarkup, /^\d+(\.\d+)?(px)?$/.test(dimension) ? dimension : '100%')
221
224
 
222
225
  /* AN ICON IS NEVER THE CLICK TARGET (editor review #7, 2026-09-27: the design editor's settings
223
226
  * drawer would not close on its X). The markup is injected as HTML, so when the icon's subtree