Et2Select: Fix "required" styling did not show in a better way

Previous method (38e8df2) made widget entirely transparent
This commit is contained in:
nathan 2022-09-15 15:26:06 -06:00
parent a3e2850b05
commit 9a036b1dfe
2 changed files with 5 additions and 5 deletions

View File

@ -80,10 +80,6 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
sl-menu::part(base) { sl-menu::part(base) {
padding: 0px; padding: 0px;
} }
/* allow required background color to show */
.select--standard .select__control {
background-color: inherit;
}
/* No horizontal scrollbar, even if options are long */ /* No horizontal scrollbar, even if options are long */
.dropdown__panel { .dropdown__panel {
overflow-x: clip; overflow-x: clip;

View File

@ -1996,7 +1996,11 @@ img.vfsMimeIcon[src*="/etemplate/thumbnail.php"] {
/** /**
* Validation * Validation
*/ */
.et2_required:not(.hasValue), .et2_required:not(.hasValue)::part(base), [required]:not(.hasValue)::part(base) { .et2_required:not(.hasValue), .et2_required:not(.hasValue)::part(base), .et2_required:not(.hasValue)::part(control),
/* most inputs */
[required]:not(.hasValue)::part(base),
/* selects */
[required]:not(.hasValue)::part(control) {
background-color: #ffffd0; background-color: #ffffd0;
} }