You've already forked matrix-react-sdk
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user