Skip to content

Commit

Permalink
[added] aria-hidden, by default, to modal container siblings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Aug 17, 2015
1 parent 4f7823e commit edd316a
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 100,259 deletions.
2 changes: 1 addition & 1 deletion examples/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ const Example = React.createClass({
}
});

React.render(<Example/>, document.body);
React.render(<Example/>, document.getElementById('app-container'));
6 changes: 4 additions & 2 deletions examples/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ const ModalExample = React.createClass({
<p>Click to get the full Modal experience!</p>

<Modal
aria-labelledby='modal-label'
style={modalStyle}
backdropStyle={backdropStyle}
show={this.state.showModal}
onHide={this.close}
>
<div style={dialogStyle()}>
<h4>Text in a modal</h4>
<div style={dialogStyle()} >
<h4 id='modal-label'>Text in a modal</h4>
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
<input autoFocus/>
<ModalExample/>
</div>
</Modal>
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<![endif]-->
</head>
<body>
<div id="root">
<div id="app-container">
</div>
</body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.2.0/codemirror.js"></script>
Expand Down
Loading

0 comments on commit edd316a

Please sign in to comment.