Skip to content

Reference

[09] Reference

Changelog 1.7

Release notes for @vaneui/ui 1.7.0 to 1.7.2, released 2026-11-20 to 2026-11-22: added props and components, changes and fixes. The changelog page has the latest version.

1.7.2

2026-11-22

Fixes from a bug check of 1.7.1: stacked Modals, Escape and focus in overlays, the Switch track, padding={false}, Table appearances, Text in an Alert, and field placeholders.

Accessibility

  • Closing stacked Modals out of order (a confirm dialog closed together with the dialog that opened it, two dialogs closed in one handler, or the lower one closed first) left aria-hidden="true" on the app root, so screen readers lost the whole page, and the page behind the remaining dialog became live too early. The page now comes back only when the last dialog closes, with exactly the inert and aria-hidden values it had before.
  • Tab from the checked radio of a RadioGroup at the end of a Modal (or a modal Popup) moved focus out of the dialog. The focus trap now counts one tab stop per radio group, in both directions, and skips elements with a negative tabIndex.
  • A Tooltip with undefined, null, '' or false content opened an empty bubble and pointed aria-describedby at it. It now shows nothing.
  • useFieldControlProps around a VaneUI Input listed each aria-describedby id twice, so the help text was read twice. Field wiring now names each id once (also in a radio group's aria-labelledby).
  • Select, Input and Textarea placeholders sat at 3.4:1. Outline and ghost fields now draw them in --color-text-secondary, at least 4.5:1 on every appearance in both schemes.
  • NavLink replaced an aria-current the caller passed ("location" for a table of contents entry, "true" for a section link) with "page" or nothing. A caller's value now wins.

Fixed

  • padding={false}, and padding: false in themeDefaults, left the padding on (Button, Card, Stack, Section, Badge, Chip, Alert, Code, Kbd, NavLink, Input, List and others). They now turn it off, like noPadding.
  • Turning off a variant that a ThemeProvider set (<Button danger filled={false}> under filled: true) left the component with no variant and no appearance colors. It now falls back to the component's own default variant, or to outline.
  • A checked outline or ghost Switch drew its track border in the page color, so only the thumb showed. The track border now takes the appearance's text color, in both schemes.
  • Escape closed the dialog under a top layer that does not close on Escape (a Modal or modal Popup with closeOnEscape={false}, a portaled Overlay without onClose). That layer now keeps Escape.
  • An Overlay with an inline onClose registered for Escape again on every render, so Escape closed it instead of a Modal opened over it. It now registers once per open and calls the latest onClose.
  • One click on a Modal's backdrop closed both the Menu or Popup open in it and the Modal. It now closes only the popup, like Escape.
  • A Tooltip, PopupTrigger or Menu disabled while open opened again by itself when it was enabled. Disabling now closes it and drops a pending open.
  • On browsers without CSS anchor positioning, a Popup or Menu stayed put when layout moved or resized its anchor. It now follows.
  • Opening a Modal shifted the page by the scrollbar width when html had scrollbar-gutter: stable. No padding is added then.
  • An appearance on Tr, Thead, Tbody or Tfoot without a variant painted nothing. It now paints as outline, the same as with outline written out.
  • <Td success filled> and <Th ... filled> painted no fill and left a gap in the row rule. They now paint their fill and text color and keep the row rule beside them.
  • A data-theme="dark" subtree drew the light-scheme shadows, and a data-theme="light" island in a dark page the dark ones. Each subtree now draws its own scheme's shadows. Pages without data-theme are unchanged.
  • With responsiveSizing={false} on a Card, its header, body and footer still shrank their padding on tablet and mobile. They now keep the fixed inset (Modal parts too).
  • <Mark rounded> drew a pill and clipped its first and last letters. It now has corners that grow with the size prop; pill and the default sharp are unchanged.
  • A style width on a Select (or <Field select style>) narrowed only the field and left the chevron at the far edge. Sizing and placement styles now go to the whole control.
  • A RadioGroup inside a Field kept md spacing at every Field size. It now follows the Field's size unless it has its own.
  • NavLink moved an element placed between two pieces of text to the end. Children keep their order.
  • textRight and the other text-align props on a Field that renders its own text control landed on the wrapper and did nothing. They now align the control's value.
  • The README described @vaneui/mcp as having two tools and needing Node.js 24. It has three (search_docs, get_doc and get_component_props) and runs on Node.js 20 or later. The README also links to the vaneui.com home page and to the AI assistants setup guide.

Changed

  • A Text in an Alert (the documented pattern for a message followed by an action) kept the body size, 16px, at every Alert size and sat off the leading icon. It now takes the Alert's text size (14px at md), and <Text sm> sits one step below it.
  • Clicks inside a Modal now reach document click listeners (analytics, outside-click handlers). The dialog stopped their propagation before. Like any portal, a click inside a Modal also reaches the onClick of its React ancestors now. A press that starts on the backdrop and ends in the dialog no longer closes it.
  • Turning loading on and off on Button or IconButton remounted the children, which reset their state. They now stay mounted and keep their idle layout while a spinner shows over them. The loading state no longer renders the vane-button-loading-label span; the spinner's wrapper has the class vane-button-spinner.

Added

  • TdTheme and ThTheme have a surface slot, which paints a filled cell.

1.7.1

2026-11-20

Controls, Badge and Table default to the size Button has, Icon sizes are smaller, and the parts of a Card and a Modal sit one inset apart.

Changed

  • Input, Textarea, Select and Field default to sm, the size Button already defaults to. A field and a button written with no size prop were 37px and 30px tall, with 16px and 14px text; both are now 30px with 14px text. Pass md to keep the earlier size. To keep it everywhere, set themeDefaults={{ input: { md: true }, textarea: { md: true }, select: { md: true }, field: { main: { md: true } } }}.
  • Badge defaults to sm: 12px text and 20px tall, where it was 14px and 25px. Pass md for the earlier size.
  • Table defaults to sm: 14px text and 6px by 12px cell padding, where it was 16px and 8px by 16px. Pass md for the earlier size.
  • Icon sizes are 12, 16, 20, 24 and 32px for xs to xl. They were 16, 24, 32, 48 and 64px, so a default Icon next to body text was 32px. For a larger glyph, give the SVG a size-* class.
  • The parts of a Card and a Modal meet one inset apart. Each part padded all four sides and the surface added its gap, which left 64px between a Modal title and its body at md (60px in a Card). The body keeps its padding, the header drops its bottom padding, the footer drops its top padding, and the surface has no gap between parts: 24px at md. A header with borderB, a footer with borderT and a filled part keep their padding on that side, and a padding class on a part still wins.

1.7.0

2026-11-20

The text of Button, Badge, Chip and six more components is centered by the height of its capital letters.

Changed

  • Text in Button, IconButton, Badge, Chip, MenuItem, MenuLabel, Alert, Tooltip and NavLink is centered by the height of its capital letters. A browser centers the line box of the font, which is rarely even around the letters, so a label sat up to 1.4px above or below the middle of its component, in a direction that depended on the font. Measured over five sizes, seven fonts and three display densities, a capital was 0.5px from the middle on average and is now 0.2px. The size of each component and the place of its icons stay the same.

    The components now render each run of their own text in a <span class="vane-text-run">, and the stylesheet trims that span to the capital height with text-box and pads it back to the line height. NavLink trims the label span it already had. What to check in an app:

    • A test or a style that reaches the text by its tag (button > span, querySelector('span')), or that expects getByText('Save') to return the button itself, now finds the new span. Find the component by its role or its class instead.
    • Text passed as an element (a translation component, a fragment, a span of your own) is not wrapped and renders as before. Give your own span className="vane-text-run" to center it the same way.
    • In a row aligned by baseline (itemsBaseline) and inline in a paragraph, the text keeps its baseline, so the box around it moves by up to 1.2px and the line can change height by up to 1px. In a flex or grid parent with any other alignment nothing moves.
    • The line box of the trimmed text reaches up to 2px past its span. The padding of the component covers that. A component with noPadding that touches the end edge of a scroll container can add that much scrolling to it.

    The trim needs text-box (Chrome and Edge 133, Safari 18.2, Firefox 154). Other browsers render the text where it was. Label, Input, Select, Textarea, table cells, Code, Kbd and Mark are not changed.

  • The label of a NavLink clips its overflow (overflowClip) where it hid it. The ellipsis of a long label is the same; the label can no longer be scrolled sideways by a text search or a selection drag.