zoltan-dulac / enable-a11y

A list of demos to show how aria roles function with screen readers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enable-a11y

A list of demos to show how aria roles function with screen readers.

Set up

Nvm: https://github.com/nvm-sh/nvm#usage npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm vnu: https://www.npmjs.com/package/vnu-jar lynx php npm install -g less-watch-compiler

MAMP (OSX) or apache: https://www.mamp.info/en/mac/

LAMP (Linux): https://www.linux.com/training-tutorials/easy-lamp-server-installation/

Style Notes

  1. All font-sizes are converted to rems. This is done via less. If you want a font-size of 20px, then you would do the following:
div {
    font-size: (20/@px);
}

The @px variable is set to 16rem, which is also the base font size

  1. If we hide custom components and use CSS to create custom facades for them, we must ensure that these facades will be discoverable to users navigating by touch. For more information about being inclusive of users navigating by touch, please read Inclusively Hiding & Styling Checkboxes and Radio Buttons by Sara Soueidan. https://www.sarasoueidan.com/blog/inclusively-hiding-and-styling-checkboxes-and-radio-buttons/

Tests

sudo npm install axe-cli -g sudo npm install -g chromedriver

If there is a problem with running Chromedriver, because you have an error like "SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version XXX", then you should ensure your chromedriver is installed with the right version.

sudo npm install chromedriver --chromedriver_filepath=/path/to/chromedriver_mac64.zip

You can install the right zip file from here:

https://chromedriver.storage.googleapis.com/index.html

(you may need to change the path variable)

https://stackoverflow.com/questions/71859550/session-not-created-this-version-of-chromedriver-only-supports-chrome-version-9

References

https://www.nvaccess.org/files/nvda/documentation/userGuide.html https://dequeuniversity.com/screenreaders/survival-guide

About

A list of demos to show how aria roles function with screen readers.

License:MIT License


Languages

Language:JavaScript 61.6%Language:PHP 19.7%Language:CSS 10.8%Language:Less 4.7%Language:HTML 1.6%Language:Hack 1.3%Language:Shell 0.3%