@scalewing/react 1.67.0 → 1.67.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
@@ -1,5 +1,11 @@
1
1
  # @scalewing/react
2
2
 
3
+ ## 1.67.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9f8a835: A tile Checkbox's box now sits above the layer that stretches its press target over the tile, so a press aimed at the box lands on its input. Pointer-driven tests and tools can click a tile's checkbox directly instead of being intercepted by the label.
8
+
3
9
  ## 1.67.0
4
10
 
5
11
  ### Minor Changes
@@ -9,7 +9,10 @@ function edge(color) {
9
9
  * A tile Checkbox: the box, the label and the description inside one
10
10
  * bordered tile as wide as its column, at least the 44 px target plus its
11
11
  * padding. The label's `::after` stretches over the whole tile, so a press
12
- * anywhere on it (the description included) toggles the box. A chosen or
12
+ * anywhere on it (the description included) toggles the box; the box itself
13
+ * sits above that layer, so a press aimed at the box lands on its input
14
+ * (what a pointer-driven test or tool hits first). The tile isolates its
15
+ * layers, so the box never paints over a header or popover. A chosen or
13
16
  * mixed tile takes the accent edge, an invalid one the danger edge (which
14
17
  * wins), twice the hairline through an inset shadow. The description and
15
18
  * the error start under the label's words. Forced colours keep the edges
@@ -21,6 +24,7 @@ export function cssCheckboxTileClasses() {
21
24
  border-radius: var(--sw-radius-md);
22
25
  box-sizing: border-box;
23
26
  gap: 0;
27
+ isolation: isolate;
24
28
  padding: var(--sw-space-2) var(--sw-space-3);
25
29
  position: relative;
26
30
  width: 100%;
@@ -31,6 +35,8 @@ export function cssCheckboxTileClasses() {
31
35
  width: 100%;
32
36
  }
33
37
 
38
+ .sw-checkbox-tile .sw-checkbox-control { z-index: 1; }
39
+
34
40
  .sw-checkbox-tile .sw-checkbox-label::after {
35
41
  border-radius: inherit;
36
42
  content: '';
package/dist/styles.css CHANGED
@@ -1301,6 +1301,7 @@ body {
1301
1301
  border-radius: var(--sw-radius-md);
1302
1302
  box-sizing: border-box;
1303
1303
  gap: 0;
1304
+ isolation: isolate;
1304
1305
  padding: var(--sw-space-2) var(--sw-space-3);
1305
1306
  position: relative;
1306
1307
  width: 100%;
@@ -1311,6 +1312,8 @@ body {
1311
1312
  width: 100%;
1312
1313
  }
1313
1314
 
1315
+ .sw-checkbox-tile .sw-checkbox-control { z-index: 1; }
1316
+
1314
1317
  .sw-checkbox-tile .sw-checkbox-label::after {
1315
1318
  border-radius: inherit;
1316
1319
  content: '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalewing/react",
3
- "version": "1.67.0",
3
+ "version": "1.67.1",
4
4
  "description": "Scalewing DOM components and package-owned CSS utilities.",
5
5
  "type": "module",
6
6
  "license": "MIT",