Skip to content

Commit

Permalink
Merge pull request #430 from BeAPI/fix/focus
Browse files Browse the repository at this point in the history
fix focus seo container
  • Loading branch information
francoistibo authored Nov 4, 2024
2 parents bad3ad1 + 16de59b commit e7d80b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/scss/04-utilities/_focus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ html {
}
}
}

%focus-seo-container {
&:has(:focus-visible) {
outline: 2px solid currentColor;
outline-offset: .5rem;
}

*:focus {
outline: none;
}
}
1 change: 1 addition & 0 deletions src/scss/04-utilities/_seo.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
%seo-container {
@extend %focus-seo-container;
position: relative;
z-index: 1;
cursor: pointer;
Expand Down

0 comments on commit e7d80b5

Please sign in to comment.