Use AccessibleTooltipButton

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-08-12 08:14:02 +02:00
parent 429befac62
commit 71008c9e87
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 4 additions and 2 deletions

View File

@ -502,10 +502,12 @@ export default class CallView extends React.Component<IProps, IState> {
)
) {
sidebarButton = (
<AccessibleButton
<AccessibleTooltipButton
className={sidebarButtonClasses}
onClick={this.onToggleSidebar}
aria-label={this.state.sidebarShown ? _t("Hide sidebar") : _t("Show sidebar")}
title={this.state.sidebarShown ? _t("Hide sidebar") : _t("Show sidebar")}
alignment={Alignment.Top}
yOffset={tooltipYOffset}
/>
);
}