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) leftaria-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 theinertandaria-hiddenvalues it had before. - Tab from the checked radio of a
RadioGroupat the end of aModal(or a modalPopup) 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 negativetabIndex. - A
Tooltipwithundefined,null,''orfalsecontent opened an empty bubble and pointedaria-describedbyat it. It now shows nothing. useFieldControlPropsaround a VaneUIInputlisted eacharia-describedbyid twice, so the help text was read twice. Field wiring now names each id once (also in a radio group'saria-labelledby).Select,InputandTextareaplaceholders 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.NavLinkreplaced anaria-currentthe 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}, andpadding: falseinthemeDefaults, left the padding on (Button, Card, Stack, Section, Badge, Chip, Alert, Code, Kbd, NavLink, Input, List and others). They now turn it off, likenoPadding.- Turning off a variant that a
ThemeProviderset (<Button danger filled={false}>underfilled: true) left the component with no variant and no appearance colors. It now falls back to the component's own default variant, or tooutline. - A checked
outlineorghostSwitchdrew 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
Modalor modalPopupwithcloseOnEscape={false}, a portaledOverlaywithoutonClose). That layer now keeps Escape. - An
Overlaywith an inlineonCloseregistered for Escape again on every render, so Escape closed it instead of aModalopened over it. It now registers once per open and calls the latestonClose. - One click on a
Modal's backdrop closed both theMenuorPopupopen in it and the Modal. It now closes only the popup, like Escape. - A
Tooltip,PopupTriggerorMenudisabled 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
PopuporMenustayed put when layout moved or resized its anchor. It now follows. - Opening a
Modalshifted the page by the scrollbar width whenhtmlhadscrollbar-gutter: stable. No padding is added then. - An appearance on
Tr,Thead,TbodyorTfootwithout a variant painted nothing. It now paints asoutline, the same as withoutlinewritten 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 adata-theme="light"island in a dark page the dark ones. Each subtree now draws its own scheme's shadows. Pages withoutdata-themeare unchanged. - With
responsiveSizing={false}on aCard, 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;pilland the defaultsharpare unchanged.- A
stylewidth on aSelect(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
RadioGroupinside aFieldkeptmdspacing at every Field size. It now follows the Field's size unless it has its own. NavLinkmoved an element placed between two pieces of text to the end. Children keep their order.textRightand the other text-align props on aFieldthat renders its own text control landed on the wrapper and did nothing. They now align the control's value.- The README described
@vaneui/mcpas having two tools and needing Node.js 24. It has three (search_docs,get_docandget_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
Textin anAlert(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 atmd), and<Text sm>sits one step below it. - Clicks inside a
Modalnow reachdocumentclick listeners (analytics, outside-click handlers). The dialog stopped their propagation before. Like any portal, a click inside a Modal also reaches theonClickof its React ancestors now. A press that starts on the backdrop and ends in the dialog no longer closes it. - Turning
loadingon and off onButtonorIconButtonremounted 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 thevane-button-loading-labelspan; the spinner's wrapper has the classvane-button-spinner.
Added
TdThemeandThThemehave asurfaceslot, 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,SelectandFielddefault tosm, the sizeButtonalready 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. Passmdto keep the earlier size. To keep it everywhere, setthemeDefaults={{ input: { md: true }, textarea: { md: true }, select: { md: true }, field: { main: { md: true } } }}.Badgedefaults tosm: 12px text and 20px tall, where it was 14px and 25px. Passmdfor the earlier size.Tabledefaults tosm: 14px text and 6px by 12px cell padding, where it was 16px and 8px by 16px. Passmdfor the earlier size.Iconsizes are 12, 16, 20, 24 and 32px forxstoxl. They were 16, 24, 32, 48 and 64px, so a defaultIconnext to body text was 32px. For a larger glyph, give the SVG asize-*class.- The parts of a
Cardand aModalmeet 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 atmd(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 atmd. A header withborderB, a footer withborderTand afilledpart 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 withtext-boxand 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 expectsgetByText('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
noPaddingthat 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.- A test or a style that reaches the text by its tag (
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.
On this page