Reference
[09] Reference
Changelog 1.1
Release notes for @vaneui/ui 1.1.0 to 1.1.3, released 2026-08-18 to 2026-08-19: added props and components, changes and fixes. The changelog page has the latest version.
1.1.3
2026-08-19
Fixed
Spinner's appearance props did nothing.<Spinner danger>emitteddata-appearance="danger"and resolved the danger palette, but an appearance only reaches--text-colorthrough the variant axis, andSpinnerhad novariantcategory, so nodata-variantwas emitted and the mapping never fired. Every appearance rendered the same inherited color.Spinnernow carriesvariant(defaulting tooutline, withinheritAppearance), so:<Spinner danger /> {/* the danger color */}<Spinner danger filled /> {/* the on-danger-fill color */}<Spinner /> {/* still inherits its surface */}A bare
Spinneris unchanged: it emits neither attribute and keeps inheriting, which is what makes it readable inside a filledButton,BadgeorCard. The variant carries no background here, since a ring has nothing to fill; it only selects which color of the appearance the ring paints in.The spinner ring was a 1px hairline at
xsandsm. Its stroke was0.125em, and browsers floorborder-widthto whole pixels, so 1.5px and 1.75px both painted as 1px. The stroke now floors at 2px.Button's loading ring andSpinnerhad drifted to different strokes (a pinned 2px against the scaling0.125em), so the same ring rendered at two weights depending on where it came from. Both now share one rule.
1.1.2
2026-08-18
Added
- A
Select's dropdown list is now styled where the engine allows it. A native<select>hands its option list to the operating system, which draws a flat, square, unpadded menu: the options get no layout box at all, so padding, radius and shadow were inert and only their colors landed. Behind@supports (appearance: base-select)the list becomes real DOM and is themed to match aMenu(surface, border, radius, shadow, padded rows, hover, and a checkmark on the selected option). Engines without it keep the OS picker unchanged, and the control is the same<select>either way.
Fixed
- A
sharporroundedSwitchreshaped only its track. The knob was rendered with no props and its theme pinspill, so a square track kept a circular knob. The shape now reaches the knob, and its radius insets from the track's by the track padding, so the two corners stay concentric rather than sharing one radius across boxes of different sizes.
2026-08-18
Fixed
The
Inputerror icon rendered as a solid disc with a slot cut through it, not an exclamation mark. Its stem and dot are meant to be holes punched in the disc, which under the nonzero fill rule requires them to wind opposite to it. The stem did; the dot did not, so it merged into the disc and vanished. The glyph is now sampled pixel-by-pixel in the e2e suite, because both the class list and the icon's geometry are identical either way.A
Select's dropdown list ignored the theme.<option>and<optgroup>default to a transparent background, and the browser paints the popup from the option's own colors, so the list fell back to user-agent colors instead of the field's. Both now carry the surface and text tokens, group labels lose the user-agent italic, and a disabled option is muted.
Changed
- A
Select's chevron turns danger when the field is invalid. The chevron is a sibling of the field rather than a descendant, so the error state was not reaching it and the control's trailing edge stayed neutral whileInputandTextareaboth changed.
1.1.0
2026-08-18
Added
Fieldwires a form control to its label, help text and error message.invalidalready emittedaria-invalid, but nothing associated an error message, so a screen reader announced that a control was invalid without saying why.Fieldowns one id and publishes it, the label id, thearia-describedbylist and the validity to whichever control it wraps.Input,Textarea,Select,Checkbox,RadioandSwitchall read it, and an explicit prop on the control still wins.<Field label="Email" description="We never share it." error={errors.email}><Input type="email" /></Field>Passing an
erroralso marks the control invalid, so the danger cue and the message can never disagree. ARadioGroupis not a labelable element, so it takes the label by reference througharia-labelledbyinstead.Field's own size becomes the control's default, the same wayLabelalready worked.Tooltipdescribes its trigger on hover and on keyboard focus. Built onPopupTrigger's tooltip semantics: the trigger getsaria-describedbywhile open and neveraria-haspopuporaria-expanded, which do not apply.Spinnerpromotes the ring that already existed insideButtonto a component of its own.role="status", sized by the size prop and coloured by the appearance prop.Alertis a live-region surface:role="alert"by default, orrole="status"withpolitefor messages that should wait for a pause.
Changed
CardandStacknow scale their padding down on small viewports, matching the behaviorSectionalready had. A surface's inset is chrome rather than rhythm: it used to stay at its desktop value while the viewport shrank, so nesting aStackinside aCardinside aSectionleft as little as 220px of content on a 390px phone. Both axes step down together so the box stays square.Size Carddesktop / tablet / mobileStackdesktop / tablet / mobilexs12 / 12 / 8 8 / 8 / 4 sm18 / 16 / 12 12 / 10 / 8 md24 / 20 / 16 16 / 12 / 8 lg36 / 28 / 20 24 / 16 / 12 xl48 / 36 / 24 32 / 24 / 16 Desktop values are unchanged, so nothing moves above 1024px.
CardHeader,CardBodyandCardFooterfollow the parentCard's curve. To keep the previous fixed padding, turn the ramp off per component:<ThemeProvider themeDefaults={{ card: { main: { responsiveSizing: false } } }}>.Container,ModalandPopupramp their padding the same way, so every surface now behaves consistently.ContainerfollowsSectionrather thanCard, capping its gutter independently of its block rhythm because a page margin is bounded by the viewport.ModalHeader,ModalBodyandModalFooterfollow the parentModal. Menu dropdowns keep their existing tighter padding at every viewport.
Fixed
Containernow applies the 2:1 inline-to-block padding ratio it has always declared.--aspect-ratio: 2sat at a lower specificity than the per-size layout rule that resets it to1, so the declaration never reached the computed value and a paddedContainerrendered a square inset. The reset moved to a selector components can override.ContainerisnoPaddingby default, so this only affects callers that opted in, where the inline padding doubles: 32px to 64px atmdon desktop.Dividerdeclared the same ratio and is deliberately left at1: it renders withbox-sizing: content-boxandwidth: 100%, so inline padding is added outside the 100% and overflows the parent rather than insetting the rule.
On this page