Repository navigation
fix(SideNav): consistent spacing regardless of header/topContent visibility - #601
Merged
Merged
Conversation
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsSideNav · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: 1 accessibility violation(s) found — 1 serious. XDSSideNav - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
force-pushed
the
navi/fix/sidenav-spacing
branch
from
March 13, 2026 09:43
9f7c3b5 to
58dc43b
Compare
cixzhang
marked this pull request as draft
March 13, 2026 11:04
cixzhang
force-pushed
the
navi/fix/sidenav-spacing
branch
from
March 13, 2026 18:06
58dc43b to
daedc45
Compare
- topContent: paddingBlockStart 8px (was paddingBlock 4px) - SideNavHeading: paddingBlock 8px (was 12px) - SideNavSection items: 2px gap between nav items - Footer: single inner wrapper with 8px gap between footer and footerIcons, paddingBlockEnd 8px, border on the wrapper instead of footerIcons Part of #565
cixzhang
force-pushed
the
navi/fix/sidenav-spacing
branch
from
March 13, 2026 22:29
daedc45 to
f32f093
Compare
Replace the showSideNavHeading toggle with a selector offering five heading variants: - none: no heading - simple: icon + heading text only - link: icon + heading with headingHref - menu: icon + heading + popover menu (shows chevron) - full: superheading + heading + subheading + menu Also fixes z-index on config overlay (16px string values for position properties).
- Move margin from heading to stickyTop container (8px padding all around, 4px bottom). Heading layout is now independent of interactivity. - Mirror footer: 4px top, 8px sides/bottom. Remove extra wrapper div. - Scrollable body: 8px top/bottom when no adjacent sticky area, 4px when adjacent (4px + 4px from sticky = 8px total gap). - Remove heading marginInline (container handles it). - Shell lab: add Footer toggle, SideNav heading style selector, all four AppShell variant options, fix config panel z-index. Ref #565
cixzhang
marked this pull request as ready for review
March 13, 2026 23:44
…hevron hit target
- Replace hardcoded ChevronDownIcon SVG with getIcon('chevronDown')
from the global icon registry (themeable)
- Add 4px padding to popover content (matches DropdownMenu)
- Increase chevron hit target from 16px to 28px (min-width/min-height)
Ref #565
This was referenced Mar 14, 2026
Merged
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
…bility (#601) * fix(SideNav): consistent spacing and footer layout - topContent: paddingBlockStart 8px (was paddingBlock 4px) - SideNavHeading: paddingBlock 8px (was 12px) - SideNavSection items: 2px gap between nav items - Footer: single inner wrapper with 8px gap between footer and footerIcons, paddingBlockEnd 8px, border on the wrapper instead of footerIcons Part of #565 * feat(shell-lab): add SideNav heading style selector Replace the showSideNavHeading toggle with a selector offering five heading variants: - none: no heading - simple: icon + heading text only - link: icon + heading with headingHref - menu: icon + heading + popover menu (shows chevron) - full: superheading + heading + subheading + menu Also fixes z-index on config overlay (16px string values for position properties). * fix(SideNav): consistent spacing across header, body, and footer zones - Move margin from heading to stickyTop container (8px padding all around, 4px bottom). Heading layout is now independent of interactivity. - Mirror footer: 4px top, 8px sides/bottom. Remove extra wrapper div. - Scrollable body: 8px top/bottom when no adjacent sticky area, 4px when adjacent (4px + 4px from sticky = 8px total gap). - Remove heading marginInline (container handles it). - Shell lab: add Footer toggle, SideNav heading style selector, all four AppShell variant options, fix config panel z-index. Ref #565 * fix(SideNavHeading): use icon registry, add popover padding, bigger chevron hit target - Replace hardcoded ChevronDownIcon SVG with getIcon('chevronDown') from the global icon registry (themeable) - Add 4px padding to popover content (matches DropdownMenu) - Increase chevron hit target from 16px to 28px (min-width/min-height) Ref #565 --------- Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
…bility (#601) * fix(SideNav): consistent spacing and footer layout - topContent: paddingBlockStart 8px (was paddingBlock 4px) - SideNavHeading: paddingBlock 8px (was 12px) - SideNavSection items: 2px gap between nav items - Footer: single inner wrapper with 8px gap between footer and footerIcons, paddingBlockEnd 8px, border on the wrapper instead of footerIcons Part of #565 * feat(shell-lab): add SideNav heading style selector Replace the showSideNavHeading toggle with a selector offering five heading variants: - none: no heading - simple: icon + heading text only - link: icon + heading with headingHref - menu: icon + heading + popover menu (shows chevron) - full: superheading + heading + subheading + menu Also fixes z-index on config overlay (16px string values for position properties). * fix(SideNav): consistent spacing across header, body, and footer zones - Move margin from heading to stickyTop container (8px padding all around, 4px bottom). Heading layout is now independent of interactivity. - Mirror footer: 4px top, 8px sides/bottom. Remove extra wrapper div. - Scrollable body: 8px top/bottom when no adjacent sticky area, 4px when adjacent (4px + 4px from sticky = 8px total gap). - Remove heading marginInline (container handles it). - Shell lab: add Footer toggle, SideNav heading style selector, all four AppShell variant options, fix config panel z-index. Ref #565 * fix(SideNavHeading): use icon registry, add popover padding, bigger chevron hit target - Replace hardcoded ChevronDownIcon SVG with getIcon('chevronDown') from the global icon registry (themeable) - Add 4px padding to popover content (matches DropdownMenu) - Increase chevron hit target from 16px to 28px (min-width/min-height) Ref #565 --------- Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
…bility (#601) * fix(SideNav): consistent spacing and footer layout - topContent: paddingBlockStart 8px (was paddingBlock 4px) - SideNavHeading: paddingBlock 8px (was 12px) - SideNavSection items: 2px gap between nav items - Footer: single inner wrapper with 8px gap between footer and footerIcons, paddingBlockEnd 8px, border on the wrapper instead of footerIcons Part of #565 * feat(shell-lab): add SideNav heading style selector Replace the showSideNavHeading toggle with a selector offering five heading variants: - none: no heading - simple: icon + heading text only - link: icon + heading with headingHref - menu: icon + heading + popover menu (shows chevron) - full: superheading + heading + subheading + menu Also fixes z-index on config overlay (16px string values for position properties). * fix(SideNav): consistent spacing across header, body, and footer zones - Move margin from heading to stickyTop container (8px padding all around, 4px bottom). Heading layout is now independent of interactivity. - Mirror footer: 4px top, 8px sides/bottom. Remove extra wrapper div. - Scrollable body: 8px top/bottom when no adjacent sticky area, 4px when adjacent (4px + 4px from sticky = 8px total gap). - Remove heading marginInline (container handles it). - Shell lab: add Footer toggle, SideNav heading style selector, all four AppShell variant options, fix config panel z-index. Ref #565 * fix(SideNavHeading): use icon registry, add popover padding, bigger chevron hit target - Replace hardcoded ChevronDownIcon SVG with getIcon('chevronDown') from the global icon registry (themeable) - Add 4px padding to popover content (matches DropdownMenu) - Increase chevron hit target from 16px to 28px (min-width/min-height) Ref #565 ---------
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes spacing inconsistencies in SideNav and updates the Shell Lab sandbox page for better experimentation. Addresses the sidenav spacing items from #565.
SideNav Spacing Changes
Header area (
stickyTopcontainer)Scrollable body
Footer area
stickyBottomnow has all styles directlyHeading (
XDSSideNavHeading)interactivestyle only adds visual behavior (hover, cursor, border-radius), no layout changesinteractiveInsetstyle entirelySpacing Matrix
Shell Lab Changes
New options
Fixes
Test plan
Fixes parts of #565 (sidenav spacing)