Skip to content

fix(AppShell): match flex layout properties on sticky sidenav container - #1850

Merged
cixzhang merged 1 commit into
mainfrom
navi/fix/sticky-sidenav-flex
Apr 28, 2026
Merged

fix(AppShell): match flex layout properties on sticky sidenav container#1850
cixzhang merged 1 commit into
mainfrom
navi/fix/sticky-sidenav-flex

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

When height='auto', the sidenav panel is wrapped in a sticky <div> that becomes the direct flex child of the middle (horizontal) container. This wrapper was missing the flex properties that XDSLayoutPanel applies (flexShrink: 0, overflow: clip), causing the flex container to potentially collapse the sidenav width.

Changes:

  • Add flexShrink: 0 and overflow: clip to sideNavSticky (matching panel defaults)
  • Remove alignSelf: 'stretch' (unnecessary — sticky height is explicit via height: calc(...))
  • Move overflow: auto from the sticky wrapper to panelAutoFill so the panel itself scrolls within the fixed-height sticky container

When height='auto', the sidenav panel is wrapped in a sticky div that
becomes the direct flex child of the middle (horizontal) container.
This wrapper was missing the flex properties that XDSLayoutPanel applies
(flexShrink: 0, overflow: clip), causing the flex container to
potentially collapse the sidenav width.

Changes:
- Add flexShrink: 0 and overflow: clip to sideNavSticky (matching panel)
- Remove alignSelf: 'stretch' (unnecessary — sticky height is explicit)
- Move overflow: auto from the sticky wrapper to panelAutoFill so the
  panel itself scrolls within the fixed-height sticky container
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core 17.3KB 26.9KB 4.0KB

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang merged commit 9eead04 into main Apr 28, 2026
17 checks passed
@github-actions
github-actions Bot deleted the navi/fix/sticky-sidenav-flex branch April 29, 2026 06:58
cixzhang added a commit that referenced this pull request Apr 29, 2026
This was accidentally committed in #1850. It's a gitlink (mode 160000)
with no corresponding .gitmodules entry.
cixzhang added a commit that referenced this pull request Jun 21, 2026
…er (#1850)

When height='auto', the sidenav panel is wrapped in a sticky div that
becomes the direct flex child of the middle (horizontal) container.
This wrapper was missing the flex properties that XDSLayoutPanel applies
(flexShrink: 0, overflow: clip), causing the flex container to
potentially collapse the sidenav width.

Changes:
- Add flexShrink: 0 and overflow: clip to sideNavSticky (matching panel)
- Remove alignSelf: 'stretch' (unnecessary — sticky height is explicit)
- Move overflow: auto from the sticky wrapper to panelAutoFill so the
  panel itself scrolls within the fixed-height sticky container
cixzhang added a commit that referenced this pull request Jun 21, 2026
This was accidentally committed in #1850. It's a gitlink (mode 160000)
with no corresponding .gitmodules entry.
cixzhang added a commit that referenced this pull request Jun 21, 2026
…er (#1850)

When height='auto', the sidenav panel is wrapped in a sticky div that
becomes the direct flex child of the middle (horizontal) container.
This wrapper was missing the flex properties that XDSLayoutPanel applies
(flexShrink: 0, overflow: clip), causing the flex container to
potentially collapse the sidenav width.

Changes:
- Add flexShrink: 0 and overflow: clip to sideNavSticky (matching panel)
- Remove alignSelf: 'stretch' (unnecessary — sticky height is explicit)
- Move overflow: auto from the sticky wrapper to panelAutoFill so the
  panel itself scrolls within the fixed-height sticky container
cixzhang added a commit that referenced this pull request Jun 21, 2026
This was accidentally committed in #1850. It's a gitlink (mode 160000)
with no corresponding .gitmodules entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant