Et2Search / SearchMixin: Hide clear button when dropdown is visible

This commit is contained in:
nathan 2024-12-19 13:14:23 -07:00
parent c0ac4cafae
commit 02abf08be5

View File

@ -145,13 +145,19 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
width: 100%;
}
:host([search]) sl-select[open]::part(display-input), :host([allowfreeentries]) sl-select[open]::part(display-input) {
display: none;
}
:host([search]), :host([allowfreeentries]) {
sl-select[open]::part(display-input) {
display: none;
}
:host([search]) sl-select[open]::part(expand-icon) {
display: none;
}
sl-select[open]::part(clear-button) {
display: none;
}
sl-select[open]::part(expand-icon) {
display: none;
}
}
sl-select[open][multiple]::part(tags) {
flex-basis: 100%;