Et2Checkbox: Fix internal positioning was causing entire page to overflow

This commit is contained in:
nathan 2022-12-09 10:55:19 -07:00
parent 086d4c0620
commit 5f44c51d89

View File

@ -28,19 +28,26 @@ 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: baseline;
}
:host([disabled]) {
display:initial;
}
/* Extend hover highlight to label */
.checkbox:not(.checkbox--disabled):hover {
color: var(--sl-input-border-color-hover);
}
`,
:host {
/* Make it line up with the middle of surroundings */
margin: auto 0px;
vertical-align: baseline;
}
:host([disabled]) {
display: initial;
}
/* Fix positioning */
.checkbox {
position: relative;
}
/* Extend hover highlight to label */
.checkbox:not(.checkbox--disabled):hover {
color: var(--sl-input-border-color-hover);
}
`,
];
}