Skip to content

Commit

Permalink
fix(checkboxes): padding between items
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 7, 2023
1 parent 690f58d commit a62f879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,12 @@ form#plugin_formcreator_form {
padding-left: 40px;
}

.label-radio, .label-checkboxes {
.label-radio, .label-checkbox {
display: inline;
margin-bottom: 0.2em;
}

.radio, .checkboxes {
.radio, .checkbox {
padding-bottom: 1em;
}
}
Expand Down
2 changes: 1 addition & 1 deletion inc/field/checkboxesfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function getRenderedHtml($domain, $canEdit = true): string {
'zero_on_empty' => false,
'checked' => in_array($value, $this->value)
]);
$html .= '<label for="' . $domId . '_' . $i . '" class="label-checkboxes" title="' . $translated_value . '">';
$html .= '<label for="' . $domId . '_' . $i . '" class="label-checkbox" title="' . $translated_value . '">';
$html .= '&nbsp;' . $translated_value;
$html .= '</label>';
$html .= "</div>";
Expand Down

0 comments on commit a62f879

Please sign in to comment.