Skip to content

Commit c940047

Browse files
authored
address docs accessibility issues (#3205)
fix color contrast add back link underlining
1 parent 5b3cee7 commit c940047

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

Docs/source/_static/theme_overrides.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ div#example-notebook div.highlight-default div.highlight {
3434

3535
.wy-side-nav-search>div.branch{
3636
font-weight:normal;
37-
color:rgba(255,255,255,0.3);
37+
color:rgba(255,255,255);
3838
font-size:100%;
3939
display:inline-block;
4040
padding:4px 6px;
@@ -47,4 +47,25 @@ div#example-notebook div.highlight-default div.highlight {
4747
margin-bottom:.809em; */
4848
color:#fcfcfc;
4949
font-weight:bold;
50-
}
50+
}
51+
52+
/* Underline links everywhere */
53+
.wy-nav-content a {
54+
text-decoration: underline;
55+
text-decoration-style: dotted;
56+
text-underline-offset: 0.15em;
57+
}
58+
59+
/* Left sidebar navigation links */
60+
.wy-menu a {
61+
text-decoration-line: underline;
62+
text-decoration-style: dotted;
63+
text-underline-offset: 0.15em;
64+
}
65+
66+
.wy-side-nav-search a {
67+
text-decoration-line: underline;
68+
text-decoration-style: dotted;
69+
text-underline-offset: 0.15em;
70+
}
71+

Docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def get_version():
6060
'sphinx_copybutton',
6161
'sphinx_prompt',
6262
'breathe',
63+
'sphinx_rtd_theme_ext_color_contrast',
6364
'IPython.sphinxext.ipython_console_highlighting']
6465

6566
# bibtex

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ sphinx-prompt
1313
codespell
1414
sphinx-math-dollar
1515
sphinx-copybutton
16+
17+
# for accessibility
18+
sphinx-rtd-theme-ext-color-contrast

0 commit comments

Comments
 (0)