Proper accessible buttons
This commit is contained in:
parent
041196d729
commit
959163f2ef
10 changed files with 51 additions and 39 deletions
|
@ -19,6 +19,7 @@ limitations under the License.
|
|||
var React = require('react');
|
||||
var sdk = require('../../../index');
|
||||
var dis = require("../../../dispatcher");
|
||||
var AccessibleButton = require('../elements/AccessibleButton');
|
||||
|
||||
/*
|
||||
* A stripped-down room header used for things like the user settings
|
||||
|
@ -44,7 +45,7 @@ module.exports = React.createClass({
|
|||
|
||||
var cancelButton;
|
||||
if (this.props.onCancelClick) {
|
||||
cancelButton = <button className="mx_RoomHeader_cancelButton" onClick={this.props.onCancelClick}><img src="img/cancel.svg" width="18" height="18" alt="Cancel"/> </button>
|
||||
cancelButton = <AccessibleButton className="mx_RoomHeader_cancelButton" onClick={this.props.onCancelClick}><img src="img/cancel.svg" width="18" height="18" alt="Cancel"/> </AccessibleButton>
|
||||
}
|
||||
|
||||
var showRhsButton;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue