proje-react-panel 1.11.0 → 1.11.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  This file starts at 1.11.0; earlier releases are only in the git history.
4
4
 
5
+ ## 1.11.1
6
+
7
+ ### Fixed
8
+
9
+ - **Icons keep their `viewBox`, so consumer CSS can resize them.** SVGR was running SVGO with its
10
+ default configuration, whose `removeViewBox` plugin drops a `viewBox` that is redundant with
11
+ `width`/`height`. Only `check.svg` and `cross.svg` matched that condition (`0 0 24 24` with
12
+ `width=24`); every other icon carries `width=800` and was unaffected. Without a `viewBox` an SVG
13
+ cannot scale: a consumer sizing `.icon-true` to 16px got the top-left 16 units of a 24-unit
14
+ drawing — the tick in a boolean cell was cropped away rather than shrunk. `removeViewBox` is now
15
+ explicitly disabled in `rollup.config.mjs`. Consumers carrying a dist patch that injects the
16
+ attribute can remove it.
17
+ - `prefixIds` is passed explicitly alongside it, because supplying `svgoConfig` replaces SVGR's
18
+ default plugin list wholesale — losing it would let ids and class names collide between icons
19
+ inlined into the same bundle.
20
+
5
21
  ## 1.11.0
6
22
 
7
23
  ### Fixed