mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Some fixes to the Accessibility guide (#2047)
Added missing code indentation; removed an extra "an" determiner in a sentence.
This commit is contained in:
@@ -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 };
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user