The floated-label fill test targeted `[data-field-input]` — the base Field.Input only — so `<Field floatingLabel>` didn't float when wrapping a specialized field (MaskField/NumberField/PasswordField/… render their own `<input>`). Widen it to any non-hidden text input / textarea inside: `:has(:is(input, textarea):not([type='hidden']):not(:placeholder-shown))`. Now the floating label works for any composed text field (the vertical anchor already aligns via shared --size-*-control-height tokens). Segmented controls (Date/Time, contenteditable) still float on focus only — deferred. Demo: MaskField floating example added to its Field-integration section. Verified in browser: resting placeholder centred, floats onto the border when filled, mask still conforms the value. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>menubar-v4-safe
parent
92f9723388
commit
7b3dc4d335
Loading…
Reference in new issue