-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Accessibility guide #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Accessibility guide #1002
Changes from 1 commit
c574450
eec8fba
dfffcd6
5f1f615
13289cf
18e2fd8
ed60f86
89f8ed8
1c6200f
08358ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Accessibility | ||
type: guide | ||
--- | ||
|
||
# Accessibility | ||
|
||
An accessible website is a website that can be used be anyone—be that a person with a disability, someone on a slow connection, or someone whose mouse has ran out of battery. It's easy to make a website assuming that all our users are using a keyboard, mouse, and screen, and have a way of hearing the sound produced by our websites, but that often isn't true: millions of people around the world have disabilities and are unable to use all the functionality of a computer in the same way most developers do. While they often have tooling to help them, they're relying on the people building the websites to make them accessible and work well with the tooling. | ||
|
||
The World Health Organization estimate that 15% of the world's population have some form of disability, 2-4% of them severely so. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...population have some form of disability, Should be |
||
|
||
In addition to helping users with disabilities, making a website accessible will help the rest of your users, too. Adding subtitles to a video will help both your deaf and hard-of-hearing users, and your users who are in a loud environment and can't hear their phone. Similarly, making sure your text isn't too low contrast will help both your low-vision users, and your users who are trying to use their phone in bright sunlight. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...will help both your low-vision users, and your users Remove the comma. |
||
|
||
The W3C have published a list of guidelines for making websites accessible, called the [Web Content Accessibility Guidelines (WCAG)][wcag 2.0]. It's worth a read, but you might find it a a bit dry, and it's out of date - it was written before Single Page Applications and libraries like Vue existed so there are no specific guidelines for that. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The W3C have published Again, Also, find it a a bit dry, and Remove one |
||
|
||
There are a huge range of disabilities, which can be divided roughly into four categories: | ||
|
||
- *Visual impairments*, such as being blind, having low vision, or colourblindness. These people may make text bigger, increase the contrast of their screen, or use a screen reader or braille display. | ||
- *Motor impairments*—a huge category of impairments—can include people who browse using only the keyboard, use voice recognition software, or use [switch technology]. | ||
- *Hearing impairments*, from being partially deaf to profoundly deaf. | ||
- *Cognitive impairments*, such as dyslexia, intellectual disabilities, or ADHD (very much not a complete list). | ||
|
||
There's a lot of technology that people with disabilities utilise to use their computers, but often that technology isn't useful unless we take measures to ensure it works. For example, low vision users, blind users and users with dyslexia may use screen readers to read out what's on the screen—but if there are images on the page the screen reader won't know what to read out unless we tell it using alt text. This guide will outline a number of common problems people with disabilities have when browsing websites and explain what we can do to help. | ||
|
||
- standard a11y stuff | ||
- Content that relies on the mouse (menu bars, dropdowns, controls on mouseover) | ||
- Extended input elements | ||
- Dynamic content (notifications, error messages) and aria-live | ||
- Announcing page navigation | ||
|
||
|
||
## Testing accessibility | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about add a section to introduce some a11y tools or component libs with good a11y support in Vue ecosystem. I heard some of them:
And I personally just started a project called Vue A11y Utils to try supplying some a11y utilities for Vue. It's still wip, not finished. 😜 Thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest only including libraries that pass an accessibility review. For instance, I wouldn't include Element in this list as a quick spot check some of the Element components and there is still a bit of work to do. The same spot check on VEUI reveals that best practices are mostly being followed, but I found VEUI still needs some help with contrast and focus indicators. |
||
|
||
|
||
|
||
[wcag 2.0]: https://www.w3.org/TR/WCAG20/ | ||
[switch technology]: https://en.wikipedia.org/wiki/Switch_access |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..whose mouse has ran out of battery.
Should be
run
notran
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also:
... a website that can be used be anyone ... => ... used by anyone...
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"with limited hardware capabilities" or "whose hardware is old or broken" is broader than "whose mouse has ran out of battery"