Skip to content

Commit

Permalink
fix(checkboxes): better display
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 6, 2023
1 parent fe6c2e8 commit f8fe93a
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-radio, .label-checkboxes {
display: inline;
margin-bottom: 0.2em;
}

.radio {
.radio, .checkboxes {
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 . '" title="' . $translated_value . '">';
$html .= '<label for="' . $domId . '_' . $i . '" class="label-checkboxes" title="' . $translated_value . '">';
$html .= '&nbsp;' . $translated_value;
$html .= '</label>';
$html .= "</div>";
Expand Down

0 comments on commit f8fe93a

Please sign in to comment.