Turned buttons from divs to links. Makes it possible for screen readers and hotkeys to recognize the buttons.
This commit is contained in:
parent
07b3c58c61
commit
ad072cc179
6 changed files with 19 additions and 19 deletions
|
@ -44,7 +44,7 @@ module.exports = React.createClass({
|
|||
|
||||
var cancelButton;
|
||||
if (this.props.onCancelClick) {
|
||||
cancelButton = <div className="mx_RoomHeader_cancelButton" onClick={this.props.onCancelClick}><img src="img/cancel.svg" width="18" height="18" alt="Cancel"/> </div>
|
||||
cancelButton = <a tabindex="0" className="mx_RoomHeader_cancelButton" onClick={this.props.onCancelClick}><img src="img/cancel.svg" width="18" height="18" alt="Cancel"/> </a>
|
||||
}
|
||||
|
||||
var showRhsButton;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue