Skip to content

Commit e6f5bce

Browse files
committed
fix(a11y): show focus outline on keyboard navigation only
1 parent ac52ce6 commit e6f5bce

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/sphinx_breeze_theme/assets/styles/extensions/design.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
.sd-card {
6565
--bz-surface: var(--sd-color-card-background);
6666

67-
&:focus-within {
67+
&.sd-card-hover:focus-within {
6868
outline: 1px solid;
6969
}
7070
}
@@ -146,7 +146,7 @@
146146
details.sd-dropdown summary.sd-summary-title {
147147
padding: .35em .6em .35em 1em;
148148

149-
&:focus-within {
149+
&:focus-visible {
150150
outline: 1px solid;
151151
}
152152

src/sphinx_breeze_theme/assets/styles/extensions/docsearch.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
border-color: var(--bz-search-button-border-color-hover);
3636
}
3737

38-
&:focus-within {
38+
&:focus-visible {
3939
outline: 2px solid;
4040
}
4141

src/sphinx_breeze_theme/assets/styles/extensions/myst-nb.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ div.cell {
173173
cursor: pointer;
174174
outline: none !important;
175175

176-
&:focus-within p {
176+
&:focus-visible p {
177177
outline: 1px solid;
178178
outline-offset: -1px;
179179
border-radius: var(--bz-border-radius);

0 commit comments

Comments
 (0)