@orianatech/pire 0.2.0 → 0.2.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/dist/components.css +4 -2
- package/package.json +1 -1
package/dist/components.css
CHANGED
|
@@ -121,8 +121,10 @@
|
|
|
121
121
|
.pire-choice[data-focus-visible] .pire-choice-box{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
|
|
122
122
|
.pire-choice[data-disabled] .pire-choice-box{background:var(--surface-disabled);border-color:var(--border-default)}
|
|
123
123
|
.pire-choice-hint{display:block;font:var(--type-caption);color:var(--text-secondary)}
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
/* The track must establish a flex context: the thumb is a <span>, and an inline box
|
|
125
|
+
ignores width/height — it rendered at 0x0 until this was added. */
|
|
126
|
+
.pire-switch-track{flex:0 0 auto;display:flex;align-items:center;width:36px;height:20px;border-radius:var(--radius-pill);background:var(--gray-40);padding:2px;transition:background-color var(--dur-fast) var(--ease-standard)}
|
|
127
|
+
.pire-switch-thumb{flex:0 0 auto;width:16px;height:16px;border-radius:var(--radius-pill);background:var(--gray-0);box-shadow:var(--shadow-1);transition:transform var(--dur-fast) var(--ease-standard)}
|
|
126
128
|
.pire-choice[data-selected] .pire-switch-track{background:var(--accent-bg)}
|
|
127
129
|
.pire-choice[data-selected] .pire-switch-thumb{transform:translateX(16px)}
|
|
128
130
|
.pire-choice[data-focus-visible] .pire-switch-track{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
|