Skip to content

Commit 4e07c49

Browse files
committed
Focus border refinements
1 parent 859fb10 commit 4e07c49

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/button/index.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const buttonVariants = cva(
1212
appearance: {
1313
outline: "border-blue-600 text-blue-600 hover:bg-blue-50 active:bg-blue-100 focus-visible:ring-blue-500/25",
1414
solid:
15-
"border-transparent bg-blue-500 text-button hover:bg-blue-600 active:bg-blue-700 focus-visible:ring-blue-500/25",
15+
"border-transparent bg-blue-500 text-button hover:bg-blue-600 active:bg-blue-700 focus-visible:border-blue-600 focus-visible:ring-blue-500/25",
1616
ghost: "border-transparent text-blue-600 hover:bg-blue-50 active:bg-blue-100 focus-visible:ring-blue-500/25",
1717
},
1818
priority: {
@@ -39,7 +39,8 @@ const buttonVariants = cva(
3939
{
4040
appearance: "solid",
4141
priority: "danger",
42-
class: "border-transparent bg-red-500 hover:bg-red-600 active:bg-red-700 focus-visible:ring-red-500/25",
42+
class:
43+
"border-transparent bg-red-500 hover:bg-red-600 active:bg-red-700 focus-visible:ring-red-500/25 focus-visible:border-red-600",
4344
},
4445
{
4546
appearance: "ghost",
@@ -55,7 +56,8 @@ const buttonVariants = cva(
5556
{
5657
appearance: "solid",
5758
priority: "muted",
58-
class: "border-transparent bg-gray-500 hover:bg-gray-600 active:bg-gray-700 focus-visible:ring-gray-500/25",
59+
class:
60+
"border-transparent bg-gray-500 hover:bg-gray-600 active:bg-gray-700 focus-visible:ring-gray-500/25 focus-visible:border-gray-600",
5961
},
6062
],
6163
},

0 commit comments

Comments
 (0)