Skip to content

Commit 60d60a6

Browse files
committed
adjust links to improve accessibility
1 parent 2a37a8c commit 60d60a6

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

docs/source/_static/css/ftc-rtd.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,52 @@ div.ethical-sidebar, div.ethical-footer {
145145
.sphinx-tab img {
146146
margin-bottom: 24px;
147147
}
148+
149+
/* fix link text in body content for accessibility
150+
exclude .sd-btn which are the buttons on the persona pages*/
151+
.document a:not(.sd-btn) {
152+
color: #0000EE;
153+
text-decoration-line: underline;
154+
text-decoration-style: solid;
155+
text-decoration-color: #0000EE;
156+
text-underline-offset: 0.2em;
157+
}
158+
.document a:not(.sd-btn):visited {
159+
color: #551A8B;
160+
text-decoration-style: dotted; /* some browsers don't support this*/
161+
text-decoration-color: #551A8B;
162+
}
163+
.document a:not(.sd-btn):focus {
164+
outline: 2px solid #d71ef7;
165+
}
166+
.document a:not(.sd-btn):hover {
167+
font-weight: bold;
168+
}
169+
.document a:not(.sd-btn):active {
170+
text-decoration-line: underline overline;
171+
color: #FF0000;
172+
}
173+
/*
174+
.document a {
175+
color: #0000EE !important;
176+
text-decoration-line: underline !important;
177+
text-decoration-style: solid !important;
178+
text-decoration-color: #0000EE !important;
179+
text-underline-offset: 0.2em !important;
180+
}
181+
.document a:visited {
182+
color: #551A8B !important;
183+
text-decoration-style: dotted !important;
184+
text-decoration-color: #551A8B !important;
185+
}
186+
.document a:focus {
187+
outline: 2px solid #d71ef7 !important;
188+
}
189+
.document a:hover {
190+
font-weight: bold !important;
191+
}
192+
.document a:active {
193+
text-decoration-line: underline overline !important;
194+
color: #FF0000 !important;
195+
}
196+
*/

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
def setup(app):
319319
app.add_css_file("css/ftc-rtd.css")
320320
#app.add_css_file("css/ftc-rtl.css")
321-
app.add_js_file("js/external-links-new-tab.js")
321+
#app.add_js_file("js/external-links-new-tab.js")
322322

323323
# Set Cookie Banner to disabled by default
324324
cookiebanner_enabled = False

0 commit comments

Comments
 (0)