@stnd/styles 0.7.0 → 0.7.2

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
@@ -1,5 +1,17 @@
1
1
  # @stnd/styles
2
2
 
3
+ ## 0.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Auto-bumped @stnd/styles due to modified code.
8
+
9
+ ## 0.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Auto-bumped @stnd/styles due to modified code.
14
+
3
15
  ## 0.7.0
4
16
 
5
17
  ### Minor Changes
@@ -249,7 +249,15 @@ input[type="radio"] {
249
249
  input[type="checkbox"][role="switch"] {
250
250
  --switch-height: calc(var(--space) - var(--space-d3));
251
251
  --switch-width: calc(var(--switch-height) * 2);
252
- --switch-padding: 2px;
252
+ /* Was a fixed 2px — correct-looking at the default ~16px-tall switch
253
+ (an 8px thumb inset by 2px on each side), but any consumer overriding
254
+ --switch-height alone (a smaller, denser control panel, say) kept that
255
+ same fixed inset and ended up with a visibly undersized thumb, since
256
+ the padding never scaled down with it. A ratio of the height reproduces
257
+ roughly that look at the default size while actually scaling — /10
258
+ rather than /8 (Francis: the thumb read as too small a fraction of the
259
+ track, too much bare track color showing around it). */
260
+ --switch-padding: calc(var(--switch-height) / 10);
253
261
 
254
262
  appearance: none;
255
263
  box-sizing: border-box; /* Reset content-box from base checkbox rule */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stnd/styles",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "author": "Francis Fontaine",
6
6
  "license": "MIT",