次要变更
- 9d8b6e5
Add a
variant="sketch"option toSkeletonLine: a wireframe-style placeholder with a rounded fill and sliding shimmer, a 1px outline, and construction strokes that overshoot each corner by 4px. - 085332b
Add
hreftoBanner.Actionso actions can render as links. Link actions useLinkButton, so they respectLinkProviderand supportexternal.
补丁变更
- 39d33de
Keep keyboard focus visible in forced-colors mode when browsers suppress box-shadow rings. Controls retain a system-color outline, including the shared focus containers used by InputGroup, TagInput, and Slider. Keep tab outlines inside the scrolling tab list so all four edges remain visible.
- 99e73d6
ButtonandLinkButtonlabels are now vertically centered regardless of where the button sits on the page. The bottom-padding text lift is removed, andbaseandlgbuttons use a 20px line height (leading-5) so the gap between the label and the button edge is a whole pixel. With the old 21px line height that gap was 7.5px, and browsers rounded the text up or down depending on the button's position, so labels could render 1px high.Selecttriggers use the same size classes and get the same fix. The reduced leading padding for icon + text buttons is unchanged. - 12cd0fa
Fix several catalog runtime bugs:
setByPathreplacesnullintermediate values instead of throwing, and ignores__proto__/constructor/prototypesegmentsgetByPathandsetByPathdecode JSON Pointer escapes (~1→/,~0→~){ auth }conditions now work insideand/or/notvisibility expressions (evaluator,LogicExpressiontype, and Zod schema). Unrecognisedauthvalues now hide the element instead of showing itresolvePropsresolves{ path }references inside arrayshasActionno longer reportsObject.prototypenames such astoStringas registered actions
- d8a668e
Loosen and balance choice descriptions:
Radio.ItemandCheckbox.Itemcard descriptions, and theRadio.Group,Checkbox.Group, andSwitch.Groupdescriptions, now useleading-snug(matchingFieldandSelectdescriptions) andtext-pretty, so multi-line descriptions are easier to read and don't end on a single orphaned word. - a813d01
Forward trigger props (
aria-label,aria-labelledby,aria-describedby,id, handlers, etc.) fromCombobox.TriggerValueto its trigger button instead of dropping them onValue, so comboboxes without a visiblelabelcan have an accessible name.Combobox.TriggerMultipleWithInputnow acceptsaria-label,aria-labelledbyandaria-describedbyfor its input. - 3450917
Guard
Combobox.TriggerValue'splaceholderprop type so it staysReactNodeand can't be narrowed tostringby the forwarded trigger (button) props. - 1c85bb3
fix(date-picker): reset day button background, border, padding and margin, and the weekday header background, so host app button and table styles don't leak into the calendar
- cbb7fe8
Button,LinkButton,Badge,DropdownMenuitems,Sidebar.MenuButtonandInputGroup.Buttonno longer crash with React error #306 wheniconis an element passed from a React Server Component. React can deliver such an element as a lazy reference, which Kumo now unwraps before deciding whether to rendericonas an element or a component (#891). - 33bdabd
Keep Dialog and alertdialog content within the dynamic viewport and allow tall content to scroll. Preserve the natural height of LayerCard sections so long forms and their final actions remain reachable on small screens.