Wp-graphql: Docs: accessibility audit

Created on 27 Nov 2019  路  12Comments  路  Source: wp-graphql/wp-graphql

I ran a quick lighthouse audit and found some accessibility flags that should be addressed:

  1. Color contrast ratios - random copy throughout, most notably in the pink used in the <code> element and links inside the alert components.
  2. Buttons on the side nav do not an accessible names - looks like the <button> elements have an embedded <h6>

Happy to get a PR going if this is an issue you'd like to get addressed.

Documentation awaiting author response

Most helpful comment

Closed by #1150

Thanks @jacobarriola!

All 12 comments

@jacobarriola I think it would be a great idea to audit the docs for accessibility and start working on fixing issues, such as those you've already pointed out.

Feel free to submit PRs to address.

If you're not sure where to begin, let us know and @TylerBarnes or I can help get you in the right direction.

Thanks!

@jasonbahl was out last week, so I didn't get a chance to start this task. I will be digging in this week.

@jacobarriola awesome! Thanks so much!

@jacobarriola let me know if you want to chat sometime about doing a comprehensive audit and coming up with a list of action items to address.

Thanks!

@jasonbahl for sure. Is the bug scrub a good time? Or should we discuss offline?

BTW, I ran into some issues with the Apollo theme when trying to change the font colors. I could not come up with a way to override or set custom colors.

@jacobarriola I believe I was using theme shadowing to override colors. This file might be the one https://github.com/wp-graphql/wp-graphql/blob/develop/docs/src/gatsby-theme-apollo-core/utils/colors.js

Ok, thanks @TylerBarnes !

I'll take another stab at it. 馃憤

@jasonbahl I ran an accessibility audit in Chrome via Axe extension and found the following issues.

A. Global issues

B. Color contrast ratios:

  • [x] global link color
  • [x] links inside.ant-alert-warning, ant-alert-info
  • [x] code sytnax highlighting (the pink font color)

C. Other recommendations:

  • [x] Add the react-axe plugin to show accessibility issues while developing

I can start working on these issues in the PR if you want me to move forward. Thanks!

@TylerBarnes I noticed that you used a scaled-down seo component (https://github.com/wp-graphql/wp-graphql/blob/develop/docs/src/gatsby-theme-apollo-docs/components/seo.js) instead of the seo component that ships with the gatsby starter (https://github.com/wp-graphql/wp-graphql/blob/develop/docs/src/components/Seo/index.js). Is there are reason you chose to take this approach? Probably makes sense to go with the component that ships with the starter, since it contains a few of the elements that I'm going to address in my accessibility PR.

I'll use the component that ships with the starter and will remove the scaled down version, unless you want me to take a different approach.

Sorry @jacobarriola , I missed this notification! To be honest, I can't remember why, feel free to make any changes that make sense to you. I was working fairly quickly when I ported the old site to the Apollo theme, so there may be a few mistakes in there.

@jasonbahl still working through this - FYI

Closed by #1150

Thanks @jacobarriola!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimurGumarov picture TimurGumarov  路  5Comments

TylerBarnes picture TylerBarnes  路  4Comments

TylerBarnes picture TylerBarnes  路  4Comments

jasonbahl picture jasonbahl  路  4Comments

nikosolihin picture nikosolihin  路  5Comments