-
-
Notifications
You must be signed in to change notification settings - Fork 120
feat: Added field validation for Email on sign in and sign up #286
base: main
Are you sure you want to change the base?
feat: Added field validation for Email on sign in and sign up #286
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
.
yeah, that can be changed, i can just set x in |
@sohamdata can we show it at tab pressing or when switching to a new field instead? |
@ykdojo I'll try, thanks for the feedback! |
@ykdojo it's fixed now. |
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'll see what I can do, was thinking the same thing as well... |
hi, I don't think coding for "when there's no error message, there's a space for it" would just make the code more complicated, which isn't needed. It's better if we just highlight the textbox and its text if it's invalid. |
I just don't think having the whitespace there makes the UI look better in any way - it just makes it slightly worse. I think it's okay if the code becomes slightly complicated. |
@sohamdata Kindly acknowledge if you have finished working on the whitespace bug. |
Sorry for replying late. The problem is: |
Just do Or you can reduce the error font size and also the margin so that the space isn't much noticeable. Something like this: form-error.mp4 |
@subhoghoshX thanks, I tried it, however, but after exiting email field, the space is left over.
|
@sohamdata In that case just revert back to the previous state, as it was. Replace the |
@subhoghoshX that worked! thanks a lot! |
|
Got it. I actually tried putting |
@ykdojo the problem is fixed, kindly see the changes and let me know. |
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.
looks okay
🛠️ Fixes Issue
Closes #252
Fixes the closed PR #265
➕ Changes Introduced
Added field validation for email on both signin and signup pages.
The field box ring and text is highlighted in tailwind color pink-600. "Please provide a valid email address" is displayed under it.
📷 Screenshots