Skip to content

Commit f5a275f

Browse files
authored
Align destructive button and link variants with shadcn styles (#288)
1 parent 6e6b50e commit f5a275f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/ruby_ui/button/button.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ def destructive_classes
7272
[
7373
BASE_CLASSES,
7474
size_classes,
75-
"bg-destructive text-destructive-foreground shadow-sm",
76-
"hover:bg-destructive/90"
75+
"bg-destructive text-white shadow-sm",
76+
"[a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20",
77+
"dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
7778
]
7879
end
7980

lib/ruby_ui/link/link.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ def destructive_classes
7272
[
7373
BASE_CLASSES,
7474
size_classes,
75-
"bg-destructive text-destructive-foreground shadow-sm",
76-
"hover:bg-destructive/90"
75+
"bg-destructive text-white shadow-sm",
76+
"[a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20",
77+
"dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
7778
]
7879
end
7980

0 commit comments

Comments
 (0)