Skip to content

Commit

Permalink
style: add outlines to toolbar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Apr 23, 2024
1 parent 3c8d75b commit a3cfbb9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/components/menu/menu.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
border-radius: 50%;
transition: 0.2s;

&:hover {
&:focus-visible {
outline: 2px solid var(--color-neutral-400);
outline-offset: 2px;
}

&:hover,
&:focus-visible {
background-color: var(--color-neutral-200);
}
}
Expand Down
8 changes: 7 additions & 1 deletion src/components/scroll-to-top/scroll-to-top.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
border-radius: 50%;
transition: 0.2s;

&:hover {
&:focus-visible {
outline: 2px solid var(--color-neutral-400);
outline-offset: 2px;
}

&:hover,
&:focus-visible {
background-color: var(--color-neutral-200);
}
}

0 comments on commit a3cfbb9

Please sign in to comment.