File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ const customStyles = {
5050 }
5151};
5252
53+ // Make sure to bind modal to your appElement (http://reactcommunity.org/react-modal/accessibility/)
54+ Modal .setAppElement (' #yourAppElement' )
55+
5356class App extends React .Component {
5457 constructor () {
5558 super ();
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ If you are already applying the `aria-hidden` attribute to your app content
2929through other means, you can pass the ` ariaHideApp={false} ` prop to your modal
3030to avoid getting a warning that your app element is not specified.
3131
32+ Using ` Modal.setAppElement ` will not embed react-modal into your react app as
33+ a descendent component. It will just help boost up the app accessiblity.
34+
3235### Keyboard navigation {#keyboard}
3336
3437When the modal is opened, it restricts keyboard navigation using the tab key to
You can’t perform that action at this time.
0 commit comments