Skip to content

Reference

[09] Reference

Changelog 1.2

Release notes for @vaneui/ui 1.2.0 to 1.2.1, released 2026-08-19 to 2026-08-20: added props and components, changes and fixes. The changelog page has the latest version.

1.2.1

2026-08-20

Fixed

  • Every appearance on Img painted the same neutral border. An appearance is only a palette: it sets the intermediate --app-* variables, and the variant axis is what maps those onto --border-color. data-variant is emitted only when a variant key is extracted, and Img declared the variant category but set no variant default, so <Img border danger> and <Img border success> resolved identically. Img now defaults to outline, like every other component. A plain <Img> is unchanged: with no appearance it still emits neither attribute.

    This is the same failure as Spinner in 1.1.3, reached a different way, so it is now a test rather than a fix. appearanceResolution.test.ts asserts that every component declaring an appearance also resolves a variant, with Link as the one documented exception (its LinkVariantClassMapper consumes --app-text directly). Class-name assertions cannot see this class of bug: the class list is identical whether or not the colour resolves.

1.2.0

2026-08-19

Changed

  • Button and IconButton now render the Spinner component for their loading state, instead of a private ring the library maintained separately. There was one ring drawn two ways: .vane-button-spinner-ring and .vane-spinner had already drifted to different stroke rules once, and every future change to the spinner had to be made in both places.

    The button forwards its own size, so the ring still matches the button rather than falling back to Spinner's md default, and the ring still inherits the button's text color, so a filled button gets a light ring. It stays decorative: aria-busy on the button already conveys the state, so the Spinner's role="status" is suppressed and the wrapper is aria-hidden.

    Two things change for consumers who reach into the theme:

    • The .vane-button-spinner-ring class no longer exists. The element a loading button renders is now .vane-spinner.

    • theme.button.spinner.spinnerElement is gone. Restyle the ring through theme.spinner instead, which now covers standalone spinners and buttons at once:

      <ThemeProvider extraClasses={{ spinner: { primary: 'border-4' } }}>