Skip to content

Commit 09849cc

Browse files
authored
A11Y - Add visual indicator for tabs hover (#1884)
Only changing color is not visually distinctive enough, adding an underline with same size as link underline thickness. See Quansight-Labs/czi-scientific-python-mgmt#79
1 parent 4be630f commit 09849cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pydata_sphinx_theme/assets/styles/extensions/_sphinx_design.scss

+2
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ html[data-theme="light"] {
207207
&:not(:checked, :focus-visible) + label:hover {
208208
border-color: transparent;
209209
color: var(--pst-color-secondary);
210+
text-decoration-line: underline;
211+
text-decoration-thickness: $link-hover-decoration-thickness;
210212
}
211213
}
212214

0 commit comments

Comments
 (0)