about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-11-08 21:06:14 +0100
committerGitHub <noreply@github.com>2018-11-08 21:06:14 +0100
commitccbdf689e824f93bc9a950bb29a4f1ce58e0f1c9 (patch)
treea87bf5e5d7a7b3a02cb515b5076bf8b7155b13fa
parent7f4adfaf779635035db568095f684a2ded4aea6b (diff)
Fix form validation flash message color and input borders (#9235)
* Fix form validation flash message color and input borders

* Fix typo
-rw-r--r--app/javascript/styles/mastodon/forms.scss7
-rw-r--r--app/views/shared/_error_messages.html.haml2
2 files changed, 6 insertions, 3 deletions
diff --git a/app/javascript/styles/mastodon/forms.scss b/app/javascript/styles/mastodon/forms.scss
index 8c4c934ea..46ef85774 100644
--- a/app/javascript/styles/mastodon/forms.scss
+++ b/app/javascript/styles/mastodon/forms.scss
@@ -330,9 +330,12 @@ code {
     }
 
     input[type=text],
+    input[type=number],
     input[type=email],
-    input[type=password] {
-      border-bottom-color: $valid-value-color;
+    input[type=password],
+    textarea,
+    select {
+      border-color: lighten($error-red, 12%);
     }
 
     .error {
diff --git a/app/views/shared/_error_messages.html.haml b/app/views/shared/_error_messages.html.haml
index b73890216..28becd6c4 100644
--- a/app/views/shared/_error_messages.html.haml
+++ b/app/views/shared/_error_messages.html.haml
@@ -1,3 +1,3 @@
 - if object.errors.any?
-  .flash-message#error_explanation
+  .flash-message.alert#error_explanation
     %strong= t('generic.validation_errors', count: object.errors.count)