Skip to content

Commit

Permalink
Fix accessibility issues in SDK javadoc: (#3823)
Browse files Browse the repository at this point in the history
* Fix accessibility issues in SDK javadoc:
- make links hover color have more contrast
- prevent the need to scroll horizontally on small width
  • Loading branch information
L-Applin authored Mar 10, 2023
1 parent 8164259 commit a626c10
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions javadoc-resources/aws-sdk-java-v2-javadoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,67 @@
* permissions and limitations under the License.
*/

/*
Accessibility: This css file modify the basic javadoc css to
conform to accessibility audit issues.
*/

/* make links have more contrast and not rely only on color */
a:link {
font-weight: bold;
}

a[href]:hover, a[href]:focus {
color: #a85e1e;
}

.top-nav a[href]:hover, a[href]:focus {
color: white;
text-decoration: underline;
}

/* ensure no horizontal scrolling is needed with small horizontal width */
@media (max-width: 800px) {
pre, code {
word-break: break-all;
word-wrap: break-word;
white-space: break-spaces;
}

.parameters {
white-space: break-spaces !important;
}

.sub-title {
word-break: break-all;
}

.member-signature {
word-break: break-all;
}

.block {
word-wrap: break-word;
}

.exceptions {
white-space: break-spaces !important;
}

.type-signature {
word-wrap: break-word;
}

.inherited-list {
word-wrap: break-word;
}

.details {
word-wrap: break-word;
}
}

/* fixes footer weird behavior */
footer {
margin-left: 2vw;
}

0 comments on commit a626c10

Please sign in to comment.