Use an AccessibleButton for unpinning from the pane.

Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Travis Ralston 2017-09-29 13:32:25 -06:00
parent 0f2fd9f698
commit a01387f7a6

View file

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