-
-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Usually the type There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
className="navigation__search-input" | ||
placeholder="Search documentation…" | ||
onBlur={ this._toggleSearch.bind(this) } /> | ||
<button | ||
aria-label="Open search" | ||
className="navigation__search-icon icon-magnifying-glass" | ||
onClick={ this._toggleSearch.bind(this) } /> | ||
<button | ||
aria-label="Close search" | ||
className="navigation__search-icon icon-cross" | ||
onClick={ this._toggleSearch.bind(this) } /> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import React from 'react'; | ||
|
||
export default props => ( | ||
<img src={ | ||
<img alt="webpack shield" src={ | ||
`https://img.shields.io/${props.content}.svg?label=${props.label}&style=flat-square&maxAge=3600` | ||
} /> | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. |
||
color: #4e7182; | ||
} | ||
|
||
&.warning { | ||
background-color: #fbedb7; | ||
color: #8c8466; | ||
background-color: #fdf5d8; | ||
color: #716b53; | ||
} | ||
|
||
&.todo { | ||
|
@@ -260,7 +260,7 @@ | |
margin: 0 2px; | ||
padding: 2px 6px; | ||
white-space: normal; | ||
background-color: transparentize(getColor(fiord), 0.94); | ||
background-color: transparentize(getColor(fiord), 0.95); | ||
border-radius: 3px; | ||
text-shadow: 0 1px 0 transparentize(getColor(white), 0.4); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,11 @@ module.exports = function() { | |
var id = parsed.id; | ||
|
||
return ( | ||
`<h${level} class="header">` + | ||
`<a class="anchor" href="#${id}" id="${id}"></a>` + | ||
`<span class="text">${text}</span>` + | ||
`<a class="icon-link" href="#${id}"></a>` + | ||
`</h${level}>\n` | ||
`<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 commentThe reason will be displayed to describe this comment to others. Learn more. Hey, guys! I've found an issue, if in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hoping to take a look in a few days. Thanks |
||
</h${level}>\n` | ||
); | ||
}; | ||
|
||
|
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