Skip to content

Commit

Permalink
Fix spacing of radio buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Nov 21, 2024
1 parent acf83c9 commit a7779fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ canvas {
background: #ffffff;
}

.checkbox {
.checkbox, .radio {
padding-left: 4px;
padding-right: 4px;
}
Expand Down
4 changes: 3 additions & 1 deletion src/FormGenerator/FormElements/DropdownFormElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
class DropdownFormElement extends AbstractDynamicFormElement
{
/**
* On multiselect elements discard the size attribute
* Process select-specific configuration
*
* @return array
* @throws \JsonException
*/
public function getViewVariables(): array
{
$conf = parent::getViewVariables();

// on non-multiselect elements discard the size attribute
if (empty($conf['multiselect'])) {
unset($conf['size']);
}
Expand Down

0 comments on commit a7779fc

Please sign in to comment.