1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Replace clickable list item (#25165)

This commit is contained in:
Bram Kragten
2025-04-25 09:01:19 +02:00
committed by GitHub
parent 3a0c367f76
commit 0229f67751
6 changed files with 58 additions and 144 deletions

View File

@@ -12,8 +12,7 @@ import "../../../components/buttons/ha-progress-button";
import "../../../components/chart/ha-chart-base";
import "../../../components/ha-alert";
import "../../../components/ha-card";
import "../../../components/ha-list";
import "../../../components/ha-clickable-list-item";
import "../../../components/ha-md-list-item";
import "../../../components/ha-icon-button";
import "../../../components/ha-icon-next";
import "../../../components/ha-settings-row";
@@ -287,26 +286,24 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
</div>
${documentationURL
? html`
<ha-list>
<ha-clickable-list-item
.href=${documentationURL}
open-new-tab
twoline
hasMeta
<ha-md-list-item
.href=${documentationURL}
type="link"
target="_blank"
rel="noopener noreferrer"
>
<span
>${this.hass.localize(
"ui.panel.config.hardware.documentation"
)}</span
>
<span
>${this.hass.localize(
"ui.panel.config.hardware.documentation"
)}</span
>
<span slot="secondary"
>${this.hass.localize(
"ui.panel.config.hardware.documentation_description"
)}</span
>
<ha-icon-next slot="meta"></ha-icon-next>
</ha-clickable-list-item>
</ha-list>
<span slot="supporting-text"
>${this.hass.localize(
"ui.panel.config.hardware.documentation_description"
)}</span
>
<ha-icon-next slot="end"></ha-icon-next>
</ha-md-list-item>
`
: ""}
${boardConfigEntries.length ||