Use RovingAccessibleButton
instead of RovingAccessibleTooltipButton
(#12539)
This commit is contained in:
parent
2d0319ec1b
commit
8f3c8b3515
10 changed files with 35 additions and 82 deletions
|
@ -20,7 +20,7 @@ import classNames from "classnames";
|
|||
|
||||
import { Icon as DownloadIcon } from "../../../../res/img/download.svg";
|
||||
import { MediaEventHelper } from "../../../utils/MediaEventHelper";
|
||||
import { RovingAccessibleTooltipButton } from "../../../accessibility/RovingTabIndex";
|
||||
import { RovingAccessibleButton } from "../../../accessibility/RovingTabIndex";
|
||||
import Spinner from "../elements/Spinner";
|
||||
import { _t, _td, TranslationKey } from "../../../languageHandler";
|
||||
import { FileDownloader } from "../../../utils/FileDownloader";
|
||||
|
@ -93,7 +93,7 @@ export default class DownloadActionButton extends React.PureComponent<IProps, IS
|
|||
});
|
||||
|
||||
return (
|
||||
<RovingAccessibleTooltipButton
|
||||
<RovingAccessibleButton
|
||||
className={classes}
|
||||
title={spinner ? _t(this.state.tooltip) : _t("action|download")}
|
||||
onClick={this.onDownloadClick}
|
||||
|
@ -102,7 +102,7 @@ export default class DownloadActionButton extends React.PureComponent<IProps, IS
|
|||
>
|
||||
<DownloadIcon />
|
||||
{spinner}
|
||||
</RovingAccessibleTooltipButton>
|
||||
</RovingAccessibleButton>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue