Make checkbox vertically line up with surroundings

This commit is contained in:
nathan 2022-07-28 10:36:20 -06:00
parent 04ac4d6045
commit 7a05318d49

View File

@ -23,6 +23,11 @@ export class Et2Checkbox extends Et2InputWidget(SlCheckbox)
...shoelace, ...shoelace,
...super.styles, ...super.styles,
css` css`
:host {
/* Make it line up with the middle of surroundings */
margin: auto 0px;
vertical-align: -webkit-baseline-middle;
}
:host([disabled]) { :host([disabled]) {
display:initial; display:initial;
} }