From 06f585d484d99ea7edf380f3f8a4dba82418f2dc Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Wed, 28 Nov 2018 17:22:52 +0000 Subject: [PATCH] Set small margin on the textarea element in textarea component This element defaults to a 30px margin which is the same as the outer form-group element and thus it collapses into it. I intend to place elements inside this form group after the textarea and these look visually better with a small 5px margin. --- .../govuk_publishing_components/components/_textarea.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss b/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss index d4a4a89e64..7509fc229d 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss @@ -1,3 +1,7 @@ @import "helpers/govuk-frontend-settings"; @import "govuk-frontend/components/textarea/textarea"; @import "govuk-frontend/objects/form-group"; + +.gem-c-textarea { + margin-bottom: govuk-spacing(1); +}