Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Fix form validation flash message color and input borders (mastodon#9235
Browse files Browse the repository at this point in the history
)

* Fix form validation flash message color and input borders

* Fix typo
  • Loading branch information
Gargron committed Nov 23, 2018
1 parent b3c29ec commit 4b2f254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/javascript/styles/mastodon/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_error_messages.html.haml
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4b2f254

Please sign in to comment.