Repository navigation
fix(AppShell): add wash background color to root container - #328
Merged
Merged
Conversation
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsAppShell · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Component PreviewsIncludes interactive hover previews as animated GIFs. XDSAppShellTop Nav With Side NavScreenshot: Interaction Preview: (view video) View in Storybook · Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
force-pushed
the
navi/fix/appshell-wash-background
branch
from
February 25, 2026 05:21
b9374da to
82b4ec4
Compare
The AppShell root had no background color, so the body's default white showed through in dark mode. Set backgroundColor to --color-wash so the shell always matches the active theme. Co-authored-by: Navi <[email protected]>
cixzhang
force-pushed
the
navi/fix/appshell-wash-background
branch
from
February 25, 2026 05:41
82b4ec4 to
f94374a
Compare
Adds a `background` prop to XDSAppShell that controls the root background color: - `surface` (default): white in light, dark gray in dark - `wash`: subtle gray in light, near-black in dark Co-authored-by: Navi <[email protected]>
cixzhang
enabled auto-merge
February 25, 2026 07:45
cixzhang
added this pull request to the merge queue
Feb 25, 2026
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
* fix(AppShell): add wash background color to root container The AppShell root had no background color, so the body's default white showed through in dark mode. Set backgroundColor to --color-wash so the shell always matches the active theme. Co-authored-by: Navi <[email protected]> * feat(AppShell): add background prop with wash/surface options Adds a `background` prop to XDSAppShell that controls the root background color: - `surface` (default): white in light, dark gray in dark - `wash`: subtle gray in light, near-black in dark Co-authored-by: Navi <[email protected]> --------- Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
* fix(AppShell): add wash background color to root container The AppShell root had no background color, so the body's default white showed through in dark mode. Set backgroundColor to --color-wash so the shell always matches the active theme. Co-authored-by: Navi <[email protected]> * feat(AppShell): add background prop with wash/surface options Adds a `background` prop to XDSAppShell that controls the root background color: - `surface` (default): white in light, dark gray in dark - `wash`: subtle gray in light, near-black in dark Co-authored-by: Navi <[email protected]> --------- Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
* fix(AppShell): add wash background color to root container The AppShell root had no background color, so the body's default white showed through in dark mode. Set backgroundColor to --color-wash so the shell always matches the active theme. * feat(AppShell): add background prop with wash/surface options Adds a `background` prop to XDSAppShell that controls the root background color: - `surface` (default): white in light, dark gray in dark - `wash`: subtle gray in light, near-black in dark ---------
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
One-line fix: adds
backgroundColor: colorVars['--color-wash']to the AppShell root container.Problem
The AppShell root had no background color. In dark mode, the body's default white showed through — the shell content was dark but any area not covered by a component (gaps, scrollable overflow) stayed white.
Fix
Set
backgroundColorto--color-washon the root style. This is the standard page background token — it's what the body/canvas should be. Since the AppShell is the top-level layout wrapper, it's the right place to set this.Note on mobile sidebar
Internally, the left nav converts to a top nav appearance on mobile with a hamburger menu. Some teams have wanted to configure this behavior. That's a separate discussion — this PR just fixes the background.
Test plan
yarn build— cleanyarn test— 1006 tests passCrafted with care by Navi