Repository navigation
feat(AppShell): add variant prop for nav/content background styles - #571
Merged
Merged
Conversation
Interactive playground for testing AppShell, SideNav, TopNav, and MobileNav configurations. Floating config panel lets you toggle: - AppShell: background, height mode, breakpoint - Visibility: sideNav, topNav, banner, footer icons, top content, nested items - Collapse: default state, controlled mode, toggle - Mobile nav: auto/custom/none, drawer side - TopNav: alignment (start/center/end), heading visibility Use for the #565 deep review — covers all three problem areas (collapsed mode, auto-expand, mobile nav defaults).
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
- Switch sandbox to consume dist (no StyleX build pipeline) - Import pre-compiled CSS via @xds/core/xds.css and @xds/theme-default/theme.css - Shell Lab owns full viewport (no sandbox chrome wrapper) - Add CLAUDE.md agent-docs injection at repo root - Fix Switch API: value not isSelected - Fix Badge API: children not label - Fix footerIcons: use XDSButton icon-only instead of XDSSideNavItem - Fix Selector API: options prop not children composition - Add XDSBanner for banner slot - Add NavIcon to SideNav and TopNav headings - Add SideNav Heading visibility toggle - Add TopNav style selector: Items / Menus / Mega - Remove stylex from all sandbox pages (inline styles)
cixzhang
marked this pull request as ready for review
March 12, 2026 22:59
52 of 55 tasks
cixzhang
added a commit
that referenced
this pull request
Mar 13, 2026
PR #571 accidentally stripped the StyleX babel plugin from the sandbox babel config and removed the @stylex directive from globals.css. Without these, local stylex.create() calls in sandbox pages fail to compile, causing the sandbox build to silently fail (CI uses continue-on-error). Changes: - Restore @stylexjs/babel-plugin in babel.config.js (without the old @xds/core aliases since sandbox now consumes dist) - Restore @stylex directive in globals.css for CSS extraction - Convert all sandbox pages from inline style objects to stylex.create() for consistency and type safety - Fix pre-existing type errors in shell-lab (XDSSideNavSection heading→ title, XDSAppShellBreakpoint xl→none, VStack padding→xstyle) - Convert mega-menu page to stylex (fixes position type error)
cixzhang
added a commit
that referenced
this pull request
Mar 13, 2026
PR #571 accidentally stripped the StyleX babel plugin from the sandbox babel config and removed the @stylex directive from globals.css. Without these, local stylex.create() calls in sandbox pages fail to compile, causing the sandbox build to silently fail (CI uses continue-on-error). Changes: - Restore @stylexjs/babel-plugin in babel.config.js (without the old @xds/core aliases since sandbox now consumes dist) - Restore @stylex directive in globals.css for CSS extraction - Convert all sandbox pages from inline style objects to stylex.create() for consistency and type safety - Fix pre-existing type errors in shell-lab (XDSSideNavSection heading→ title, XDSAppShellBreakpoint xl→none, VStack padding→xstyle) - Convert mega-menu page to stylex (fixes position type error)
cixzhang
added a commit
that referenced
this pull request
Mar 13, 2026
PR #571 accidentally stripped the StyleX babel plugin from the sandbox babel config and removed the @stylex directive from globals.css. Without these, local stylex.create() calls in sandbox pages fail to compile, causing the sandbox build to silently fail (CI uses continue-on-error). Changes: - Restore @stylexjs/babel-plugin in babel.config.js (without the old @xds/core aliases since sandbox now consumes dist) - Restore @stylex directive in globals.css for CSS extraction - Convert all sandbox pages from inline style objects to stylex.create() for consistency and type safety - Fix pre-existing type errors in shell-lab (XDSSideNavSection heading→ title, XDSAppShellBreakpoint xl→none, VStack padding→xstyle) - Convert mega-menu page to stylex (fixes position type error)
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
…#571) * feat(sandbox): add Shell Lab experimentation page Interactive playground for testing AppShell, SideNav, TopNav, and MobileNav configurations. Floating config panel lets you toggle: - AppShell: background, height mode, breakpoint - Visibility: sideNav, topNav, banner, footer icons, top content, nested items - Collapse: default state, controlled mode, toggle - Mobile nav: auto/custom/none, drawer side - TopNav: alignment (start/center/end), heading visibility Use for the #565 deep review — covers all three problem areas (collapsed mode, auto-expand, mobile nav defaults). * feat(sandbox): Shell Lab updates — dist build, full viewport, API fixes - Switch sandbox to consume dist (no StyleX build pipeline) - Import pre-compiled CSS via @xds/core/xds.css and @xds/theme-default/theme.css - Shell Lab owns full viewport (no sandbox chrome wrapper) - Add CLAUDE.md agent-docs injection at repo root - Fix Switch API: value not isSelected - Fix Badge API: children not label - Fix footerIcons: use XDSButton icon-only instead of XDSSideNavItem - Fix Selector API: options prop not children composition - Add XDSBanner for banner slot - Add NavIcon to SideNav and TopNav headings - Add SideNav Heading visibility toggle - Add TopNav style selector: Items / Menus / Mega - Remove stylex from all sandbox pages (inline styles)
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
…#571) * feat(sandbox): add Shell Lab experimentation page Interactive playground for testing AppShell, SideNav, TopNav, and MobileNav configurations. Floating config panel lets you toggle: - AppShell: background, height mode, breakpoint - Visibility: sideNav, topNav, banner, footer icons, top content, nested items - Collapse: default state, controlled mode, toggle - Mobile nav: auto/custom/none, drawer side - TopNav: alignment (start/center/end), heading visibility Use for the #565 deep review — covers all three problem areas (collapsed mode, auto-expand, mobile nav defaults). * feat(sandbox): Shell Lab updates — dist build, full viewport, API fixes - Switch sandbox to consume dist (no StyleX build pipeline) - Import pre-compiled CSS via @xds/core/xds.css and @xds/theme-default/theme.css - Shell Lab owns full viewport (no sandbox chrome wrapper) - Add CLAUDE.md agent-docs injection at repo root - Fix Switch API: value not isSelected - Fix Badge API: children not label - Fix footerIcons: use XDSButton icon-only instead of XDSSideNavItem - Fix Selector API: options prop not children composition - Add XDSBanner for banner slot - Add NavIcon to SideNav and TopNav headings - Add SideNav Heading visibility toggle - Add TopNav style selector: Items / Menus / Mega - Remove stylex from all sandbox pages (inline styles)
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
…#571) * feat(sandbox): add Shell Lab experimentation page Interactive playground for testing AppShell, SideNav, TopNav, and MobileNav configurations. Floating config panel lets you toggle: - AppShell: background, height mode, breakpoint - Visibility: sideNav, topNav, banner, footer icons, top content, nested items - Collapse: default state, controlled mode, toggle - Mobile nav: auto/custom/none, drawer side - TopNav: alignment (start/center/end), heading visibility Use for the #565 deep review — covers all three problem areas (collapsed mode, auto-expand, mobile nav defaults). * feat(sandbox): Shell Lab updates — dist build, full viewport, API fixes - Switch sandbox to consume dist (no StyleX build pipeline) - Import pre-compiled CSS via @xds/core/xds.css and @xds/theme-default/theme.css - Shell Lab owns full viewport (no sandbox chrome wrapper) - Add CLAUDE.md agent-docs injection at repo root - Fix Switch API: value not isSelected - Fix Badge API: children not label - Fix footerIcons: use XDSButton icon-only instead of XDSSideNavItem - Fix Selector API: options prop not children composition - Add XDSBanner for banner slot - Add NavIcon to SideNav and TopNav headings - Add SideNav Heading visibility toggle - Add TopNav style selector: Items / Menus / Mega - Remove stylex from all sandbox pages (inline styles)
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
Replace the
backgroundprop with avariantprop that controls how nav areas contrast with content. Closes #346, part of #565 shell deep review.Variants
washsurfacesectionelevatedKey changes
variantprop replacesbackgroundon XDSAppShell--radius-pagetoken (20px) — themeable border radius for elevated content--color-navbartoken removed — nav background now controlled by the shell variantisolation: isolatestacking (no z-index, no overflow clipping, preserves scroll)Shell Lab
Interactive sandbox page at
/pages/shell-lab/with toggles for variant, height, collapse, mobile nav, top nav style, and visibility of all shell areas.Breaking changes
backgroundprop removed — usevariantinstead--color-navbartoken removed — usevariant="surface"or theme the shell