Skip to content

Some fixes to the Accessibility guide #2047

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 1 commit into from
Jun 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/docs/accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ This is typically implemented by attaching a `click` event to the `window` objec

```javascript{12-14,26-30}
class OuterClickExample extends React.Component {
constructor(props) {
constructor(props) {
super(props);

this.state = { isOpen: false };
Expand Down Expand Up @@ -299,7 +299,7 @@ This may work fine for users with pointer devices, such as a mouse, but operatin

<img src="../images/docs/outerclick-with-keyboard.gif" alt="A toggle button opening a popover list implemented with the click outside pattern and operated with the keyboard showing the popover not being closed on blur and it obscuring other screen elements." />

The same functionality can be achieved by using an appropriate event handlers instead, such as `onBlur` and `onFocus`:
The same functionality can be achieved by using appropriate event handlers instead, such as `onBlur` and `onFocus`:

```javascript{19-29,31-34,37-38,40-41}
class BlurExample extends React.Component {
Expand Down