The prior commit (e0bb7ed5) migrated date-field's segment to a calc() width but
left date-range-picker still consuming --date-field-segment-min-width, orphaning
the token (recipe-css-contract failure that wasn't re-run before committing).
Decouple + complete the segment-width pass:
- color-field: channels 3ch (RGB 0-255 / HSL 0-360 / 0-100 / alpha), hex 6ch
(data-segment='hex' override) — fixed font-relative widths + tabular figures
so no segment reflows on 1<->2<->3 digit or glyph changes.
- time-field + date-range-picker: segment min-inline-size -> calc(2ch + 2*pad).
- date-range-picker segment now carries data-field-segment (tabular + shared
hover/active states from the field-segment-state layer).
- Remove the now-unused --{date,time,color}-field-segment-min-width recipe tokens.
recipe-css-contract green (only pre-existing palabras WIP). CSS / token / marker
changes only -> check stays at the 58 baseline.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
active-uix
parent
e0bb7ed5f5
commit
baa1604f5b
@ -1,10 +1,11 @@
|
||||
<script lang="ts">
|
||||
import * as DateRangePicker from '$soma/components/date-range-picker';
|
||||
import '../field/field-segment-state.css';
|
||||
import type { DateRangePickerSegmentProps } from './types';
|
||||
|
||||
let { children, ...rest }: DateRangePickerSegmentProps = $props();
|
||||
</script>
|
||||
|
||||
<DateRangePicker.Segment {...rest}>
|
||||
<DateRangePicker.Segment {...rest} data-field-segment="">
|
||||
{@render children?.()}
|
||||
</DateRangePicker.Segment>
|
||||
|
||||
Loading…
Reference in new issue