@inglorious/ui 9.7.2 → 9.7.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/ui",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.3",
|
|
4
4
|
"description": "A design system for Inglorious Web with render-function components and customizable themes",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
.iw-switch {
|
|
2
2
|
--iw-switch-active-bg: var(--iw-color-primary);
|
|
3
|
+
/* Contains the visually hidden input below. Without it, the input is placed
|
|
4
|
+
against the nearest positioned ancestor, possibly outside the scroll
|
|
5
|
+
container the switch sits in, and focusing it on toggle scrolls that
|
|
6
|
+
ancestor, even one with overflow: hidden, to bring the input into view. */
|
|
7
|
+
position: relative;
|
|
3
8
|
display: inline-flex;
|
|
4
9
|
align-items: center;
|
|
5
10
|
gap: var(--iw-space-2);
|
|
@@ -14,7 +19,10 @@
|
|
|
14
19
|
pointer-events: none;
|
|
15
20
|
}
|
|
16
21
|
|
|
22
|
+
/* Fixed size: a long label shrinks the text, never the track, which would
|
|
23
|
+
otherwise narrow until it is as round as a radio button. */
|
|
17
24
|
.iw-switch-track {
|
|
25
|
+
flex-shrink: 0;
|
|
18
26
|
width: 2.25rem;
|
|
19
27
|
height: 1.25rem;
|
|
20
28
|
border-radius: 999px;
|
|
@@ -47,6 +55,7 @@
|
|
|
47
55
|
.iw-switch-text {
|
|
48
56
|
display: flex;
|
|
49
57
|
flex-direction: column;
|
|
58
|
+
min-width: 0;
|
|
50
59
|
}
|
|
51
60
|
|
|
52
61
|
.iw-switch-description {
|