Skip to content

Commit

Permalink
fix: set focus style and fix code block offset (fixes #118)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 15, 2024
1 parent 4ec17cc commit f1cd348
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/website/src/theme/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

// Accessibility helpers -----------------------------------------------------

*:focus-visible {
outline: 2px solid var(--primary);
}

.visually-hidden {
display: block;
height: 0;
Expand Down
2 changes: 2 additions & 0 deletions packages/website/src/theme/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ code:not(pre > code) {
}

pre {
outline-offset: 1px;

&::-webkit-scrollbar {
-webkit-appearance: none;
height: 8px;
Expand Down

0 comments on commit f1cd348

Please sign in to comment.