Skip to content

Commit 4a1cc37

Browse files
author
Dominic Tubach
committed
Use render element container instead of fieldset for HorizontalLayout and VerticalLayout
This avoids additional padding/margin or borders (depending on the theme).
1 parent 4eb7528 commit 4a1cc37

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Form/Layout/HorizontalLayoutArrayFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function supportsDefinition(DefinitionInterface $definition): bool {
3232

3333
protected function createBasicFormArray(LayoutDefinition $definition): array {
3434
return [
35-
'#type' => 'fieldset',
35+
'#type' => 'container',
3636
'#attributes' => ['class' => ['container-inline']],
3737
];
3838
}

src/Form/Layout/VerticalLayoutArrayFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function supportsDefinition(DefinitionInterface $definition): bool {
3131
}
3232

3333
protected function createBasicFormArray(LayoutDefinition $definition): array {
34-
return ['#type' => 'fieldset'];
34+
return ['#type' => 'container'];
3535
}
3636

3737
}

0 commit comments

Comments
 (0)