mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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 { customElement } from "lit/decorators";
|
||||
import { customElement, property } from "lit/decorators";
|
||||
import { HaSvgIcon } from "./ha-svg-icon";
|
||||
|
||||
@customElement("ha-icon-next")
|
||||
export class HaIconNext extends HaSvgIcon {
|
||||
path = document.dir === "ltr" ? mdiChevronRight : mdiChevronLeft;
|
||||
@property() public override path =
|
||||
document.dir === "ltr" ? mdiChevronRight : mdiChevronLeft;
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
@ -1,10 +1,11 @@
|
||||
import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
||||
import { customElement } from "lit/decorators";
|
||||
import { customElement, property } from "lit/decorators";
|
||||
import { HaSvgIcon } from "./ha-svg-icon";
|
||||
|
||||
@customElement("ha-icon-prev")
|
||||
export class HaIconPrev extends HaSvgIcon {
|
||||
path = document.dir === "ltr" ? mdiChevronLeft : mdiChevronRight;
|
||||
@property() public override path =
|
||||
document.dir === "ltr" ? mdiChevronLeft : mdiChevronRight;
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
Loading…
x
Reference in New Issue
Block a user