From d2ad88978a5e0b4e173bc452e8b7edb4fe864130 Mon Sep 17 00:00:00 2001 From: Jessica Lord Date: Mon, 22 Aug 2016 16:27:33 -0700 Subject: [PATCH] Add accessibility doc --- docs/tutorial/accessibility.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/tutorial/accessibility.md diff --git a/docs/tutorial/accessibility.md b/docs/tutorial/accessibility.md new file mode 100644 index 000000000000..4f7f3d79e07f --- /dev/null +++ b/docs/tutorial/accessibility.md @@ -0,0 +1,33 @@ +# Accessibility + +Making accessible applications is important and we're happy to introduce new functionality to [Devtron](https://electron.atom.io/devtron) and [Spectron](https://electron.atom.io/spectron) that gives developers the opportunity to make their apps better for everyone. + +--- + +Accessibility concerns in Electron applications are similar to those of websites because they're both ultimately HTML. With Electron apps, however, you can't use the online resources for accessibility audits because your app doesn't have a URL to point the auditor to. + +These new features bring those auditing tools to your Electron app. You can choose to add audits to your tests with Spectron or use them within DevTools with Devtron. Read on for a summary of the tools or checkout our [accessibility documentation](http://electron.atom.io/docs/tutorials/accessibility) for more information. + +### Spectron + +In the testing framework Spectron, you can now audit each window and `` tag in your application. For example: + +```javascript +app.client.auditAccessibility().then(function (audit) { + if (audit.failed) { + console.error(audit.message) + } +}) +``` + +You can read more about this feature in [Spectron's documentation](https://github.com/electron/spectron#accessibility-testing). + +### Devtron + +In Devtron there is a new accessibility tab which will allow you to audit a page in your app, sort and filter the results. + +![devtron screenshot](https://cloud.githubusercontent.com/assets/1305617/17156618/9f9bcd72-533f-11e6-880d-389115f40a2a.png) + +Both of these tools are using the [Accessibility Developer Tools](https://github.com/GoogleChrome/accessibility-developer-tools) library built by Google for Chrome. You can learn more about the accessibility audit rules this library uses on that [repository's wiki](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules). + +If you know of other great accessibility tools for Electron, add them to the [accessibility documentation](http://electron.atom.io/docs/tutorials/accessibility) with a pull request.