@floegence/floe-webapp-core 0.101.9 → 0.101.11

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/surface.css CHANGED
@@ -216,21 +216,60 @@
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. */
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; inset: 0 auto auto 0; pointer-events: none;
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
- :root .floe-segmented-control[data-floe-segmented-pill] .floe-segmented-control__item[aria-checked='true'] {
227
- background: transparent; border-color: transparent; box-shadow: none;
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 { transition: none; }
255
+ .floe-segmented-control__pill {
256
+ transition: none;
257
+ }
231
258
  }
232
259
  @media (forced-colors: active) {
233
- .floe-segmented-control__pill { background: Highlight; border-color: Highlight; forced-color-adjust: none; transition: none; }
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.101.9",
3
+ "version": "0.101.11",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",