mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 08:28:52 +00:00
Fleet UI: Update login tab order (#22930)
This commit is contained in:
parent
346ebe0d0a
commit
dc6c1383e4
2 changed files with 29 additions and 11 deletions
|
|
@ -141,18 +141,23 @@ const LoginForm = ({
|
|||
value={formData.password}
|
||||
onChange={onInputChange("password")}
|
||||
/>
|
||||
<div className={`${baseClass}__forgot-wrap`}>
|
||||
<Link
|
||||
className={`${baseClass}__forgot-link`}
|
||||
to={paths.FORGOT_PASSWORD}
|
||||
>
|
||||
Forgot password?
|
||||
</Link>
|
||||
{/* Actions displayed using CSS column-reverse to preserve tab order */}
|
||||
<div className={`${baseClass}__actions`}>
|
||||
<div className={`${baseClass}__login-actions`}>
|
||||
<Button className={`login-btn button button--brand`} type="submit">
|
||||
Login
|
||||
</Button>
|
||||
{ssoEnabled && renderSingleSignOnButton()}
|
||||
</div>
|
||||
<div className={`${baseClass}__forgot-wrap`}>
|
||||
<Link
|
||||
className={`${baseClass}__forgot-link`}
|
||||
to={paths.FORGOT_PASSWORD}
|
||||
>
|
||||
Forgot password?
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<Button className={`login-btn button button--brand`} type="submit">
|
||||
Login
|
||||
</Button>
|
||||
{ssoEnabled && renderSingleSignOnButton()}
|
||||
</form>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -39,4 +39,17 @@
|
|||
&__sso-legend {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&__actions {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
gap: $pad-large;
|
||||
}
|
||||
|
||||
&__login-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: $pad-large;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue