fix(onboarding): reveal color swatch only on hover#482
Merged
Conversation
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
Collaborator
Collaborator
|
🎉 This PR is included in version 1.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
The per-card color swatch summary showed at rest, adding visual noise to the starter-sites grid. This hides it at rest and reveals it only on card hover / focus — matching the existing page-shot tabs — so the resting grid stays clean.
.ss-color-summaryis nowopacity: 0; pointer-events: noneat rest, revealed via the existing.ss-card:hover, :focus-withinblock (with a small slide-up). The full white pill + shadow still appear on hover; keyboard focus reveals it via:focus-within.Targets
developmentso it ships in the v1.4.0 starter-sites release (#481).Test
Open Neve onboarding (≥992px): at rest the cards show no color swatch; hovering (or tabbing into) a multi-palette card reveals the swatch at the bottom-left (and the page-shot tabs at top). Single-palette sites still show nothing.
Verified in a local wp-env instance — resting opacity 0, hover opacity 1.