mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Use AccessibleTooltipButton
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
09ffad96ff
commit
29d20b8125
1 changed files with 4 additions and 3 deletions
|
@ -21,7 +21,6 @@ import classNames from "classnames";
|
||||||
import AccessibleTooltipButton from "../../elements/AccessibleTooltipButton";
|
import AccessibleTooltipButton from "../../elements/AccessibleTooltipButton";
|
||||||
import CallContextMenu from "../../context_menus/CallContextMenu";
|
import CallContextMenu from "../../context_menus/CallContextMenu";
|
||||||
import DialpadContextMenu from "../../context_menus/DialpadContextMenu";
|
import DialpadContextMenu from "../../context_menus/DialpadContextMenu";
|
||||||
import AccessibleButton from "../../elements/AccessibleButton";
|
|
||||||
import { MatrixCall } from "matrix-js-sdk/src/webrtc/call";
|
import { MatrixCall } from "matrix-js-sdk/src/webrtc/call";
|
||||||
import { Alignment } from "../../elements/Tooltip";
|
import { Alignment } from "../../elements/Tooltip";
|
||||||
import {
|
import {
|
||||||
|
@ -211,10 +210,12 @@ export default class CallViewButtons extends React.Component<IProps, IState> {
|
||||||
let sidebarButton;
|
let sidebarButton;
|
||||||
if (this.props.buttonsVisibility.sidebar) {
|
if (this.props.buttonsVisibility.sidebar) {
|
||||||
sidebarButton = (
|
sidebarButton = (
|
||||||
<AccessibleButton
|
<AccessibleTooltipButton
|
||||||
className={sidebarButtonClasses}
|
className={sidebarButtonClasses}
|
||||||
onClick={this.props.handlers.onToggleSidebarClick}
|
onClick={this.props.handlers.onToggleSidebarClick}
|
||||||
aria-label={this.props.buttonsState.sidebarShown ? _t("Hide sidebar") : _t("Show sidebar")}
|
title={this.props.buttonsState.sidebarShown ? _t("Hide sidebar") : _t("Show sidebar")}
|
||||||
|
alignment={Alignment.Top}
|
||||||
|
yOffset={TOOLTIP_Y_OFFSET}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue