Skip to content

Commit

Permalink
💄 Changed from :focus to :focus-visible to avoid showing outlines whe…
Browse files Browse the repository at this point in the history
…n clicking buttons or checkboxes
  • Loading branch information
jberglund committed Dec 12, 2024
1 parent 86d9fec commit 2b05a5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/linkButton/linkButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
&:hover {
--_button-radius: var(--_button-hoverRadius);
}
&:focus {
&:focus-visible {
--_button-radius: var(--_button-hoverRadius);
outline: 2px solid var(--surface-yellow);
outline-offset: 1px;
Expand Down Expand Up @@ -85,7 +85,7 @@
&:hover {
--_button-background: var(--background-bg-dark);
}
&:focus {
&:focus-visible {
--_button-border: 1px solid var(--surface-yellow);
}
&:active {
Expand Down Expand Up @@ -127,7 +127,7 @@
&:hover {
--_button-background: var(--background-bg-dark);
}
&:focus {
&:focus-visible {
--_button-border: 1px solid var(--surface-yellow);
}
&:active {
Expand Down
4 changes: 2 additions & 2 deletions src/components/sections/testimonials/testimonials.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
}
}

&:focus {
&:focus-visible {
outline: 2px solid var(--stroke-primary);
border-radius: 0.9375rem;
}
Expand Down Expand Up @@ -179,7 +179,7 @@
}
}

&:focus {
&:focus-visible {
outline: 2px solid #3995ef;
border-radius: 0.9375rem;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/tag/tag.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.tag:active {
--_tag-borderColor: var(--background-bg-light-secondary);
}
.tag:focus {
.tag:focus-visible {
outline: 2px solid var(--surface-yellow, #ffd02f);
}

Expand Down

0 comments on commit 2b05a5c

Please sign in to comment.