Skip to content

fix(banner): quieten and brighten the Banner.Action CTA - #674

Open
AnmolSaini16 wants to merge 2 commits into
cloudflare:mainfrom
AnmolSaini16:fix/banner-action-quiet-cta
Open

fix(banner): quieten and brighten the Banner.Action CTA#674
AnmolSaini16 wants to merge 2 commits into
cloudflare:mainfrom
AnmolSaini16:fix/banner-action-quiet-cta

Conversation

@AnmolSaini16

@AnmolSaini16 AnmolSaini16 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Banner.Action defaulted to variant="primary", so every banner rendered a saturated filled accent button that overpowered its own message and competed with page-level CTAs.

  • Default to variant="secondary": an accent-tinted fill with an accent hairline. variant="primary" stays available for the rare banner whose CTA is the most important action on the page.
  • Brighten the secondary and ghost accents. Labels and icons now use the banner's accent text token directly instead of inheriting the container colour, which picked up the neutral banner's dimmed text-kumo-default/70 and made the CTA look muddy.
  • Gate hover colours behind not-disabled:, so hover is inert on disabled and loading actions. This also drops the !important hovers, since the modifier set now matches Button's own outline defaults and tailwind-merge dedupes them.

  • Reviews
    • bonk has reviewed the change
    • automated review not possible because:
  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:

`Banner.Action` defaulted to `variant="primary"`, so every banner rendered a
saturated filled accent button that overpowered its own message and competed
with page-level CTAs.

- Default to `variant="secondary"`: an accent-tinted fill with an accent
  hairline. `variant="primary"` stays available for the rare banner whose CTA
  is the most important action on the page.
- Brighten the `secondary` and `ghost` accents. Labels and icons now use the
  banner's accent text token directly instead of inheriting the container
  colour, which picked up the neutral banner's dimmed `text-kumo-default/70`
  and made the CTA look muddy.
- Gate hover colours behind `not-disabled:`, so hover is inert on disabled and
  loading actions. This also drops the `!important` hovers, since the modifier
  set now matches Button's own outline defaults and tailwind-merge dedupes them.

@ArshVermaGit ArshVermaGit left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The updated CTA styling feels more balanced, and the color and hover state adjustments improve clarity while keeping the component consistent with the design system. The changes are clean and well scoped. LGTM.

@pkg-pr-new

pkg-pr-new Bot commented Jul 28, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@cloudflare/kumo@674

commit: a914796

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.

3 participants