1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Turned buttons from divs to links. Makes it possible for screen readers and hotkeys to recognize the buttons.

This commit is contained in:
Jani Mustonen
2017-01-06 01:37:27 +02:00
parent 07b3c58c61
commit ad072cc179
6 changed files with 19 additions and 19 deletions

View File

@@ -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;