-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: design login form #4
Conversation
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.
can we create a forms
dir inside src
and move login
inside forms
dir.
Let me know if you think we should have an another directory structure.
66e07b2
to
cc4b51c
Compare
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.
minor comments. thankyou
cc4b51c
to
a096243
Compare
@syedsajjadkazmii we need to keep padding because this is taken from registration design so we are sure that this padding is needed around the form that is why we will keep it |
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.
thankyou
24808ff
to
f3b61c7
Compare
src/forms/login/index.jsx
Outdated
} from '@openedx/paragon'; | ||
|
||
import messages from './messages'; | ||
import SocialAuthButton from '../../common-ui/SocialAuthButtons'; |
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.
import SocialAuthButton from '../../common-ui/SocialAuthButtons'; | |
import SocialAuthButtons from '../../common-ui/SocialAuthButtons'; |
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.
addressed
src/forms/login/index.scss
Outdated
text-decoration: underline; | ||
cursor: pointer; |
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.
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 saw this from lo-fi designs of login i can remove it if you want?
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.
We are following hi-fi of registration for design decisions on other things, we should use that here too.
0fa8cf3
to
0b01a2e
Compare
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.
Can we get rid of "Text" from the messages id?
loginFormSignInButtonText
-> loginFormSignInButton
loginFormForgotPasswordButtonText
-> loginFormForgotPasswordButton
I have mentioned a few updates to messages file. Please use it to update other instances too.
src/forms/login/index.jsx
Outdated
* | ||
* @returns {JSX.Element} The rendered login component along with social auth buttons. | ||
*/ | ||
|
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.
nit: remove extra line
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.
addressed
src/forms/login/index.scss
Outdated
.form-layout { | ||
padding: 3.5rem 2.5rem 3.5rem 2.5rem; | ||
} | ||
|
||
.hyper-link { | ||
cursor: pointer; | ||
} | ||
|
||
.pgn__form-control-floating-label-text:after { | ||
content:"*"; | ||
color: #AB0D02; | ||
} |
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.
Spacing inconsistencies
.form-layout { | |
padding: 3.5rem 2.5rem 3.5rem 2.5rem; | |
} | |
.hyper-link { | |
cursor: pointer; | |
} | |
.pgn__form-control-floating-label-text:after { | |
content:"*"; | |
color: #AB0D02; | |
} | |
.form-layout { | |
padding: 3.5rem 2.5rem 3.5rem 2.5rem; | |
} | |
.hyper-link { | |
cursor: pointer; | |
} | |
.pgn__form-control-floating-label-text:after { | |
content:"*"; | |
color: #AB0D02; | |
} |
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.
addressed
src/forms/login/messages.js
Outdated
loginFormHeadingText: { | ||
id: 'login.form.heading.text', | ||
defaultMessage: 'Login', | ||
description: 'Text of heading', |
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.
description: 'Text of heading', | |
description: 'Login form main heading', |
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.
addressed
src/forms/login/messages.js
Outdated
loginFormSignUpHelpingText: { | ||
id: 'login.form.sign.up.helping.text', | ||
defaultMessage: 'Don’t have an account yet?', | ||
description: 'Description of sign up link helping text', |
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.
description: 'Description of sign up link helping text', | |
description: 'A title that appears before "Create an account" button on login form', |
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.
addressed
src/forms/login/messages.js
Outdated
loginFormSignUpLink: { | ||
id: 'login.form.sign.up.link.text', | ||
defaultMessage: 'Create an account', | ||
description: 'Description of sign up link', |
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.
description: 'Description of sign up link', | |
description: 'Registration button label that appears on login 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.
addressed
src/forms/login/messages.js
Outdated
defaultMessage: 'Email', | ||
description: 'Email field label', | ||
}, | ||
loginFormPasswordText: { |
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.
loginFormPasswordText: { | |
loginFormPasswordFieldLabel: { |
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.
addressed
src/forms/login/messages.js
Outdated
defaultMessage: 'Password', | ||
description: 'Password field label', | ||
}, | ||
loginFormOrTxt: { |
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.
loginFormOrTxt: { | |
loginFormHeading2: { |
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.
addressed
src/forms/login/messages.js
Outdated
loginFormOrTxt: { | ||
id: 'login.form.or.message', | ||
defaultMessage: 'or', | ||
description: 'Text of or', |
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.
description: 'Text of or', | |
description: 'Heading that appears between social auth and basic login form', |
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.
addressed
src/forms/login/messages.js
Outdated
import { defineMessages } from '@edx/frontend-platform/i18n'; | ||
|
||
const messages = defineMessages({ | ||
loginFormHeadingText: { |
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.
loginFormHeadingText: { | |
loginFormHeading1: { |
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.
addressed
src/forms/login/messages.js
Outdated
loginFormSignInButtonText: { | ||
id: 'login.form.signin.button.text', | ||
defaultMessage: 'Sign in', | ||
description: 'Text of sign in button', |
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.
description: 'Text of sign in button', | |
description: 'Sign in button label that appears on login 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.
addressed
0b01a2e
to
70fa4d0
Compare
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.
Please address the comments before merging.
src/forms/login/index.scss
Outdated
content:"*"; | ||
color: #AB0D02; | ||
} | ||
|
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.
nit: remove extra line
src/forms/login/messages.js
Outdated
|
||
const messages = defineMessages({ | ||
loginFormHeading1: { | ||
id: 'login.form.heading.text', |
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.
Please update id based on the key (update for all other messages too).
id: 'login.form.heading.text', | |
id: 'login.form.heading.1', |
Description: Create login form using paragon form fields VAN-1882
70fa4d0
to
86b7b88
Compare
Description
In this PR following things are done:
JIRA
VAN-1882
How Has This Been Tested?
Mention any tests you've added or updated to ensure the changes work as expected.
Screenshots/sandbox (optional):
Merge Checklist