mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Fix class field for ha-icon-next/prev (#18118)
This commit is contained in:
parent
48593eee0d
commit
f43171f91c
@ -1,10 +1,11 @@
|
|||||||
import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
||||||
import { customElement } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import { HaSvgIcon } from "./ha-svg-icon";
|
import { HaSvgIcon } from "./ha-svg-icon";
|
||||||
|
|
||||||
@customElement("ha-icon-next")
|
@customElement("ha-icon-next")
|
||||||
export class HaIconNext extends HaSvgIcon {
|
export class HaIconNext extends HaSvgIcon {
|
||||||
path = document.dir === "ltr" ? mdiChevronRight : mdiChevronLeft;
|
@property() public override path =
|
||||||
|
document.dir === "ltr" ? mdiChevronRight : mdiChevronLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
||||||
import { customElement } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import { HaSvgIcon } from "./ha-svg-icon";
|
import { HaSvgIcon } from "./ha-svg-icon";
|
||||||
|
|
||||||
@customElement("ha-icon-prev")
|
@customElement("ha-icon-prev")
|
||||||
export class HaIconPrev extends HaSvgIcon {
|
export class HaIconPrev extends HaSvgIcon {
|
||||||
path = document.dir === "ltr" ? mdiChevronLeft : mdiChevronRight;
|
@property() public override path =
|
||||||
|
document.dir === "ltr" ? mdiChevronLeft : mdiChevronRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user