Fix class field for ha-icon-next/prev (#18118)

This commit is contained in:
Steve Repsher 2023-10-05 08:52:31 -04:00 committed by GitHub
parent 48593eee0d
commit f43171f91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -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 {

View File

@ -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 {