forked from extern/egroupware
Et2Checkbox: Fix internal positioning was causing entire page to overflow
This commit is contained in:
parent
086d4c0620
commit
5f44c51d89
@ -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);
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user