-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Conversation
- increase contrast of text elements - make ui more screen readable
There was a problem hiding this 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. 🎉
What major things are needed to pass the 80 mark? |
There was a problem hiding this 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.
There was a problem hiding this 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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, folks for checking this out, and the great response. This PR still needs some work. |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job
Thanks! |
There was a problem hiding this 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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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` } /> |
There was a problem hiding this comment.
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
Hello. This is for #2244. Audit's score went from ~50 to ~80 with this one :)