Skip to content

Commit

Permalink
fix(modal): Make x to close react modals accessible
Browse files Browse the repository at this point in the history
By hiding it for screen readers
[Finishes #100277796]
  • Loading branch information
d-reinhold committed Aug 20, 2015
1 parent 08de4ff commit 48e41dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pivotal-ui-react/modals/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var Modal = React.createClass({
<div {...mergeProps(this.props, {className: 'modal-content'})}>
<div className="modal-header">
<button type="button" className="close" onClick={this.close}>
<span>×</span>
<span aria-hidden="true">&times</span>
<span className="sr-only">Close</span>
</button>
<DefaultH4 className="modal-title" id="modalTitle">{this.props.title}</DefaultH4>
Expand Down

0 comments on commit 48e41dd

Please sign in to comment.