Skip to content

Commit 8429d11

Browse files
Improve toggle button for disabled combo boxes (#24843)
1 parent 4fbc155 commit 8429d11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/ha-combo-box.ts

+5
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export class HaComboBox extends LitElement {
207207
aria-expanded=${this.opened ? "true" : "false"}
208208
class="toggle-button"
209209
.path=${this.opened ? mdiMenuUp : mdiMenuDown}
210+
?disabled=${this.disabled}
210211
@click=${this._toggleOpen}
211212
></ha-svg-icon>
212213
</vaadin-combo-box-light>
@@ -359,6 +360,10 @@ export class HaComboBox extends LitElement {
359360
:host([opened]) .toggle-button {
360361
color: var(--primary-color);
361362
}
363+
.toggle-button[disabled] {
364+
color: var(--disabled-text-color);
365+
pointer-events: none;
366+
}
362367
.clear-button {
363368
--mdc-icon-size: 20px;
364369
top: -7px;

0 commit comments

Comments
 (0)