Skip to content

Commit

Permalink
merge to head and update suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts committed Dec 22, 2024
1 parent 06e2a71 commit 5651556
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/components/ha-form/ha-form-multi_select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import type { HaCheckbox } from "../ha-checkbox";
import "../ha-formfield";
import "../ha-icon-button";
import "../ha-textfield";
import "../ha-button-menu-new";
import "../ha-menu-item";
import "../ha-md-button-menu";
import "../ha-md-menu-item";

import type {
HaFormElement,
Expand Down Expand Up @@ -75,7 +75,7 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
}

return html`
<ha-button-menu-new
<ha-md-button-menu
.disabled=${this.disabled}
@opening=${this._handleOpen}
@closing=${this._handleClose}
Expand All @@ -101,7 +101,7 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
${options.map((item: string | [string, string]) => {
const value = optionValue(item);
const selected = data.includes(value);
return html`<ha-menu-item
return html`<ha-md-menu-item
type="option"
aria-checked=${selected}
.value=${value}
Expand All @@ -117,9 +117,9 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
.checked=${selected}
></ha-checkbox>
${optionLabel(item)}
</ha-menu-item>`;
</ha-md-menu-item>`;
})}
</ha-button-menu-new>
</ha-md-button-menu>
`;
}

Expand Down Expand Up @@ -211,7 +211,7 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
:host([own-margin]) {
margin-bottom: 5px;
}
ha-button-menu-new {
ha-md-button-menu {
display: block;
cursor: pointer;
}
Expand Down Expand Up @@ -240,7 +240,7 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
:host([opened]) ha-icon-button {
color: var(--primary-color);
}
:host([opened]) ha-button-menu-new {
:host([opened]) ha-md-button-menu {
--mdc-text-field-idle-line-color: var(--input-hover-line-color);
--mdc-text-field-label-ink-color: var(--primary-color);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ha-md-button-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export class HaMdButtonMenu extends LitElement {
}

private _handleOpening(): void {
fireEvent(this, "opening", undefined, { bubbles: false });
fireEvent(this, "opening", undefined, { composed: false });
}

private _handleClosing(): void {
fireEvent(this, "closing", undefined, { bubbles: false });
fireEvent(this, "closing", undefined, { composed: false });
}

private _handleClick(): void {
Expand Down

0 comments on commit 5651556

Please sign in to comment.