mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56: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)
|
||||
? html`
|
||||
<a href=${page.path} aria-role="option" tabindex="-1">
|
||||
<paper-icon-item>
|
||||
<paper-icon-item @click=${this._entryClicked}>
|
||||
<div
|
||||
class=${page.iconColor ? "icon-background" : ""}
|
||||
slot="item-icon"
|
||||
@ -97,6 +97,10 @@ class HaConfigNavigation extends LitElement {
|
||||
`;
|
||||
}
|
||||
|
||||
private _entryClicked(ev) {
|
||||
ev.currentTarget.blur();
|
||||
}
|
||||
|
||||
static get styles(): CSSResultGroup {
|
||||
return css`
|
||||
a {
|
||||
|
@ -74,7 +74,7 @@ export const configSections: { [name: string]: PageNavigation[] } = {
|
||||
path: "/hassio",
|
||||
name: "Add-ons & Backups",
|
||||
description: "Create backups, check logs or reboot your system",
|
||||
iconPath: mdiHomeAssistant,
|
||||
iconPath: mdiPuzzle,
|
||||
iconColor: "#4084CD",
|
||||
component: "hassio",
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user