mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 04:36:36 +00:00
Migrate suffix to end slot
This commit is contained in:
parent
ebe791d21a
commit
40b08e8900
@ -134,7 +134,7 @@ export class HcConnect extends LitElement {
|
||||
<ha-button appearance="plain" @click=${this._handleDemo}>
|
||||
Show Demo
|
||||
<ha-svg-icon
|
||||
slot="suffix"
|
||||
slot="end"
|
||||
.path=${this.castManager.castState === "CONNECTED"
|
||||
? mdiCastConnected
|
||||
: mdiCast}
|
||||
|
@ -71,7 +71,7 @@ export class DemoHaButton extends LitElement {
|
||||
${titleCase(`${variant} ${appearance}`)}
|
||||
<ha-svg-icon
|
||||
.path=${mdiHome}
|
||||
slot="suffix"
|
||||
slot="end"
|
||||
></ha-svg-icon>
|
||||
</ha-button>
|
||||
`
|
||||
|
@ -86,7 +86,7 @@ class HaMultiTextField extends LitElement {
|
||||
})
|
||||
: this.hass?.localize("ui.common.add")) ??
|
||||
"Add"}
|
||||
<ha-svg-icon slot="suffix" .path=${mdiPlus}></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiPlus}></ha-svg-icon>
|
||||
</ha-button>
|
||||
</div>
|
||||
${this.helper
|
||||
|
@ -117,10 +117,7 @@ export class HaVoiceCommandDialog extends LitElement {
|
||||
size="small"
|
||||
>
|
||||
${this._pipeline?.name}
|
||||
<ha-svg-icon
|
||||
slot="suffix"
|
||||
.path=${mdiChevronDown}
|
||||
></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiChevronDown}></ha-svg-icon>
|
||||
</ha-button>
|
||||
${!this._pipelines
|
||||
? html`<div class="pipelines-loading">
|
||||
|
@ -816,8 +816,7 @@ class HaAutomationPicker extends SubscribeMixin(LitElement) {
|
||||
size="small"
|
||||
>
|
||||
${this.hass.localize("ui.panel.config.common.learn_more")}
|
||||
<ha-svg-icon slot="suffix" .path=${mdiOpenInNew}>
|
||||
</ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}> </ha-svg-icon>
|
||||
</ha-button>
|
||||
</div>`
|
||||
: nothing
|
||||
|
@ -147,10 +147,7 @@ class DialogImportBlueprint extends LitElement {
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.blueprint.add.community_forums"
|
||||
)}
|
||||
<ha-svg-icon
|
||||
slot="suffix"
|
||||
.path=${mdiOpenInNew}
|
||||
></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
</ha-button>
|
||||
<ha-textfield
|
||||
id="input"
|
||||
|
@ -309,7 +309,7 @@ class HaBlueprintOverview extends LitElement {
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.blueprint.overview.discover_more"
|
||||
)}
|
||||
<ha-svg-icon slot="suffix" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
</ha-button>
|
||||
</div>`}
|
||||
.initialGroupColumn=${this._activeGrouping}
|
||||
|
@ -61,7 +61,7 @@ class ConfigAnalytics extends LitElement {
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<ha-svg-icon slot="suffix" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.analytics.learn_more")}
|
||||
</ha-button>
|
||||
</div>
|
||||
|
@ -789,7 +789,7 @@ export class HaConfigDevicePage extends LitElement {
|
||||
? html`
|
||||
<ha-svg-icon
|
||||
.path=${firstDeviceAction!.trailingIcon}
|
||||
slot="suffix"
|
||||
slot="end"
|
||||
></ha-svg-icon>
|
||||
`
|
||||
: nothing}
|
||||
|
@ -118,10 +118,7 @@ export class HaConfigLogs extends LitElement {
|
||||
? html`
|
||||
<ha-button-menu slot="toolbar-icon">
|
||||
<ha-button slot="trigger" appearance="filled">
|
||||
<ha-svg-icon
|
||||
slot="suffix"
|
||||
.path=${mdiChevronDown}
|
||||
></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiChevronDown}></ha-svg-icon>
|
||||
${this._logProviders.find(
|
||||
(p) => p.key === this._selectedLogProvider
|
||||
)!.name}
|
||||
|
@ -789,7 +789,7 @@ class HaSceneDashboard extends SubscribeMixin(LitElement) {
|
||||
size="small"
|
||||
>
|
||||
${this.hass.localize("ui.panel.config.common.learn_more")}
|
||||
<ha-svg-icon slot="suffix" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
</ha-button>
|
||||
</div>`
|
||||
: nothing}
|
||||
|
@ -788,7 +788,7 @@ class HaScriptPicker extends SubscribeMixin(LitElement) {
|
||||
size="small"
|
||||
>
|
||||
${this.hass.localize("ui.panel.config.common.learn_more")}
|
||||
<ha-svg-icon slot="suffix" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
</ha-button>
|
||||
</div>`
|
||||
: nothing}
|
||||
|
@ -91,7 +91,7 @@ export class CloudDiscover extends LitElement {
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.assistants.cloud.and_more"
|
||||
)}
|
||||
<ha-svg-icon slot="suffix" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
</ha-button>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user