Add tooltips to mini sso buttons

pull/21833/head
Michael Telatynski 2021-01-29 12:05:15 +00:00
parent 2c2cf4c073
commit 1eb88c988c
1 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ import PlatformPeg from "../../../PlatformPeg";
import AccessibleButton from "./AccessibleButton";
import {_t} from "../../../languageHandler";
import {IdentityProviderBrand, IIdentityProvider, ISSOFlow} from "../../../Login";
import AccessibleTooltipButton from "./AccessibleTooltipButton";
interface ISSOButtonProps extends Omit<IProps, "flow"> {
idp: IIdentityProvider;
@ -84,9 +85,9 @@ const SSOButton: React.FC<ISSOButtonProps> = ({
if (mini) {
// TODO fallback icon
return (
<AccessibleButton {...props} className={classes} kind={kind} onClick={onClick}>
<AccessibleTooltipButton {...props} title={label} className={classes} kind={kind} onClick={onClick}>
{ icon }
</AccessibleButton>
</AccessibleTooltipButton>
);
}