mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Only use button for breadcrumb for admin users (#24836)
This commit is contained in:
parent
a781bca94b
commit
52f4fe6bc0
@ -357,6 +357,7 @@ export class MoreInfoDialog extends LitElement {
|
||||
`}
|
||||
<span slot="title" @click=${this._enlarge} class="title">
|
||||
${breadcrumb.length > 0
|
||||
? !__DEMO__ && isAdmin
|
||||
? html`
|
||||
<button
|
||||
class="breadcrumb"
|
||||
@ -366,6 +367,11 @@ export class MoreInfoDialog extends LitElement {
|
||||
${join(breadcrumb, html`<ha-icon-next></ha-icon-next>`)}
|
||||
</button>
|
||||
`
|
||||
: html`
|
||||
<p class="breadcrumb">
|
||||
${join(breadcrumb, html`<ha-icon-next></ha-icon-next>`)}
|
||||
</p>
|
||||
`
|
||||
: nothing}
|
||||
<p class="main">${title}</p>
|
||||
</span>
|
||||
@ -687,15 +693,18 @@ export class MoreInfoDialog extends LitElement {
|
||||
margin-top: -10px;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
display: inline-flex;
|
||||
border-radius: 6px;
|
||||
transition: background-color 180ms ease-in-out;
|
||||
}
|
||||
|
||||
.title .breadcrumb:focus-visible,
|
||||
.title .breadcrumb:hover {
|
||||
.title button.breadcrumb {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.title button.breadcrumb:focus-visible,
|
||||
.title button.breadcrumb:hover {
|
||||
background-color: rgba(var(--rgb-secondary-text-color), 0.08);
|
||||
}
|
||||
`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user