Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/components/therapy-compass/therapy-compass.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
color: var(--text);
}

/*
* The home route renders ModeHomeMain, which owns a full-height --background
* (white) canvas exactly like every other mode home. The workspace shell must
* not paint its grey --surface-chrome behind it: on phones ModeHomeMain is only
* content-height, so the chrome showed through below the fold as a mismatched
* grey block. Match the other mode homes by using --background on home.
*/
.tc-root.tc-root--home {
background: var(--background);
}

.tc-root .tc-main {
min-width: 0;
padding: 32px 40px 40px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/therapy-compass/workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function TherapyCompassWorkspace({ children }: { children: ReactNode }) {

return (
<TcProvider>
<div className="tc-root tc-workspace-006">
<div className={`tc-root tc-workspace-006${isHome ? " tc-root--home" : ""}`}>
{isHome ? null : <TherapyCompassNav />}
<TherapyCompassMain showFooter={!isHome} asMain={!isHome}>
{children}
Expand Down