about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-08-11 23:09:13 +0200
committerGitHub <noreply@github.com>2020-08-11 23:09:13 +0200
commitd70c3ab4c39e642d41138ab693af77dd6c258e8c (patch)
treeeb25abb98eff9dd6a8eba7432b369b89a38c3d17 /app/javascript/styles
parentef057584fd2714d94666f9ffef4aa89147eda72c (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.scss3
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%);
     }