Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/secondary-button-hover-tint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/kumo": patch
---

Add subtle background tint on secondary button hover state for better visual feedback
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The description should be updated to include focus state since the implementation now includes not-disabled:focus:bg-kumo-tint:

Suggested change
Add subtle background tint on secondary button hover state for better visual feedback
Add subtle background tint on secondary button hover and focus states for better visual feedback

2 changes: 1 addition & 1 deletion packages/kumo/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const KUMO_BUTTON_VARIANTS = {
},
secondary: {
classes:
"bg-kumo-control !text-kumo-default ring not-disabled:hover:border-secondary! not-disabled:hover:bg-kumo-control disabled:bg-kumo-control/50 disabled:!text-kumo-default/70 ring-kumo-line data-[state=open]:bg-kumo-control",
"bg-kumo-control !text-kumo-default ring not-disabled:hover:border-secondary! not-disabled:hover:bg-kumo-tint not-disabled:focus:bg-kumo-tint disabled:bg-kumo-control/50 disabled:!text-kumo-default/70 ring-kumo-line data-[state=open]:bg-kumo-control",
description: "Default button style for most actions",
},
ghost: {
Expand Down