Skip to content

Commit a7779fc

Browse files
committed
Fix spacing of radio buttons
1 parent acf83c9 commit a7779fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

public/css/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ canvas {
77
background: #ffffff;
88
}
99

10-
.checkbox {
10+
.checkbox, .radio {
1111
padding-left: 4px;
1212
padding-right: 4px;
1313
}

src/FormGenerator/FormElements/DropdownFormElement.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
class DropdownFormElement extends AbstractDynamicFormElement
99
{
1010
/**
11-
* On multiselect elements discard the size attribute
11+
* Process select-specific configuration
1212
*
1313
* @return array
14+
* @throws \JsonException
1415
*/
1516
public function getViewVariables(): array
1617
{
1718
$conf = parent::getViewVariables();
1819

20+
// on non-multiselect elements discard the size attribute
1921
if (empty($conf['multiselect'])) {
2022
unset($conf['size']);
2123
}

0 commit comments

Comments
 (0)