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

@ -663,9 +663,9 @@ module.exports = React.createClass({
<div className="mx_UserSettings_section">
<div className="mx_UserSettings_logout mx_UserSettings_button" onClick={this.onLogoutClicked}>
<a tabindex="0" className="mx_UserSettings_logout mx_UserSettings_button" onClick={this.onLogoutClicked}>
Sign out
</div>
</a>
{accountJsx}
</div>