Skip to content

Commit

Permalink
Focus style
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Sep 19, 2023
1 parent b4e6710 commit 738c6a4
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/slide-show-ol.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/slide-show-shadow.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/slide-show-ul.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/slide-show.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/slide-show.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions css/host.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@
justify-self: auto;
}

:host(:focus) {
outline-width: 0;
}

:host(:focus-visible) {
outline-width: 1px;
}

@supports not selector(:focus-visible) {
:host(:focus) {
outline-width: 1px;
}
}


.invisible {
/* Keep content accessible but not visible. */
position: absolute;
Expand Down

0 comments on commit 738c6a4

Please sign in to comment.