Add tooltips to mini sso buttons
parent
2c2cf4c073
commit
1eb88c988c
|
@ -23,6 +23,7 @@ import PlatformPeg from "../../../PlatformPeg";
|
||||||
import AccessibleButton from "./AccessibleButton";
|
import AccessibleButton from "./AccessibleButton";
|
||||||
import {_t} from "../../../languageHandler";
|
import {_t} from "../../../languageHandler";
|
||||||
import {IdentityProviderBrand, IIdentityProvider, ISSOFlow} from "../../../Login";
|
import {IdentityProviderBrand, IIdentityProvider, ISSOFlow} from "../../../Login";
|
||||||
|
import AccessibleTooltipButton from "./AccessibleTooltipButton";
|
||||||
|
|
||||||
interface ISSOButtonProps extends Omit<IProps, "flow"> {
|
interface ISSOButtonProps extends Omit<IProps, "flow"> {
|
||||||
idp: IIdentityProvider;
|
idp: IIdentityProvider;
|
||||||
|
@ -84,9 +85,9 @@ const SSOButton: React.FC<ISSOButtonProps> = ({
|
||||||
if (mini) {
|
if (mini) {
|
||||||
// TODO fallback icon
|
// TODO fallback icon
|
||||||
return (
|
return (
|
||||||
<AccessibleButton {...props} className={classes} kind={kind} onClick={onClick}>
|
<AccessibleTooltipButton {...props} title={label} className={classes} kind={kind} onClick={onClick}>
|
||||||
{ icon }
|
{ icon }
|
||||||
</AccessibleButton>
|
</AccessibleTooltipButton>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue