mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(desktop): invert onboarding primary buttons
- Give shared in-step primary actions a white background with dark labels. - Add coordinated hover colors that preserve contrast across onboarding surfaces. - Update the shared CTA documentation to describe the inverted treatment. Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
@@ -11,11 +11,10 @@ export const TOTAL_ONBOARDING_PAGES = 7;
|
||||
const ONBOARDING_CTA_SHAPE = "h-[2.375rem] rounded-full px-6";
|
||||
|
||||
/**
|
||||
* Primary-CTA styling for the in-step onboarding pages: the shared pill with a
|
||||
* light-blue label (`--buzz-onboarding-cta-label`, available on any
|
||||
* `.buzz-onboarding-neutral-theme` subtree).
|
||||
* Primary-CTA styling for the in-step onboarding pages: an inverted white pill
|
||||
* with dark text that stays legible across every onboarding surface.
|
||||
*/
|
||||
export const ONBOARDING_PRIMARY_CTA_CLASS = `${ONBOARDING_CTA_SHAPE} text-[var(--buzz-onboarding-cta-label)]`;
|
||||
export const ONBOARDING_PRIMARY_CTA_CLASS = `${ONBOARDING_CTA_SHAPE} bg-white text-black/80 hover:bg-white/90 hover:text-black`;
|
||||
|
||||
/**
|
||||
* Primary-CTA styling for the landing screen only: the shared pill with the
|
||||
|
||||
Reference in New Issue
Block a user