Use an AccessibleButton for unpinning from the pane.
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
0f2fd9f698
commit
a01387f7a6
1 changed files with 5 additions and 2 deletions
|
@ -62,8 +62,11 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
let unpinButton = null;
|
let unpinButton = null;
|
||||||
if (this._canUnpin()) {
|
if (this._canUnpin()) {
|
||||||
unpinButton = <img src="img/cancel-red.svg" className="mx_PinnedEventTile_unpinButton" width="8" height="8"
|
unpinButton = (
|
||||||
onClick={this.onUnpinClicked} alt={_t('Unpin Message')} title={_t('Unpin Message')} />;
|
<AccessibleButton onClick={this.onUnpinClicked} className="mx_PinnedEventTile_unpinButton">
|
||||||
|
<img src="img/cancel-red.svg" width="8" height="8" alt={_t('Unpin Message')} title={_t('Unpin Message')} />
|
||||||
|
</AccessibleButton>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue