Skip to content

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> emitted data-appearance="danger" and resolved the danger palette, but an appearance only reaches --text-color through the variant axis, and Spinner had no variant category, so no data-variant was emitted and the mapping never fired. Every appearance rendered the same inherited color. Spinner now carries variant (defaulting to outline, with inheritAppearance), so:

    <Spinner danger /> {/* the danger color */}
    <Spinner danger filled /> {/* the on-danger-fill color */}
    <Spinner /> {/* still inherits its surface */}

    A bare Spinner is unchanged: it emits neither attribute and keeps inheriting, which is what makes it readable inside a filled Button, Badge or Card. 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 xs and sm. Its stroke was 0.125em, and browsers floor border-width to whole pixels, so 1.5px and 1.75px both painted as 1px. The stroke now floors at 2px.

  • Button's loading ring and Spinner had drifted to different strokes (a pinned 2px against the scaling 0.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 a Menu (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 sharp or rounded Switch reshaped only its track. The knob was rendered with no props and its theme pins pill, 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 Input error 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 while Input and Textarea both changed.

1.1.0

2026-08-18

Added

  • Field wires a form control to its label, help text and error message. invalid already emitted aria-invalid, but nothing associated an error message, so a screen reader announced that a control was invalid without saying why. Field owns one id and publishes it, the label id, the aria-describedby list and the validity to whichever control it wraps. Input, Textarea, Select, Checkbox, Radio and Switch all 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 error also marks the control invalid, so the danger cue and the message can never disagree. A RadioGroup is not a labelable element, so it takes the label by reference through aria-labelledby instead. Field's own size becomes the control's default, the same way Label already worked.

  • Tooltip describes its trigger on hover and on keyboard focus. Built on PopupTrigger's tooltip semantics: the trigger gets aria-describedby while open and never aria-haspopup or aria-expanded, which do not apply.

  • Spinner promotes the ring that already existed inside Button to a component of its own. role="status", sized by the size prop and coloured by the appearance prop.

  • Alert is a live-region surface: role="alert" by default, or role="status" with polite for messages that should wait for a pause.

Changed

  • Card and Stack now scale their padding down on small viewports, matching the behavior Section already had. A surface's inset is chrome rather than rhythm: it used to stay at its desktop value while the viewport shrank, so nesting a Stack inside a Card inside a Section left as little as 220px of content on a 390px phone. Both axes step down together so the box stays square.

    SizeCard desktop / tablet / mobileStack desktop / tablet / mobile
    xs12 / 12 / 88 / 8 / 4
    sm18 / 16 / 1212 / 10 / 8
    md24 / 20 / 1616 / 12 / 8
    lg36 / 28 / 2024 / 16 / 12
    xl48 / 36 / 2432 / 24 / 16

    Desktop values are unchanged, so nothing moves above 1024px. CardHeader, CardBody and CardFooter follow the parent Card's curve. To keep the previous fixed padding, turn the ramp off per component: <ThemeProvider themeDefaults={{ card: { main: { responsiveSizing: false } } }}>.

  • Container, Modal and Popup ramp their padding the same way, so every surface now behaves consistently. Container follows Section rather than Card, capping its gutter independently of its block rhythm because a page margin is bounded by the viewport. ModalHeader, ModalBody and ModalFooter follow the parent Modal. Menu dropdowns keep their existing tighter padding at every viewport.

Fixed

  • Container now applies the 2:1 inline-to-block padding ratio it has always declared. --aspect-ratio: 2 sat at a lower specificity than the per-size layout rule that resets it to 1, so the declaration never reached the computed value and a padded Container rendered a square inset. The reset moved to a selector components can override. Container is noPadding by default, so this only affects callers that opted in, where the inline padding doubles: 32px to 64px at md on desktop.

    Divider declared the same ratio and is deliberately left at 1: it renders with box-sizing: content-box and width: 100%, so inline padding is added outside the 100% and overflows the parent rather than insetting the rule.

Full diff