@@ -2,16 +2,16 @@ import { LitElement, css, html, nothing } from "lit";
22import { customElement , property , state } from "lit/decorators" ;
33import "../../components/ha-alert" ;
44import "../../components/ha-icon" ;
5- import "../../components/ha-list-item" ;
5+ import "../../components/ha-md- list-item" ;
66import "../../components/ha-spinner" ;
77import type {
8- ExternalEntityAddToActions ,
98 ExternalEntityAddToAction ,
9+ ExternalEntityAddToActions ,
1010} from "../../external_app/external_messaging" ;
1111import { showToast } from "../../util/toast" ;
1212
13- import type { HomeAssistant } from "../../types" ;
1413import { fireEvent } from "../../common/dom/fire_event" ;
14+ import type { HomeAssistant } from "../../types" ;
1515
1616@customElement ( "ha-more-info-add-to" )
1717export class HaMoreInfoAddTo extends LitElement {
@@ -93,19 +93,18 @@ export class HaMoreInfoAddTo extends LitElement {
9393 <div class= "actions-list" >
9494 ${ this . _externalActions . actions . map (
9595 ( action ) => html `
96- <ha- lis t- item
97- graphic = "icon "
96+ <ha- md - lis t- item
97+ type = "button "
9898 .disabled = ${ ! action . enabled }
9999 .action = ${ action }
100- .twoline = ${ ! ! action . details }
101100 @click = ${ this . _actionSelected }
102101 >
102+ <ha- icon slot= "start" .icon = ${ action . mdi_icon } > </ ha- icon>
103103 <span> ${ action . name } </ span>
104104 ${ action . details
105- ? html `<span slot= "secondary " > ${ action . details } </ span> `
105+ ? html `<span slot= "supporting-text " > ${ action . details } </ span> `
106106 : nothing }
107- <ha- icon slot= "graphic" .icon = ${ action . mdi_icon } > </ ha- icon>
108- </ ha- lis t- item>
107+ </ ha- md- lis t- item>
109108 `
110109 ) }
111110 </ div>
@@ -131,15 +130,6 @@ export class HaMoreInfoAddTo extends LitElement {
131130 flex-direction : column;
132131 }
133132
134- ha-list-item {
135- cursor : pointer;
136- }
137-
138- ha-list-item [disabled ] {
139- cursor : not-allowed;
140- opacity : 0.5 ;
141- }
142-
143133 ha-icon {
144134 display : flex;
145135 align-items : center;
0 commit comments