Skip to content

Commit ac6df5f

Browse files
authored
fix(buttons): white border around secondary buttons in pagination (#457)
1 parent fa991d9 commit ac6df5f

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/kumo": patch
3+
---
4+
5+
Remove invalid hover border utility from secondary button variants to keep hover styling consistent and avoid unintended class output.

packages/kumo/src/components/button/button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const KUMO_BUTTON_VARIANTS = {
5353
},
5454
secondary: {
5555
classes:
56-
"bg-kumo-base !text-kumo-default ring not-disabled:hover:border-secondary! not-disabled:hover:bg-kumo-tint disabled:bg-kumo-base/50 disabled:!text-kumo-default/70 ring-kumo-hairline data-[state=open]:bg-kumo-base",
56+
"bg-kumo-base !text-kumo-default ring not-disabled:hover:bg-kumo-tint disabled:bg-kumo-base/50 disabled:!text-kumo-default/70 ring-kumo-hairline data-[state=open]:bg-kumo-base",
5757
description: "Default button style for most actions",
5858
},
5959
ghost: {
@@ -66,7 +66,7 @@ export const KUMO_BUTTON_VARIANTS = {
6666
},
6767
"secondary-destructive": {
6868
classes:
69-
"bg-kumo-base !text-kumo-danger ring not-disabled:hover:border-secondary! not-disabled:hover:bg-kumo-base disabled:bg-kumo-base/50 disabled:!text-kumo-danger/70 ring-kumo-hairline data-[state=open]:bg-kumo-base",
69+
"bg-kumo-base !text-kumo-danger ring not-disabled:hover:bg-kumo-base disabled:bg-kumo-base/50 disabled:!text-kumo-danger/70 ring-kumo-hairline data-[state=open]:bg-kumo-base",
7070
description:
7171
"Secondary button with destructive text for less prominent dangerous actions",
7272
},

0 commit comments

Comments
 (0)