An open source design system that's fully customizable and agent ready
TypeScript
fix(AppShell): match flex layout properties on sticky sidenav container (#1850)
Cindy Zhang66e7cb6a9716
diff --git a/.wiki b/.wikinew file mode 160000index 0000000000..5a29803512--- /dev/null+++ b/.wiki@@ -0,0 +1 @@+Subproject commit 5a29803512495eddb54aa5baaaad8816b29dbdc7diff --git a/packages/core/src/AppShell/XDSAppShell.tsx b/packages/core/src/AppShell/XDSAppShell.tsxindex eaeed47a10..aad5fe417d 100644--- a/packages/core/src/AppShell/XDSAppShell.tsx+++ b/packages/core/src/AppShell/XDSAppShell.tsx@@ -379,20 +379,27 @@ const styles = stylex.create({top: 0,zIndex: 1,},- // Sticky sideNav for auto height mode — sticks within the wrapper+ // Sticky sideNav for auto height mode — sticks within the wrapper.+ // This div replaces the panel as the direct flex child of the middle+ // (horizontal) container, so it needs the same flex properties that+ // XDSLayoutPanel applies: flexShrink: 0 prevents the flex container+ // from collapsing the sidenav, and overflow: clip matches the panel's+ // default so content doesn't bleed horizontally.sideNavSticky: {- alignSelf: 'stretch',+ flexShrink: 0,+ overflow: 'clip',position: 'sticky',top: 'var(--appshell-header-height, 0px)',height: 'calc(100dvh - var(--appshell-header-height, 0px))',- overflow: 'auto',// Ensure children (XDSLayoutPanel → XDSSideNav) fill the sticky containerdisplay: 'flex',flexDirection: 'column',},// Panel fill for auto mode — panel fills the sticky container vertically+ // and scrolls independently since the page (not the panel) owns the scrollpanelAutoFill: {flex: 1,+ overflow: 'auto',},});