Skip to content

Commit 0c16ced

Browse files
ineaguclaude
andcommitted
fix(onboarding): reveal the color swatch only on card hover
The per-card color summary showed at rest, adding visual noise to the grid. Hide it at rest and reveal it on card hover/focus (matching the page-shot tabs) so the resting grid stays clean; the full white pill still appears on hover. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QrGf4K9upxDKhRPVCztoLs
1 parent 8f0424a commit 0c16ced

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

onboarding/src/scss/_starter-site-card.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
transform: translateY(0);
4747
pointer-events: auto;
4848
}
49+
50+
.ss-color-summary {
51+
opacity: 1;
52+
transform: translateY(0);
53+
pointer-events: auto;
54+
}
4955
}
5056
}
5157

@@ -122,12 +128,17 @@
122128
background: rgba(255, 255, 255, 0.96);
123129
backdrop-filter: blur(8px);
124130
box-shadow: 0 6px 18px rgba(12, 19, 31, 0.12);
125-
transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
131+
// Hidden at rest — revealed only when the card is hovered/focused (like the page-shots),
132+
// so it adds no visual noise to the resting grid.
133+
opacity: 0;
134+
transform: translateY(4px);
135+
pointer-events: none;
136+
transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.18s ease,
137+
background 0.18s ease;
126138
z-index: 2;
127139
gap: 6px;
128140

129141
&:hover {
130-
transform: translateY(-1px);
131142
background: rgba(255, 255, 255, 0.99);
132143
box-shadow: 0 10px 22px rgba(12, 19, 31, 0.16);
133144
}

0 commit comments

Comments
 (0)