Skip to content

Commit

Permalink
fix(theme): ghost danger button style (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong authored Sep 15, 2024
1 parent 2c9c817 commit 559436d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-socks-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

add missing `data-[hover=true]:` for ghost button with danger color
5 changes: 4 additions & 1 deletion packages/core/theme/src/components/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ const button = tv({
{
variant: "ghost",
color: "danger",
class: [colorVariants.ghost.danger, "data-[hover=true]:!bg-danger !text-danger-foreground"],
class: [
colorVariants.ghost.danger,
"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground",
],
},
// isInGroup / radius / size <-- radius not provided
{
Expand Down

0 comments on commit 559436d

Please sign in to comment.