Skip to content

fix(accessibility) Improve accessibility of the site #2274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 22, 2018

Conversation

tryzniak
Copy link
Contributor

Hello. This is for #2244. Audit's score went from ~50 to ~80 with this one :)

  • increase contrast of text elements
  • make ui more screen readable

- increase contrast of text elements
- make ui more screen readable
Copy link
Member

@dhruvdutt dhruvdutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing. Glad that somebody is taking care of these things. 🎉

@dhruvdutt
Copy link
Member

What major things are needed to pass the 80 mark?

Copy link
Member

@Legends Legends left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test the theme changes, everything else looks good.

Copy link
Member

@jeremenichelli jeremenichelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments, PR looks good :)

@@ -39,14 +39,17 @@ export default class Navigation extends React.Component {

<div className="navigation__search">
<input
type="text"
aria-label="Search documentation"
type="search"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually the type search adds some extra styles or autocompletes that might not go well with the styles we have now, have you tested this change in different browsers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow. Spotted some strange artifact on Safari 11. Thank you. Will figure out how to avoid it.

@@ -99,13 +99,13 @@
}

&.tip {
background-color: #DCF2FD;
color: #618ca0;
background-color: #eaf8ff;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you post a screen shot with this changes? For reviewers is hard sometimes to infer the impact of the change and checking out and building the branch is a little time consuming, thanks :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots with my changes. The changes are very subtle though :)
localhost_3000_ 1
localhost_3000_concepts_

@tryzniak
Copy link
Contributor Author

Thank you, folks for checking this out, and the great response. This PR still needs some work.

@tryzniak
Copy link
Contributor Author

Oh and I almost forgot. To make it pass the score 80 the document need <title></title> to be set, and the search input needs a label.

Copy link
Member

@EugeneHlushko EugeneHlushko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job

@montogeek montogeek merged commit d703812 into webpack:master Jun 22, 2018
@montogeek
Copy link
Member

Thanks!

Copy link
Contributor

@neonick neonick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, guys. I found some issue with links.

`<h${level} class="header">
<a class="anchor" aria-hidden="true" href="#${id}" id="${id}"></a>
<span class="text">${text}</span>
<a aria-label="${text}" class="icon-link" href="#${id}"></a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, guys! I've found an issue, if in ${text} will be a <a>-link, it breaks markup.
For example here at the bottom, check License.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoping to take a look in a few days. Thanks

@@ -14,7 +14,7 @@ export default ({contributors}) => {
<a key={ contributor }
className="contributor"
href={ `https://github.com/${contributor}` }>
<img src={ `https://github.com/${contributor}.png?size=90` } />
<img alt={ contributor } src={ `https://github.com/${contributor}.png?size=90` } />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there is a span just after this image, which already ready out the contributor name, I'd prefer to set role="presentation" here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants