@floegence/floe-webapp-core 0.101.9 → 0.101.10
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 +111 -73
- package/dist/styles.css +1 -1
- package/dist/surface.css +46 -7
- package/package.json +1 -1
package/dist/surface.css
CHANGED
|
@@ -216,21 +216,60 @@
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
/*
|
|
220
|
-
*
|
|
219
|
+
/* Native labels retain rail ink. The travelling face clips a second ink layer
|
|
220
|
+
* against its fill, keeping text readable throughout movement and reversal. */
|
|
221
221
|
.floe-segmented-control__pill {
|
|
222
|
-
position: absolute;
|
|
222
|
+
position: absolute;
|
|
223
|
+
inset: 0 auto auto 0;
|
|
224
|
+
pointer-events: none;
|
|
223
225
|
border: 1px solid var(--primary);
|
|
224
226
|
background: var(--primary);
|
|
227
|
+
overflow: hidden;
|
|
228
|
+
z-index: 1;
|
|
229
|
+
}
|
|
230
|
+
.floe-segmented-control__ink {
|
|
231
|
+
position: absolute;
|
|
232
|
+
inset: -1px auto auto -1px;
|
|
233
|
+
font-weight: 500;
|
|
234
|
+
color: var(--segmented-control-item-active-color);
|
|
225
235
|
}
|
|
226
|
-
|
|
227
|
-
|
|
236
|
+
.floe-segmented-control__ink-label {
|
|
237
|
+
position: absolute;
|
|
238
|
+
display: flex;
|
|
239
|
+
align-items: center;
|
|
240
|
+
justify-content: center;
|
|
241
|
+
white-space: nowrap;
|
|
242
|
+
}
|
|
243
|
+
:root .floe-segmented-control[data-floe-segmented-pill] .floe-segmented-control__item {
|
|
244
|
+
color: var(--segmented-control-item-color);
|
|
245
|
+
transition-property: background-color, border-color, box-shadow;
|
|
246
|
+
}
|
|
247
|
+
:root
|
|
248
|
+
.floe-segmented-control[data-floe-segmented-pill]
|
|
249
|
+
.floe-segmented-control__item[aria-checked='true'] {
|
|
250
|
+
background: transparent;
|
|
251
|
+
border-color: transparent;
|
|
252
|
+
box-shadow: none;
|
|
228
253
|
}
|
|
229
254
|
@media (prefers-reduced-motion: reduce) {
|
|
230
|
-
.floe-segmented-control__pill {
|
|
255
|
+
.floe-segmented-control__pill {
|
|
256
|
+
transition: none;
|
|
257
|
+
}
|
|
231
258
|
}
|
|
232
259
|
@media (forced-colors: active) {
|
|
233
|
-
.floe-segmented-
|
|
260
|
+
.floe-segmented-control__ink {
|
|
261
|
+
color: HighlightText;
|
|
262
|
+
forced-color-adjust: none;
|
|
263
|
+
}
|
|
264
|
+
:root .floe-segmented-control[data-floe-segmented-pill] .floe-segmented-control__item {
|
|
265
|
+
color: ButtonText;
|
|
266
|
+
}
|
|
267
|
+
.floe-segmented-control__pill {
|
|
268
|
+
background: Highlight;
|
|
269
|
+
border-color: Highlight;
|
|
270
|
+
forced-color-adjust: none;
|
|
271
|
+
transition: none;
|
|
272
|
+
}
|
|
234
273
|
}
|
|
235
274
|
|
|
236
275
|
/* A compound input has one decorative boundary, including host compositions
|