fix(onboarding-pass-validation): added password validation #424
Changes from 4 commits
902da0a
4662417
d59c339
d90c3a1
c22104d
9240c9b
1ef2c96
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 |
---|---|---|
|
@@ -35,3 +35,10 @@ | |
visibility: visible; | ||
} | ||
} | ||
|
||
.helpMessage { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. currently we highlight the bottom border of the input that isn;t correct and make the border There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Working on it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we use input field with all borders making just the bottom one red will look strange. I haven't seen this pattern in sites/apps, so in my opinion it will not be consistent in usability point of view. I've made all borders and error text to get $red when error occurs. Is that Ok? |
||
color: white; | ||
opacity: 0.87; | ||
padding-top: 20px; | ||
font-size: 14px; | ||
} |
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.
this visible class doesn't apply to
helpMessage
right? It looks like it's nested insideerrorMessage
in thescss
file.Also this logic seems to apply
visible
when the passwords match and the char count is 8 or over. Shouldn't it be the other way around?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.
When I'm testing this PR the error message shows up before I start typing anything
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.
The help message is intended to always stay visible for better usability. I've just forgotten to clean up the code.
If the help message is hidden some users will try to create passwords with less than 8 chars and then fail. They will be forced to rethink and resubmit their pass which is considerable user effort. We can prevent such cases by leaving the help message always visible. See this article.