diff --git a/api/js/etemplate/Et2Checkbox/Et2Checkbox.ts b/api/js/etemplate/Et2Checkbox/Et2Checkbox.ts index 98cd7e08d6..f93469e8b0 100644 --- a/api/js/etemplate/Et2Checkbox/Et2Checkbox.ts +++ b/api/js/etemplate/Et2Checkbox/Et2Checkbox.ts @@ -23,6 +23,11 @@ export class Et2Checkbox extends Et2InputWidget(SlCheckbox) ...shoelace, ...super.styles, css` + :host { + /* Make it line up with the middle of surroundings */ + margin: auto 0px; + vertical-align: -webkit-baseline-middle; + } :host([disabled]) { display:initial; }