From dc485b0ac6d0eeae6e5cf1a710b698b7cbe9ffcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 9 Jan 2020 20:33:11 +0100 Subject: [PATCH] Fix style for validation errors in HTML areas Rails automatically adds the field class to the validation error message, and so it had an unusual height. --- app/assets/stylesheets/layout.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index ac987154f..cacf7da25 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -1076,7 +1076,7 @@ form { margin-bottom: $line-height; } - .html-area { + .html-area:not(.form-error) { height: 272px; margin-bottom: $line-height;