Use RovingAccessibleButton
instead of RovingAccessibleTooltipButton
(#12539)
This commit is contained in:
parent
2d0319ec1b
commit
8f3c8b3515
10 changed files with 35 additions and 82 deletions
|
@ -30,7 +30,7 @@ import Modal from "../../Modal";
|
|||
import LogoutDialog from "../views/dialogs/LogoutDialog";
|
||||
import SettingsStore from "../../settings/SettingsStore";
|
||||
import { findHighContrastTheme, getCustomTheme, isHighContrastTheme } from "../../theme";
|
||||
import { RovingAccessibleTooltipButton } from "../../accessibility/RovingTabIndex";
|
||||
import { RovingAccessibleButton } from "../../accessibility/RovingTabIndex";
|
||||
import AccessibleButton, { ButtonEvent } from "../views/elements/AccessibleButton";
|
||||
import SdkConfig from "../../SdkConfig";
|
||||
import { getHomePageUrl } from "../../utils/pages";
|
||||
|
@ -426,7 +426,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
|
|||
</span>
|
||||
</div>
|
||||
|
||||
<RovingAccessibleTooltipButton
|
||||
<RovingAccessibleButton
|
||||
className="mx_UserMenu_contextMenu_themeButton"
|
||||
onClick={this.onSwitchThemeClick}
|
||||
title={
|
||||
|
@ -441,7 +441,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
|
|||
alt=""
|
||||
width={16}
|
||||
/>
|
||||
</RovingAccessibleTooltipButton>
|
||||
</RovingAccessibleButton>
|
||||
</div>
|
||||
{topSection}
|
||||
{primaryOptionList}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue