-
Notifications
You must be signed in to change notification settings - Fork 214
@W-17526051 - Add a "Back" button for Standard Login #2208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
4a60961
fd37b12
3ec8af6
868bfb3
0d5e884
76664e1
a2133ec
9aecbd6
5e2b100
751e58c
0c08ccf
37e78d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ const StandardLogin = ({ | |
| handleForgotPasswordClick, | ||
| hideEmail = false, | ||
| isSocialEnabled = false, | ||
| setShowPasswordView, | ||
| idps = [] | ||
| }) => { | ||
| return ( | ||
|
|
@@ -28,7 +29,7 @@ const StandardLogin = ({ | |
| handleForgotPasswordClick={handleForgotPasswordClick} | ||
| /> | ||
| </Stack> | ||
| <Stack spacing={6}> | ||
| <Stack spacing={2}> | ||
| <Button | ||
| type="submit" | ||
| onClick={() => { | ||
|
|
@@ -50,6 +51,14 @@ const StandardLogin = ({ | |
| <SocialLogin form={form} idps={idps} /> | ||
| </> | ||
| )} | ||
| <Button | ||
| onClick={() => setShowPasswordView(false)} | ||
| borderColor="gray.500" | ||
| color="blue.600" | ||
| variant="outline" | ||
| > | ||
| <FormattedMessage defaultMessage="Back to Sign In Options" id="login_form.button.back" /> | ||
|
||
| </Button> | ||
| </Stack> | ||
| </Stack> | ||
| ) | ||
|
|
@@ -60,6 +69,7 @@ StandardLogin.propTypes = { | |
| handleForgotPasswordClick: PropTypes.func, | ||
| hideEmail: PropTypes.bool, | ||
| isSocialEnabled: PropTypes.bool, | ||
| setShowPasswordView: PropTypes.func, | ||
| idps: PropTypes.arrayOf(PropTypes.string) | ||
| } | ||
|
|
||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might affect the spacing for when social is enabled and passwordless is disabled and makes the
Or Login Withtext + buttons closer than the figma designspacing={2}:

I also actually think there's a bug in the spacing where spacing={6} makes the buttons too far:

Would you be able sneak in a spacing fix to ensure the buttons have a spacing of 4 but the "or Login With" keeps a spacing of 6