agarccav / a11y

Notes about Web Accessibility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessibility can be written a11y

a11y (WIP)

About a11y

What is accessibility?

Why should my product be accessible?

  • Responsibility
  • SEO
  • Brand image
  • Performance
  • Legal

Responsibility

SEO

Brand image

Performance (progressive enhancement)

Legal

Dissability Discrimination Act (DDA): https://humanrights.gov.au/our-work/employers/disability-discrimination#:~:text=The%20Disability%20Discrimination%20Act%201992,places%2C%20because%20of%20their%20disability.

The Disability Discrimination Act 1992 (DDA) makes it unlawful to discriminate against a person, in many areas of public life, including employment, education, getting or using services, renting or buying a house or unit, and accessing public places, because of their disability.

The 2020 Sidney Olimpic Games website:

United States web accessibility related laws: https://dynomapper.com/blog/27-accessibility-testing/569-united-states-accessibility-laws

Articles

Pills

Talks

Docs

W3C - WAI

Links

Principles

  1. Perceivable
  2. Operable
  3. Understandable
  4. Robust

Levels

  • A
  • AA
  • AAA

Highlights

MDN

Action inputs

HTML5

  • Use semantic tags as much as possible: <header>, <nav>, <footer> instead of always <div>.

Headings

  • Use headings hierarchically.

Images

  • Use the alt attribute for providing a short description.
  • Do not use the word image or picture in the alt attribute.
  • Descriptions in alt attributes should be 125 characters or less (restriction most screen readers have).
  • Decorating images (CSS background images, sometimes icons...) should not be part of the info, they should not have alt attribute.

Forms

  • Use <label> tags with for attriutes , aria-labelledby...
  • Do not rely only on color to mark required fields.
  • Use <legend> to explain the whole form.

Tables

  • Do not use tables for layout.

Audio

  • Text transcripts

Video

  • Captions
  • If autoplayed, disable it if the user has the prefers-reduce-motion flag enabled.

Tools

Development

Screen magnifiers

Screen readers

Alternate input devices

Braille, etc...

Samples

Worth reading

Miscelanea

Questions to ask yourself...

  • Can left-handed people use your website the same way a right-handed person?
  • Is your web application keyboard accessible?
  • Can we consider not knowing a language a dissability?
  • Would your web application be usable/understanded in black and white?
  • Can we consider novice users (in terms of technology knowledge) are suffering a dissability?
  • Can we consider not having a cutting edge device a dissability?
  • Why government websites do not use React/Angular/Vue/FancyNewJsFramework?

But the most important thing you can do is... put yourself in the place of other people.

About

Notes about Web Accessibility