Skip to content

Commit 3212ab6

Browse files
authored
Align more info breadcrumb style with entity picker style for context (#27447)
1 parent 3d27daa commit 3212ab6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/dialogs/more-info/ha-more-info-dialog.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import type { PropertyValues } from "lit";
1515
import { LitElement, css, html, nothing } from "lit";
1616
import { customElement, property, state } from "lit/decorators";
1717
import { cache } from "lit/directives/cache";
18-
import { join } from "lit/directives/join";
1918
import { keyed } from "lit/directives/keyed";
2019
import { dynamicElement } from "../../common/dom/dynamic-element-directive";
2120
import { fireEvent } from "../../common/dom/fire_event";
@@ -33,6 +32,7 @@ import {
3332
} from "../../common/entity/context/get_entity_context";
3433
import { shouldHandleRequestSelectedEvent } from "../../common/mwc/handle-request-selected-event";
3534
import { navigate } from "../../common/navigate";
35+
import { computeRTL } from "../../common/util/compute_rtl";
3636
import "../../components/ha-button-menu";
3737
import "../../components/ha-dialog";
3838
import "../../components/ha-dialog-header";
@@ -361,6 +361,8 @@ export class MoreInfoDialog extends LitElement {
361361
);
362362
const title = this._childView?.viewTitle || breadcrumb.pop() || entityId;
363363

364+
const isRTL = computeRTL(this.hass);
365+
364366
return html`
365367
<ha-dialog
366368
open
@@ -394,17 +396,13 @@ export class MoreInfoDialog extends LitElement {
394396
${breadcrumb.length > 0
395397
? !__DEMO__ && isAdmin
396398
? html`
397-
<button
398-
class="breadcrumb"
399-
@click=${this._breadcrumbClick}
400-
aria-label=${breadcrumb.join(" > ")}
401-
>
402-
${join(breadcrumb, html`<ha-icon-next></ha-icon-next>`)}
399+
<button class="breadcrumb" @click=${this._breadcrumbClick}>
400+
${breadcrumb.join(isRTL ? " ◂ " : " ▸ ")}
403401
</button>
404402
`
405403
: html`
406404
<p class="breadcrumb">
407-
${join(breadcrumb, html`<ha-icon-next></ha-icon-next>`)}
405+
${breadcrumb.join(isRTL ? " ◂ " : " ▸ ")}
408406
</p>
409407
`
410408
: nothing}

0 commit comments

Comments
 (0)