fix: improve close button contrast on onboarding tour modal#9186
fix: improve close button contrast on onboarding tour modal#9186Marsssssssssssdsss wants to merge 1 commit into
Conversation
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe onboarding tour close button receives visual styling enhancements. A background color, shadow, and hover state are added to the close button className to improve visibility and contrast against the modal background. ChangesClose Button Visual Enhancement
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey @Marsssssssssssdsss, thanks for the fix: improving the close button contrast on the onboarding tour is a good catch! We're picking up your changes into an internal branch and shipping them. Just a heads up, we've removed |
Description
This PR fixes the close (X) button contrast issue on the Cycles onboarding modal (tour component).
Problem
The close button in the top-right corner of the tour modal has no background color, causing it to blend into the header area with
bg-accent-primary. This makes the button difficult to notice and reduces discoverability.Solution
bg-surface-1to give the close button a solid background that contrasts against the accent-colored headershadow-mdfor better visual separation from the contenthover:bg-surface-3for a subtle interactive hover stateChanges
apps/web/ce/components/onboarding/tour/root.tsx: Updated the close button's classNameBefore
The close button had only
border border-strongwith no background, blending into the modal header.After
The close button now has a visible surface background, shadow for depth, and hover effect.
Closes #9182
Summary by CodeRabbit