Accessibility audits are fun! 
Tags: a11y, howto, devtools
Published: 2017-06-08 17:29:55

---
title: Accessibility audits are fun! 
published: true
description: My takeaways from running an accessibility audit, and how to run one yourself.
tags: a11y, how-to, devtools
---

At conferences, I always gravitate towards accessibility talks. I think the subject is super interesting and I always come out wanting to be an advocate. Unfortunately, these feelings of inspiration have always been fleeting and I've never actually taken any action. Or remembered much. 

#UNTIL..

Google I/O. While I'm sure they mentioned the updated audit tab in Chrome DevTools during the developer keynote...

{% tweet 849315017526792193%}

...I didn't learn about it until I walked into their accessibility tent. There, I met [Dirk](https://twitter.com/ginader), a ux engineer, and I asked him what his part of the tent was 'all about.' This is where I learned about the new `audit` tab that quickly told me all the things that make [dev.to](https://dev.to) **not** accessible. Dirk was incredibly patient and did an entire walkthrough with me. Below were some of my takeaways from auditing dev.to:

###Why the audit tab is wonderful
- It's fast.
- You can run an audit without downloading any extensions or turning to the command line. 
- The report tells you exactly where your elements are failing, **and why** it's important for them to pass.
- It has me coming back for more. I want to see my score increase as I make changes to the site. 

###Things I Learned
- `alt` attributes are crucial. Visually-impaired users rely on screen readers to navigate the web. If your image contains important info, the screen reader won't be able to determine the context unless you add an alt-tag. 
- If you don't have an alt tag, it'll read the name of the image. How many images do you have titled `17942/28acb955-1ad6-4290-9404-3bb3c360ecb7.jpg`? Yeah, probably a lot. And now, your user needs to hear that string dictated at them. 
- For decorative images (images that don't add informational content), you can leave the attribute empty, i.e. `alt=""`. 
- Color contrast: I learned that our mint green buttons with white text didn't offer enough contrast, which makes it difficult for users to read. At [Saron Yitbarek's talk at Signal](https://www.youtube.com/watch?time_continue=569&v=_msZGXHLb-o), I learned that 1 in 12 men are colorblind. That's a lot of people. 
- If you're failing the color contrast test, try using [this](http://leaverou.github.io/contrast-ratio/#) tool that lets you play around with your colors to find your closest options. 

##How To Audit Your Site
1. If you don't have it already, [download Chrome Canary](https://www.google.com/chrome/browser/canary.html), the chrome browser for devs and early adopters. The audit tab should be coming to all chrome browsers soon, but they're still working out some kinks.
2. Once you're in Canary, visit your site, and go into devtools.
3. Navigate to the `audit` tab.
4. Choose accessibility, and click audit!

You'll see something like this:
<img src="https://thepracticaldev.s3.amazonaws.com/i/t29ympsg5csp3bgs2mch.png" alt="screenshot-of-devto-audit-with-devtools">

And you can click into the report to see which elements are failing:
<img src="https://thepracticaldev.s3.amazonaws.com/i/2mo4i436lxtfyj1b9r84.png" alt="example-list-of-failing-elements-on-devto">

##Going Further
If the audit doesn't inspire you to take action, try navigating your site with a screen reader. On macs, this would be `system preferences -> accessibility -> enable voiceover`. You'll quickly learn what the user experience is like for some of your users.

I also learned about screen magnifiers today and recommend everyone to check out Frederik Creemer's post, [How to Make Your Website Accessible to People Who Use a Screen Magnifier](https://dev.to/_bigblind/how-to-make-your-website-accessible-to-people-who-use-a-screen-magnifier).

##Additional Resources
- [Google's overview](https://developers.google.com/web/fundamentals/accessibility/) of accessibility for devs 
- [Udacity's Course for Web Accessibility](https://www.udacity.com/course/web-accessibility--ud891)


##Thanks for reading 
I hope I've encouraged you to run an accessibility audit and I'm happy to share that we've created issues to address the tests that failed on dev.to ðŸ˜Š