Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Jan 17, 2024
1 parent f3e0f32 commit c66773e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
6 changes: 0 additions & 6 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,6 @@ fieldset .subtitle {
padding-left: 0.75rem;
}

/* radio inputs are wrapped in labels so skip table magic */
.is-left-label fieldset .control .grouped-form-elements label {
position: relative;
left: 0;
top: 0;
}
}

.is-scrollable {
Expand Down
1 change: 1 addition & 0 deletions src/FormGenerator/FormElements/FieldsetFormElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,6 @@ protected function processBackgroundVariables()
if (preg_match(FormValidator::COLORS_REGEX, $background)) {
return ['backgroundNumber' => $background];
}
return [];
}
}
16 changes: 8 additions & 8 deletions view/radioset.twig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% from '_macros' import renderError, renderTooltip %}
<div class="column {{ column is not empty ? column : 'is-full' }}">
<div class="field">
<div class="control">
<div class="label-with-tooltip">
<div class="label {{ labelsmall is not empty ? 'label-smaller' }}">
{%- if label is not empty -%}
{{ label }} {{ is_required ? '*' }}
{%- endif -%}
</div>
{{ renderTooltip(tooltip) }}
<div class="label-with-tooltip">
<div class="label {{ labelsmall is not empty ? 'label-smaller' }}">
{%- if label is not empty -%}
{{ label }} {{ is_required ? '*' }}
{%- endif -%}
</div>
{{ renderTooltip(tooltip) }}
</div>
<div class="control">
<div class="grouped-form-elements" id="{{ id }}">
{%- for choice in choices -%}
<label class="radio {{ labelsmall is not empty ? 'label-smaller' }}">
Expand Down

0 comments on commit c66773e

Please sign in to comment.