Skip to content

Commit a3f063e

Browse files
committed
[B] fix focus style
1 parent b2ce170 commit a3f063e

File tree

1 file changed

+7
-3
lines changed
  • client/src/global/components/atomic/Button

1 file changed

+7
-3
lines changed

client/src/global/components/atomic/Button/styles.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ const aSecondaryButtonDark = `
2424
&:focus-visible {
2525
color: var(--color-base-neutral95);
2626
background-color: var(--color-base-neutral30);
27-
border-color: var(--color-base-neutral30);
2827
}
2928
30-
&:focus-visible {
31-
border-color: var(--color-base-neutral75);
29+
&:hover {
30+
border-color: var(--color-base-neutral30);
3231
}
3332
`;
3433

@@ -72,6 +71,11 @@ export const Button = styled("button", transientOptions)`
7271
background-color: var(--color-accent-primary-dull);
7372
}
7473
74+
&:focus-visible {
75+
border-color: transparent;
76+
outline-offset: 3px;
77+
}
78+
7579
${({ $secondary, $darkMode }) => {
7680
if ($secondary) {
7781
if ($darkMode) {

0 commit comments

Comments
 (0)