@@ -15,7 +15,6 @@ import type { PropertyValues } from "lit";
1515import { LitElement , css , html , nothing } from "lit" ;
1616import { customElement , property , state } from "lit/decorators" ;
1717import { cache } from "lit/directives/cache" ;
18- import { join } from "lit/directives/join" ;
1918import { keyed } from "lit/directives/keyed" ;
2019import { dynamicElement } from "../../common/dom/dynamic-element-directive" ;
2120import { fireEvent } from "../../common/dom/fire_event" ;
@@ -33,6 +32,7 @@ import {
3332} from "../../common/entity/context/get_entity_context" ;
3433import { shouldHandleRequestSelectedEvent } from "../../common/mwc/handle-request-selected-event" ;
3534import { navigate } from "../../common/navigate" ;
35+ import { computeRTL } from "../../common/util/compute_rtl" ;
3636import "../../components/ha-button-menu" ;
3737import "../../components/ha-dialog" ;
3838import "../../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- <butto n
398- class= "breadcrumb"
399- @click = ${ this . _breadcrumbClick }
400- aria- label= ${ breadcrumb . join ( " > " ) }
401- >
402- ${ join ( breadcrumb , html `<ha- icon- next> </ ha- icon- next> ` ) }
399+ <butto n class= "breadcrumb" @click = ${ this . _breadcrumbClick } >
400+ ${ breadcrumb . join ( isRTL ? " ◂ " : " ▸ " ) }
403401 </ butto n>
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