Create User Modal: Clean tooltip positioning (#1395)

This commit is contained in:
RachelElysia
2021-07-15 16:31:32 -07:00
committed by GitHub
parent ad04fc3564
commit 109dc8d8ce
3 changed files with 17 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
* Clean placement, size, and position of tooltip/hover area
@@ -461,6 +461,7 @@ class UserForm extends Component<ICreateUserFormProps, ICreateUserFormState> {
data-tip
data-for="sso-disabled-tooltip"
data-tip-disable={canUseSso}
data-offset="{'top': 25, 'left': 100}"
>
<Checkbox
name="sso_enabled"
@@ -506,7 +507,7 @@ class UserForm extends Component<ICreateUserFormProps, ICreateUserFormState> {
onChange={onRadioChange("newUserType")}
/>
<div
className="invite-diabled"
className="invite-disabled"
data-tip
data-for="invite-disabled-tooltip"
data-tip-disable={smtpConfigured}
@@ -563,9 +564,8 @@ class UserForm extends Component<ICreateUserFormProps, ICreateUserFormState> {
<IconToolTip
isHtml
text={`\
<div class="tooltip-text">\
<p>This password is temporary.</p>\
<p> This user will be asked to set a new password after logging in to the Fleet UI.</p>\
<div class="password-tooltip-text">\
<p>This password is temporary. This user will be asked to set a new password after logging in to the Fleet UI.</p>\
<p>This user will not be asked to set a new password after logging in to fleetctl or the Fleet API.</p>\
</div>\
`}
@@ -33,6 +33,18 @@
}
}
.sso-disabled {
width: 375px;
}
.invite-disabled {
width: 100px;
}
.password-tooltip-text {
width: 310px;
}
&__label {
color: $core-fleet-black;
font-size: $x-small;