Skip to content

feat: use shared button style function in banner preview - #2

Closed
james-cross wants to merge 1 commit into
stagingfrom
feat/shared-button-styles
Closed

feat: use shared button style function in banner preview#2
james-cross wants to merge 1 commit into
stagingfrom
feat/shared-button-styles

Conversation

@james-cross

Copy link
Copy Markdown
Owner

Summary

Replaces the inline generateCTAClasses function in BannerPreview with the shared getButtonClasses function from button-styles.ts, ensuring banner preview button styling matches the public website.

Changes

  • Add button-styles.ts (copy of canonical source from streetsupport-platform-web)
  • Replace inline generateCTAClasses in BannerPreview.tsx with getButtonClasses import

Testing

  • Banner preview renders CTA buttons with correct styling for all variants (primary, secondary, outline)
  • Both light and dark text colour modes display correct button contrast

- Add button-styles.ts (canonical source in streetsupport-platform-web)
- Replace inline generateCTAClasses with getButtonClasses from shared module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant