-
Notifications
You must be signed in to change notification settings - Fork 18
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
MG-177 - Add password visibility eye toggle functionality to magistrala login page #248
Conversation
Signed-off-by: wambuipixel <[email protected]>
…ate password and reset password pages Signed-off-by: wambuipixel <[email protected]>
Signed-off-by: wambuipixel <[email protected]>
Signed-off-by: wambuipixel <[email protected]>
Signed-off-by: wambuipixel <[email protected]>
@@ -51,6 +51,7 @@ <h2>Login</h2> | |||
id="password" | |||
placeholder="Password" |
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.
Increase the margin between the input and the eye
to do this you can add a bootstrap class me-2
to the input element. Do this for the envelope in the email-field too and the lock in the password field. They will look sth like
<i class="fas fa-solid fa-envelope me-2"></i>
<i class="fas fa-solid fa-lock me-2"></i>
<input class="p-3 w-100 me-2" type="password" name="password" id="password" placeholder="Password" />
Do this for the other forms as well
ui/web/templates/login.html
Outdated
.catch((error) => { | ||
console.error("error submitting login form: ", error); | ||
}); | ||
} | ||
//code for toggling the visibility of the password |
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.
//code for toggling the visibility of the password | |
// Code for toggling the visibility of the password |
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.
change the other comments as well
Signed-off-by: wambuipixel <[email protected]>
Signed-off-by: wambuipixel <[email protected]>
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.
LGTM
What type of PR is this?
What does this do?
Adding an eye visibility toggle function to the login page allowing users to toggle on to see the password and toggle off to not see the password.
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
Did you document any new/modified functionality?
Yes
Notes