Skip to content

Commit

Permalink
feat(css): added helper class to wrap horizontal fieldset content
Browse files Browse the repository at this point in the history
fixes #13866
  • Loading branch information
jdalsem committed Jan 13, 2022
1 parent 17bedb9 commit c0853ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions views/default/elements/forms.css.php
Expand Up @@ -227,6 +227,14 @@
}
}

&.elgg-fieldset-wrap {
flex-wrap: wrap;

.elgg-field {
margin-bottom: 0.5rem;
}
}

&.elgg-justify-right .elgg-field {
margin: 0 0 0 1rem;
}
Expand Down
2 changes: 1 addition & 1 deletion views/default/forms/admin/menu/save.php
Expand Up @@ -36,7 +36,6 @@

$fields[] = [
'#type' => 'select',
'#class' => 'is-3',
'options_values' => $dropdown_values,
'name' => 'featured_menu_names[]',
'value' => $current_value,
Expand All @@ -45,6 +44,7 @@

$configure .= elgg_view_field([
'#type' => 'fieldset',
'class' => 'elgg-fieldset-wrap',
'align' => 'horizontal',
'fields' => $fields,
]);
Expand Down

0 comments on commit c0853ae

Please sign in to comment.