From c518be8bd1cd3dcd61da9fb4c749d620ca3b5825 Mon Sep 17 00:00:00 2001 From: josemigallas Date: Mon, 14 Oct 2024 12:09:06 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20adds=20some=20spacing=20between?= =?UTF-8?q?=20each=20checkbox=20in=20a=20check=5Fboxes=5Finput?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/inputs/patternfly_check_boxes_input.rb | 2 +- app/javascript/packs/pf_form.scss | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/inputs/patternfly_check_boxes_input.rb b/app/inputs/patternfly_check_boxes_input.rb index 58d4beda97..dde2cf3573 100644 --- a/app/inputs/patternfly_check_boxes_input.rb +++ b/app/inputs/patternfly_check_boxes_input.rb @@ -27,7 +27,7 @@ def control end def choice_html(choice) - tag.div(class: 'pf-c-check') do + tag.div(class: 'pf-c-check pf-c-check__check_boxes-custom_spacing') do checkbox_input(choice) + choice_label(choice) + choice_description(choice) end end diff --git a/app/javascript/packs/pf_form.scss b/app/javascript/packs/pf_form.scss index 1998b8125e..ef0e7b5b30 100644 --- a/app/javascript/packs/pf_form.scss +++ b/app/javascript/packs/pf_form.scss @@ -2,3 +2,9 @@ @import '~@patternfly/patternfly/components/Check/check.css'; @import '~@patternfly/patternfly/components/Form/form.css'; @import '~@patternfly/patternfly/components/FormControl/form-control.css'; + +.pf-c-form__group-control { + .pf-c-check + .pf-c-check__check_boxes-custom_spacing { + margin-top: var(--pf-c-check__body--MarginTop); + } +}