Accessibility Assessment for Civil Rights Data Collection Data Submission Resource Center
mpaiva / crdc-dsrc Goto Github PK
View Code? Open in Web Editor NEWAccessibility Assessment for Civil Rights Data Collection Data Submission Resource Center
Accessibility Assessment for Civil Rights Data Collection Data Submission Resource Center
Comment the line for the outline property.
[contentEditable=true]:focus,[href]:focus,[tabindex]:focus,button:not([disabled]):focus,iframe:focus,input:not([disabled]):focus,select:not([disabled]):focus,textarea:not([disabled]):focus {
/* outline:.1rem solid rgba(176,217,222,.4941176471); */
outline-offset: 0
}
.upload-description {
font-size: 14px;
color: #757575;
line-height: 21px
}
<p class="upload-description">Please limit file size to to <strong><25MB</strong>. If your attachment is larger, make a note in the field above and we’ll reach out to you for a zip file</p>
Change the .upload-description
color property from #757575
to #555555
Skip to main is not displaying on keyboard-only navigation.
On most pages, keyboard and screen reader users must navigate a long list of navigation links and other elements before ever arriving at the main content. This can be particularly difficult for users with some forms of motor disabilities.
The idea is to provide a link at the top of the page that, when activated, jumps the user to the beginning of the main content area.
<svg> elements with an img role must have an alternative text
(svg-img-alt)
Home | Civil Rights Data Collection
svg[data-fa-pseudo-element="::after"]
<svg data-fa-pseudo-element="::after" data-prefix="fas" data-icon="arrow-up-right-from-square" class="svg-inline--fa fa-arrow-up-right-from-square" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg="">
Chrome version 123.0.0.0
This accessibility issue was found using Accessibility Insights for Web 2.41.0 (axe-core 4.7.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.
Form elements must have labels
(label)
Home | Civil Rights Data Collection
#extended-search-field-small
<input class="usa-input border-0" id="extended-search-field-small" type="search" name="combine">
Chrome version 123.0.0.0
This accessibility issue was found using Accessibility Insights for Web 2.41.0 (axe-core 4.7.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.
Remove empty heading under Partner Support Center heading:
<h4 class="font-sans-lg is-semibold margin-0">
</h4>
The visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except for the following:
NOTE: Even though this is part of the logo, it is still perceived as a text link by the low-vision user.
Change color links to #008bef
for text that are on dark background
.usa-navbar a:hover {
color: #008bef;
}
add attribute alt="external link"
<svg data-fa-pseudo-element="::after" data-prefix="fas" data-icon="arrow-up-right-from-square" class="svg-inline--fa fa-arrow-up-right-from-square" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"></path></svg>
When the keyboard focus indicator is visible, an area of the focus indicator meets all the following:
Comment the following CSS line:
/* outline: .1rem solid rgba(176, 217, 222, .4941176471);
The result should be as the image below:
Navigation for screen-reader and keyboard only users often depends on focus order. Since disabled fields are removed from the focus order, they can't be navigated to using keyboard shortcuts, which are a primary mode of navigation for many AT users.
Here is how to make text inputs read-only, ensuring users can't change the content but still allowing the inputs to be recognized by assistive technologies.
readonly
attribute in the form element – The Boolean readonly attribute, when present, makes the element not mutable, meaning the user can not edit the control.aria-readonly="true"
– Inform the assistive technology about the "read-only" state applied.class="usa-input bg-base-lightest"
to make the read-only input different from the editable state.<label for="edit-city" class="usa-label control-label">City (Read only)</label>
<input
autocomplete=""
data-drupal-selector="edit-city"
type="text"
id="edit-city"
name="city"
value=""
size="60"
maxlength="30"
placeholder="City"
class="form-text usa-input bg-base-lightest"
aria-readonly="true"
readonly >
The function of a heading is to label a section of content. Headings should not be used as a convenient way to style other text.
Assistive technologies use markup tags to help users navigate pages and find content more quickly. Screen readers recognize coded headings, and can announce the heading along with its level, or provide another audible cue like a beep. Other assistive technologies can change the visual display of a page, using properly coded headings to display an outline or alternate view.
For more information about how to make headings accessible, see Techniques for WCAG 2.0 - H42: Using h1 - h6 to identify headings.
The following are my recommendations for assigning proper heading structure to the templates:
Reference:
https://www.w3.org/WAI/WCAG21/Understanding/label-in-name.html
There's no need to use aria-label and title in the links. Ideally, you should wrap the entire logo (emblem + text) with the a single link, instead of three links taking to the same place.
Here's my recommendation, if you can implement it in Drupal:
<div class="usa-logo__text has-flex">
<a class="is-clickable margin-right-05" href="/">
<div class="ed-seal-container margin-right-05">
<img src="/themes/custom/civil_rights/ed-seal.svg" width="57" class="logo-img margin-right-05" alt="U.S. Department of Education Seal">
</div>
<div class="has-flex flex-column flex-justify-center">
<div class="is-clickable font-sans-3xs text-base-lightest text-uppercase is-hidden-touch text-normal">
Civil Rights Data Collection
</div>
<div class="margin-bottom-1 font-sans-lg is-hidden-touch text-base-lightest text-bold">
Data Submission Resource Center
</div>
</div>
</a>
</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.