Skip to content

Latest commit

 

History

History
224 lines (152 loc) · 12.9 KB

File metadata and controls

224 lines (152 loc) · 12.9 KB

Designer Checklist

This checklist summarizes success criteria from Web Content Accessibility Guidelines (WCAG) 2.2 (Level A and AA, in addition to best practices identified by GitHub), and categorizes it based on key aspects of design. Where applicable, each section also contains suggested exercises, suggested annotations for use, and tools.

Use it side by side as you develop products to make sure you’ve accounted for accessibility best practices! The legend describes checkbox states that you can use for the status of the checkboxes below.

Further reading:


1. Color

  • Meaning is not conveyed with just color
    • Elements conveying status and severity often fail this guideline. To remedy this, try adding a label, a text treatment such as bold, or a shape.
  • Color contrast is observed
    • Functional text has a 4.5:1 contrast ratio (or higher) with its background.
    • Functional graphics (such as icon buttons, status indicators, and control identification) have a 3:1 contrast ratio (or higher) with their background.

Exercises

  • Use a color contrast checker and vision simulator to check your work.
  • Remove the element in question from the design. If the design makes sense and is usable without it, it does not need to hit contrast.

Suggested Tools


2. Hierarchy

  • Each page has one H1
  • Headings are annotated and used in a consecutive order.
    • Heading levels should be sequential. Don’t skip levels (i.e. <h2> to <h4>)
    • Nested headings are encouraged and natural as content goes from more general to specific.
    • In certain cases, headings may be visually hidden. Levels and visual styling may deviate from one another (i.e. giving an <h2> the same visual treatment as an <h3>). Please consult the a11y design team in this case.
  • Landmarks are identified and annotated
    • Page has only one main section and one footer section.
    • Leave out landmark identifiers when giving a unique name. e.g., use "Repository" instead of "Repository navigation". This prevents redundancy in screen readers that already read out the navigation landmark.

Exercises

Annotations that can help

  • Landmark
  • Heading
    • Semantic heading
    • Visually hidden heading
    • CSS only styling

Annotations helpful with hierarchy: nine different landmarks as well as six visible heading levels, a visually hidden heading, and css-only heading style

Suggested Tools


3. Content

  • Break your content into small sections
    • Avoid long passages or lines of text, and strive for one overall point per paragraph. Recommended 60-70 characters, but up to 80 is allowed.
  • Directionality is not used in content
    • Avoid content like “see below” or “to the left/right” and instead rely on 
“first/last” and “previous/next”.
  • Content is clear to read and accessible to an 8th grade education level.
    • Make sure to explains abbreviations the first time you use them. Avoid overly complex language like complex metaphors, regional phrases, and slang.
  • Truncation only used when unavoidable
    • This is generally an anti-pattern for accessibility.
  • Metadata like page titles and applicable language codes are annotated
    • Define the document's title that is shown in a browser's title bar or tab. If supporting localization, declare the language of the page (or parts of it).

Exercises

  • Read the copy out loud yourself, or by utilizing Immersive Reader or Text to Speech (see the following links).

Annotations that can help

Annotations helpful with content: page title and language code

Suggested Tools


4. Images, graphics, and other media

  • Alt-text for functional images and icon buttons without labels are annotated:
    • Be descriptive in your alt-text; communicate the meaning for the image being on the page.
  • Important text is not located inside an image
    • Instead, it should live outside the image so a greater audience can access it and key functionality like copying text is possible.
  • Alternative media is included where applicable
    • Potential content includes captions, audio descriptions, transcripts, etc.
  • Automatically moving or scrolling content can be paused, stopped, and played
    • Allowing users to control moving content prevents disorientation and motion sickness, which helps those with cognitive, reading, or vestibular disorders.

Annotations that can help

Annotation stamp for image, decorative image, video, and audio in various shades of bold green.

Exercises

Resources


5. Interactivity

  • Disabled buttons are not used in your designs
    • Disabled buttons may prevent users from completing tasks or understanding form feedback. An inactive button is a better alternative.
  • Links and buttons are appropriately used
    • Remember that links change navigation, and buttons initiate actions.
  • Buttons and links have unique name
    • Multiple “Read More” and “Click Here” links are not helpful to screen reader users. Use unique descriptive names. Only if essential, annotate a longer accessible name for assistive technology.
  • Ensure all hit areas are at least 24x24 CSS pixels
    • This benefits mobile users using touch gestures and motor-impaired mouse users. There are a few exceptions to this rule under SC 2.5.8.

Annotations that can help

Annotation stamp for link and button, which are dark blue and lime in color.

Resources


6. Forms

  • Inputs have clear labels and instructions
    • Visible labels allow users to identify what is required inside of a form field, and allows voice recognition users to activate the control.
  • Avoid input placeholders
    • Users should be able to understand what to do with an input with no placeholder text present.
  • Input-based and form-based error states included in design
    • Errors for inputs should be next to the field with the error, while form-based errors should surface at the top or bottom of a form, ideally with line items describing each error and a link directly to the field.
  • The same info is not asked for multiple times in the same session
    • Auto-populate information or use a checkbox (i.e. “Same as shipping address”) so users don’t have to keep typing the same information.

Annotations that can help

Annotation stamp for basic html form elements including a form landmark, input, label, checkbox, radio, textarea, select, legend, fieldset, and hint. All have an indigo hue while the form landmark is pink.

Resources


7. Layout

  • Workflow can be completed regardless of screen size or orientation
    • Does your design work as intended for small screens as well as large? Can it change from landscape to portrait orientation without losing key details?
  • Resize and reflow considered
    • If a user zooms in or out (50-400%) is the intention still the same? Is any content overlapped or obscured?
  • Scrolling in two directions is not required to read content
    • Multiple scrolling directions makes it difficult for some users to traverse a page and has the potential for users to miss content. There are some exceptions to the rule; please consult the a11y design team if needed.
  • Help options are available in the same location on all web pages
    • Note that help options are not required, but keep them in the same place across pages for consistency if you do.

Annotations that can help

Annotation stamps showing semantic names for and all types of list and table elements. Lists are a dark indigo color while Table elements are maroon. All have different icons for each type of element.


8. Keyboard

  • Every interaction with a mouse can be also accessed with a keyboard
    • This includes content on hover. Do not place interactive elements or important information in hover content.
  • A focus border is visible on every interactive element
  • Focus order is annotated and matches the intention of the design
    • Avoid focus that jumps back and forth across the page to reach items visually out of order.

Annotations that can help

Annotations that can help with keyboard: focus or tab order, arrow stop, and keyboard shortcut


Additional Resources

Here are some additional checklists that can be tailored to specific functions and job roles (other than just design and engineering):