Et2Checkbox: Use normal color even when required

Preveiously check was white, which was hard to see on yellow required background
This commit is contained in:
nathan 2023-03-22 11:18:56 -06:00
parent db66cb9af6
commit e497e31ed5

View File

@ -39,14 +39,22 @@ export class Et2Checkbox extends Et2InputWidget(SlCheckbox)
}
/* Fix positioning */
.checkbox {
position: relative;
}
/* Extend hover highlight to label */
.checkbox:not(.checkbox--disabled):hover {
color: var(--sl-input-border-color-hover);
}
/* Use normal color even when required */
:host([required]) .checkbox__control {
color: var(--input-text-color);
}
`,
];
}