Skip to content

Commit

Permalink
Improve error message style
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitro-N committed Jul 18, 2021
1 parent bd4a972 commit d39a1b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Resources/public/fields.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
font-size: 16px;
}

.gwu-error-message {
text-align: center;
background-color: rgba(221, 221, 221, 0.75);
margin: 5px 0;
}

.gwu-control:focus {
outline: none;
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/Form/dropzone_preview.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<span data-gwu-remove-label></span>
</button>

<div>
<div class="gwu-error-message">
<strong class="error text-danger" data-dz-errormessage></strong>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/Form/fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
<span data-gwu-remove-label></span>
</button>

<div>
<div class="gwu-error-message">
<strong class="error text-danger" data-dz-errormessage></strong>
</div>
</div>
Expand Down

0 comments on commit d39a1b7

Please sign in to comment.