Browse Source

Fix form validation flash message color and input borders (#9235)

* Fix form validation flash message color and input borders

* Fix typo
pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
ccbdf689e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions
  1. +5
    -2
      app/javascript/styles/mastodon/forms.scss
  2. +1
    -1
      app/views/shared/_error_messages.html.haml

+ 5
- 2
app/javascript/styles/mastodon/forms.scss View File

@ -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 {

+ 1
- 1
app/views/shared/_error_messages.html.haml View File

@ -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)

Loading…
Cancel
Save