Skip to content

fix: replace non-semantic border-secondary token and add missing hover styles in button variants#196

Open
matingathani wants to merge 1 commit intocloudflare:mainfrom
matingathani:fix/button-variant-hover-styles
Open

fix: replace non-semantic border-secondary token and add missing hover styles in button variants#196
matingathani wants to merge 1 commit intocloudflare:mainfrom
matingathani:fix/button-variant-hover-styles

Conversation

@matingathani
Copy link

@matingathani matingathani commented Mar 9, 2026

Summary

  • Replaced not-disabled:hover:border-secondary! with not-disabled:hover:ring-kumo-ring in secondary and secondary-destructive variants — border-secondary is not a Kumo semantic token; ring-kumo-ring is the correct semantic equivalent used elsewhere (e.g. checkbox hover)
  • Added not-disabled:hover:bg-kumo-tint to secondary, secondary-destructive, and outline variants to provide visible hover feedback consistent with other interactive elements
  • Added not-disabled:hover:ring-kumo-ring to outline variant for ring highlight on hover

Test plan

  • Hover over secondary button — should show tint background and ring highlight
  • Hover over secondary-destructive button — same hover feedback, danger text color preserved
  • Hover over outline button — should show tint background and ring highlight
  • Disabled state: no hover styles should apply (guarded by not-disabled:)
  • Verify no border-secondary references remain in button component

Fixes #35

… variants

Replace `border-secondary` (non-semantic) with `ring-kumo-ring` and add
missing hover background (`hover:bg-kumo-tint`) to secondary,
secondary-destructive, and outline button variants.

Fixes cloudflare#35

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 9, 2026 19:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Kumo’s Button variant styling to use semantic design tokens and provide consistent hover feedback across secondary-style variants, aligning with documented token usage and fixing issue #35.

Changes:

  • Replaced not-disabled:hover:border-secondary! with semantic not-disabled:hover:ring-kumo-ring in secondary and secondary-destructive.
  • Added not-disabled:hover:bg-kumo-tint hover background to secondary, secondary-destructive, and outline.
  • Added not-disabled:hover:ring-kumo-ring to outline for consistent hover ring highlighting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

[docs] Button variants missing hover styles and using non-semantic color tokens

2 participants