|
| 1 | +<div> |
| 2 | + <h1 align="center">✨ Testing Accessibility with Marcy Sutton ✨</h1> |
| 3 | + |
| 4 | + <a href="https://testingaccessibility.com"> |
| 5 | + <img |
| 6 | + alt="Testing Accessibility: Semantic HTML & ARIA by Marcy Sutton" |
| 7 | + src="./ta-promo-image.png" |
| 8 | + /> |
| 9 | + </a> |
| 10 | + |
| 11 | + <h2 align="center"> |
| 12 | + Building accessible web applications with HTML, CSS, JavaScript, and React |
| 13 | + </h2> |
| 14 | + <p> |
| 15 | + Ensuring your frontend code is accessible requires consistent development effort and testing of inclusive markup and scripted interactions. In this workshop we’ll build an |
| 16 | + accessible web application using widely supported and proven tools and |
| 17 | + techniques. We’ll start with plumbing accessibility information with semantic HTML and |
| 18 | + ARIA before moving on to the tricky parts of building and testing JavaScript-heavy components in later workshops. |
| 19 | + </p> |
| 20 | +</div> |
| 21 | + |
| 22 | +<hr /> |
| 23 | + |
| 24 | +<!-- prettier-ignore-start --> |
| 25 | +[![GPL 3.0 License][license-badge]][license] |
| 26 | +[![Code of Conduct][coc-badge]][coc] |
| 27 | +<!-- prettier-ignore-end --> |
| 28 | + |
| 29 | +## Prerequisites |
| 30 | + |
| 31 | +- The workshop is intended for intermediate to advanced web developers. Beginners are also |
| 32 | +welcome to follow along. Knowledge of the Web Platform will be necessary (HTML, CSS, and |
| 33 | +JavaScript). |
| 34 | +- In later workshops, the development exercises will become increasingly more advanced. Experience with JavaScript, React, and Git will be necessary. |
| 35 | + |
| 36 | +## Options for working with this material |
| 37 | + |
| 38 | +- Browser-based setup with GitPod |
| 39 | + - Note: GitPod may have accessibility issues |
| 40 | +- Download a zip file for local setup |
| 41 | +- Clone this Git repo for local setup (see instructions below) |
| 42 | + |
| 43 | +## System Requirements for Local Setup |
| 44 | + |
| 45 | +- [git][git] v2.13 or greater |
| 46 | +- [NodeJS][node] `12 || 14 || 15 || 16` |
| 47 | +- [yarn][yarn] v1 |
| 48 | + |
| 49 | +All of these must be available in your `PATH`. To verify things are set up |
| 50 | +properly, you can run this: |
| 51 | + |
| 52 | +```shell |
| 53 | +git --version |
| 54 | +node --version |
| 55 | +yarn --version |
| 56 | +``` |
| 57 | + |
| 58 | +If you have trouble with any of these, learn more about the PATH environment |
| 59 | +variable and how to fix it here for [windows][win-path] or |
| 60 | +[mac/linux][mac-path]. |
| 61 | + |
| 62 | +## Setup |
| 63 | + |
| 64 | +> If you want to commit and push your work as you go, you’ll want to |
| 65 | +> [fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) |
| 66 | +> first and then clone your fork rather than this repo directly. |
| 67 | +> Be sure to fetch the latest code on the day of the workshop by [syncing your fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork). |
| 68 | +
|
| 69 | +After you’ve made sure to have the pre-requisites installed, you |
| 70 | +should be able to run a few commands to get set up: |
| 71 | + |
| 72 | +``` |
| 73 | +git clone https://github.com/testing-accessibility/workshop-semantics-html-aria.git |
| 74 | +cd workshop-semantics-html-aria |
| 75 | +yarn |
| 76 | +``` |
| 77 | + |
| 78 | +There may be periodic changes to this repo. To update your local build, run: |
| 79 | + |
| 80 | +``` |
| 81 | +git pull |
| 82 | +``` |
| 83 | + |
| 84 | +Note: if you have local changes, you'll need to commit them to a branch. Here's |
| 85 | +some extra help on using Git: [https://www.freecodecamp.org/news/git-pull-explained/] |
| 86 | + |
| 87 | +If you get any errors when building the site, please read through them and see if |
| 88 | +you can find out what the problem is. If you can’t work it out on your own then |
| 89 | +please [file an issue][issue] and provide _all_ the output from the commands you ran |
| 90 | +(even if it’s a lot). |
| 91 | + |
| 92 | +## Running the project locally |
| 93 | + |
| 94 | +This repo contains various workshop files and a React web application. To get the app up and running (and really see if it worked) with [Parcel](https://parceljs.org), run this command from the project’s root folder: |
| 95 | + |
| 96 | +```shell |
| 97 | +yarn start |
| 98 | +``` |
| 99 | + |
| 100 | +This should start the site for your browser at the address indicated in your Terminal: |
| 101 | +`http://localhost:1234` |
| 102 | + |
| 103 | +## Working through the exercises |
| 104 | + |
| 105 | +In this workshop, we'll dig into specifics of an important aspect of accessibility: semantics and ARIA in HTML markup. The accessibility information plumbed through your pages and applications with semantic code is essential for users of assistive technology. It assists other use cases as well, such as voice navigation and SEO. |
| 106 | + |
| 107 | +Here, we will primarily work on site listings and associated components. The local URL is: |
| 108 | +`http://localhost:1234` |
| 109 | + |
| 110 | +- [exercise1-headings-landmarks](https://github.com/testing-accessibility/workshop-semantics-html-aria/tree/main/exercise1-headings-landmarks) |
| 111 | +- [exercise2-what-is-aria](https://github.com/testing-accessibility/workshop-semantics-html-aria/tree/main/exercise2-what-is-aria) |
| 112 | +- [exercise3-accessible-names](https://github.com/testing-accessibility/workshop-semantics-html-aria/tree/main/exercise3-accessible-names) |
| 113 | +- [exercise4-programmatic-a11y-info](https://github.com/testing-accessibility/workshop-semantics-html-aria/tree/main/exercise4-programmatic-a11y-info) |
| 114 | +- [exercise5-what-is-aom](https://github.com/testing-accessibility/workshop-semantics-html-aria/tree/main/exercise5-what-is-aom) |
| 115 | + |
| 116 | +This structure will allow you to iterate on working files with separate directories for the example sections. |
| 117 | + |
| 118 | +The purpose of an exercise is **not** for you to work through all the material. |
| 119 | +It’s intended to get your brain thinking about the right questions to ask as |
| 120 | +we go through the material together. |
| 121 | + |
| 122 | +Contributions of any kind are welcome! |
| 123 | + |
| 124 | +<!-- prettier-ignore-start --> |
| 125 | +<!--> |
| 126 | +[yarn]: https://classic.yarnpkg.com/lang/en/ |
| 127 | +[node]: https://nodejs.org |
| 128 | +[git]: https://git-scm.com/ |
| 129 | +[license-badge]: https://img.shields.io/badge/license-GPL%203.0%20License-blue.svg?style=flat-square |
| 130 | +[license]: https://github.com/marcysutton/testing-accessibility-demos/blob/main/LICENSE |
| 131 | +[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square |
| 132 | +[coc]: https://github.com/marcysutton/testing-accessibility-demos/blob/main/CODE_OF_CONDUCT.md |
| 133 | +[win-path]: https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/ |
| 134 | +[mac-path]: http://stackoverflow.com/a/24322978/971592 |
| 135 | +[issue]: https://github.com/marcysutton/testing-accessibility-demos/issues/new--> |
| 136 | +<!-- prettier-ignore-end --> |
0 commit comments