Skip to content

Commit

Permalink
💄 adds some spacing between each checkbox in a check_boxes_input
Browse files Browse the repository at this point in the history
  • Loading branch information
josemigallas committed Oct 14, 2024
1 parent 0e84507 commit c518be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/inputs/patternfly_check_boxes_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions app/javascript/packs/pf_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit c518be8

Please sign in to comment.