Skip to content

Commit a626c10

Browse files
authored
Fix accessibility issues in SDK javadoc: (#3823)
* Fix accessibility issues in SDK javadoc: - make links hover color have more contrast - prevent the need to scroll horizontally on small width
1 parent 8164259 commit a626c10

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

javadoc-resources/aws-sdk-java-v2-javadoc.css

+61
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,67 @@
1313
* permissions and limitations under the License.
1414
*/
1515

16+
/*
17+
Accessibility: This css file modify the basic javadoc css to
18+
conform to accessibility audit issues.
19+
*/
20+
21+
/* make links have more contrast and not rely only on color */
1622
a:link {
1723
font-weight: bold;
1824
}
25+
26+
a[href]:hover, a[href]:focus {
27+
color: #a85e1e;
28+
}
29+
30+
.top-nav a[href]:hover, a[href]:focus {
31+
color: white;
32+
text-decoration: underline;
33+
}
34+
35+
/* ensure no horizontal scrolling is needed with small horizontal width */
36+
@media (max-width: 800px) {
37+
pre, code {
38+
word-break: break-all;
39+
word-wrap: break-word;
40+
white-space: break-spaces;
41+
}
42+
43+
.parameters {
44+
white-space: break-spaces !important;
45+
}
46+
47+
.sub-title {
48+
word-break: break-all;
49+
}
50+
51+
.member-signature {
52+
word-break: break-all;
53+
}
54+
55+
.block {
56+
word-wrap: break-word;
57+
}
58+
59+
.exceptions {
60+
white-space: break-spaces !important;
61+
}
62+
63+
.type-signature {
64+
word-wrap: break-word;
65+
}
66+
67+
.inherited-list {
68+
word-wrap: break-word;
69+
}
70+
71+
.details {
72+
word-wrap: break-word;
73+
}
74+
}
75+
76+
/* fixes footer weird behavior */
77+
footer {
78+
margin-left: 2vw;
79+
}

0 commit comments

Comments
 (0)