mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Use puzzle for addons and blur entries on click (#10755)
This commit is contained in:
parent
0c75d5afc9
commit
2fe8f5ff27
@ -47,7 +47,7 @@ class HaConfigNavigation extends LitElement {
|
|||||||
canShowPage(this.hass, page)
|
canShowPage(this.hass, page)
|
||||||
? html`
|
? html`
|
||||||
<a href=${page.path} aria-role="option" tabindex="-1">
|
<a href=${page.path} aria-role="option" tabindex="-1">
|
||||||
<paper-icon-item>
|
<paper-icon-item @click=${this._entryClicked}>
|
||||||
<div
|
<div
|
||||||
class=${page.iconColor ? "icon-background" : ""}
|
class=${page.iconColor ? "icon-background" : ""}
|
||||||
slot="item-icon"
|
slot="item-icon"
|
||||||
@ -97,6 +97,10 @@ class HaConfigNavigation extends LitElement {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _entryClicked(ev) {
|
||||||
|
ev.currentTarget.blur();
|
||||||
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
return css`
|
return css`
|
||||||
a {
|
a {
|
||||||
|
@ -74,7 +74,7 @@ export const configSections: { [name: string]: PageNavigation[] } = {
|
|||||||
path: "/hassio",
|
path: "/hassio",
|
||||||
name: "Add-ons & Backups",
|
name: "Add-ons & Backups",
|
||||||
description: "Create backups, check logs or reboot your system",
|
description: "Create backups, check logs or reboot your system",
|
||||||
iconPath: mdiHomeAssistant,
|
iconPath: mdiPuzzle,
|
||||||
iconColor: "#4084CD",
|
iconColor: "#4084CD",
|
||||||
component: "hassio",
|
component: "hassio",
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user