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