@floegence/floe-webapp-core 0.90.11 → 0.90.12
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/ui/SegmentedControl.js +95 -28
- package/dist/styles.css +1 -1
- package/dist/surface.css +17 -0
- package/package.json +1 -1
package/dist/surface.css
CHANGED
|
@@ -216,6 +216,23 @@
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
/* One filled face travels between segmented choices. Labels and native state
|
|
220
|
+
* update immediately; only this decorative face moves, including on reversal. */
|
|
221
|
+
.floe-segmented-control__pill {
|
|
222
|
+
position: absolute; inset: 0 auto auto 0; pointer-events: none;
|
|
223
|
+
border: 1px solid var(--primary);
|
|
224
|
+
background: var(--primary);
|
|
225
|
+
}
|
|
226
|
+
:root .floe-segmented-control[data-floe-segmented-pill] .floe-segmented-control__item[aria-checked='true'] {
|
|
227
|
+
background: transparent; border-color: transparent; box-shadow: none;
|
|
228
|
+
}
|
|
229
|
+
@media (prefers-reduced-motion: reduce) {
|
|
230
|
+
.floe-segmented-control__pill { transition: none; }
|
|
231
|
+
}
|
|
232
|
+
@media (forced-colors: active) {
|
|
233
|
+
.floe-segmented-control__pill { background: Highlight; border-color: Highlight; forced-color-adjust: none; transition: none; }
|
|
234
|
+
}
|
|
235
|
+
|
|
219
236
|
/* A compound input has one decorative boundary, including host compositions
|
|
220
237
|
* that contain an Input component. Dense nested actions stay flat. */
|
|
221
238
|
[data-floe-input-surface] [data-floe-surface],
|