diff options
author | ThibG <thib@sitedethib.com> | 2020-08-11 23:09:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 23:09:13 +0200 |
commit | d70c3ab4c39e642d41138ab693af77dd6c258e8c (patch) | |
tree | eb25abb98eff9dd6a8eba7432b369b89a38c3d17 /app/javascript/styles | |
parent | ef057584fd2714d94666f9ffef4aa89147eda72c (diff) |
Add HTML form validation for the registration form (#14560)
* Add HTML-level validation of username in sign-up form * Make required fields with incorrect values more visible * Enable HTML form validation for the registration form * Mark agreement checkbox as required client-side * Add minimum length to password * Add client-side password confirmation validation
Diffstat (limited to 'app/javascript/styles')
-rw-r--r-- | app/javascript/styles/mastodon/forms.scss | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/styles/mastodon/forms.scss b/app/javascript/styles/mastodon/forms.scss index 7a0b2f9a3..a6df51f95 100644 --- a/app/javascript/styles/mastodon/forms.scss +++ b/app/javascript/styles/mastodon/forms.scss @@ -364,7 +364,8 @@ code { box-shadow: none; } - &:focus:invalid:not(:placeholder-shown) { + &:focus:invalid:not(:placeholder-shown), + &:required:invalid:not(:placeholder-shown) { border-color: lighten($error-red, 12%); } |