Skip to content

fix(community): match legacy primary button styling for Subscribe/New Post - #4073

Open
ety001 wants to merge 1 commit into
nextfrom
fix/community-primary-button-style
Open

ety001 wants to merge 1 commit into
nextfrom
fix/community-primary-button-style

Conversation

@ety001

@ety001 ety001 commented Nov 13, 2026

Copy link
Copy Markdown
Member

Problem

On the community page, the Subscribe and New Post buttons render in the site-wide teal accent (#06D6A9) with title-case bold labels, while legacy renders them in foundation primary blue with uppercase labels (see screenshots in issue discussion — legacy shows blue SUBSCRIBE / NEW POST).

Root cause

Legacy styles both buttons as foundation button primary:

  • foundation-settings.scss:12 — primary: #1A5099
  • foundation-overrides.scss:48 — button, .button { text-transform: uppercase }
  • SubscribeButton.jsx:62-66 — button primary + hollow when subscribed, minWidth: 7em
  • CommunityBanner.jsx:187 — New Post link uses button primary

The Next.js port hard-coded #06D6A9 (legacy -teal, the link/accent color — not the button color) and missed the uppercase transform and min-width.

Changes

  • components/elements/SubscribeButton.tsx — fill/border/hollow variants switched to #1A5099, add uppercase, drop font-bold (foundation buttons are regular weight), restore min-w-[7em]
  • components/elements/CommunityBanner.tsx — New Post button switched to #1A5099, add uppercase, drop font-bold
  • Doc comments updated to record the legacy button primary mapping

Site-wide teal usage elsewhere (Header, Voting, LoginForm, etc.) is untouched — this only aligns the two community-page buttons with legacy.

Verification

  • pnpm lint — 0 errors (7 pre-existing warnings, unchanged)
  • pnpm test — 92 files / 1171 tests passed

… Post

The community banner's Subscribe and New Post buttons used the site-wide
teal accent (#06D6A9), but legacy renders both as foundation `button
primary` — blue #1A5099 with uppercase text (foundation-overrides.scss).
Switch the fill/border/hollow variants to #1A5099, add uppercase, drop
the bold weight, and restore the subscribe button's 7em min-width.
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