Skip to content

Commit edd316a

Browse files
committed
[added] aria-hidden, by default, to modal container siblings.
1 parent 4f7823e commit edd316a

File tree

9 files changed

+142
-100259
lines changed

9 files changed

+142
-100259
lines changed

examples/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ const Example = React.createClass({
136136
}
137137
});
138138

139-
React.render(<Example/>, document.body);
139+
React.render(<Example/>, document.getElementById('app-container'));

examples/Modal.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ const ModalExample = React.createClass({
5252
<p>Click to get the full Modal experience!</p>
5353

5454
<Modal
55+
aria-labelledby='modal-label'
5556
style={modalStyle}
5657
backdropStyle={backdropStyle}
5758
show={this.state.showModal}
5859
onHide={this.close}
5960
>
60-
<div style={dialogStyle()}>
61-
<h4>Text in a modal</h4>
61+
<div style={dialogStyle()} >
62+
<h4 id='modal-label'>Text in a modal</h4>
6263
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
64+
<input autoFocus/>
6365
<ModalExample/>
6466
</div>
6567
</Modal>

examples/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<![endif]-->
1818
</head>
1919
<body>
20-
<div id="root">
20+
<div id="app-container">
2121
</div>
2222
</body>
2323
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.2.0/codemirror.js"></script>

0 commit comments

Comments
 (0)