From a626c10383883e44368847ba65e25437113f85e4 Mon Sep 17 00:00:00 2001 From: Olivier L Applin Date: Fri, 10 Mar 2023 12:53:45 -0500 Subject: [PATCH] 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 --- javadoc-resources/aws-sdk-java-v2-javadoc.css | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/javadoc-resources/aws-sdk-java-v2-javadoc.css b/javadoc-resources/aws-sdk-java-v2-javadoc.css index 8bff1757454e..e9ce938ec978 100644 --- a/javadoc-resources/aws-sdk-java-v2-javadoc.css +++ b/javadoc-resources/aws-sdk-java-v2-javadoc.css @@ -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; +}