Component changelog
ScrollArea changelog
Component-specific release notes collected from the full changelog. This page filters the published entries that mention ScrollArea.
Release
v1.1.0
Minor Changes
-
8d5c556: feat: right-to-left support for menus, Select, Combobox, NavigationMenu, TabNav and ScrollArea
- DropdownMenu, ContextMenu: new
dirprop. In RTL, ArrowLeft/ArrowRight open and close submenus, submenus open on the left, and the portaled content (and submenus) carriesdir.rtlis deprecated in favor ofdir="rtl". - NavigationMenu, TabNav: new
dirprop; arrow keys follow reading direction. - Select, Combobox:
diron the root now also applies to the portaled listbox. - ScrollArea: horizontal scroll math and scrollbar placement use the computed direction (logical CSS insets, RTL scroll range).
- DropdownMenu, ContextMenu: new
Patch Changes
- 76087ccstandardize asChild support across remaining compound card, steps, avatar group, scroll area, and table parts
Release
v1.0.0
Patch Changes
-
e6dde24: Add ScrollArea keyboard interaction and ARIA reference tables to the docs.
-
0ccabb4: fix(scrollarea): hide the scrollbar while a document overlay is open
An overlay (Dialog, Menu, Popover, Combobox, Drawer) covers the page and locks body scroll, but a
ScrollAreawithtype="always"still painted its scrollbar and thumb on top of it.Adds a document-level overlay registry and suppresses the scrollbar and thumb while any overlay is open:
const isVisible = !overlaySuppressesScrollbar && (type === "always" || (type === "auto" && isOverflowing) || (isOverflowing && (type === "scroll" || type === "hover") && scrollbarVisible));The registry is ref-counted and mirrors its state onto
data-rad-ui-overlay-openon<html>, so overlays stack correctly (two open overlays decrement back to zero rather than clearing early).ScrollAreapicks the state up viauseDocumentOverlayOpenState, which also observes the attribute andbody's inlinestyle, so overlays from other libraries that only lock body scroll are covered too.resetDocumentOverlayOpenForTestsis wired into the globalafterEachinsetupTests.tsso the registry cannot leak between suites.
Release
v0.6.0
Minor Changes
- fa1a1d5scroll area visual types