mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
No particles when prefers-reduced-motion (#25029)
This commit is contained in:
parent
33735abfb0
commit
63f4cc456c
@ -265,7 +265,10 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.innerWidth > 450) {
|
if (
|
||||||
|
window.innerWidth > 450 &&
|
||||||
|
!matchMedia("(prefers-reduced-motion)").matches
|
||||||
|
) {
|
||||||
import("../resources/particles");
|
import("../resources/particles");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +220,10 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
|
|||||||
this.addEventListener("onboarding-progress", (ev) =>
|
this.addEventListener("onboarding-progress", (ev) =>
|
||||||
this._handleProgress(ev)
|
this._handleProgress(ev)
|
||||||
);
|
);
|
||||||
if (window.innerWidth > 450) {
|
if (
|
||||||
|
window.innerWidth > 450 &&
|
||||||
|
!matchMedia("(prefers-reduced-motion)").matches
|
||||||
|
) {
|
||||||
import("../resources/particles");
|
import("../resources/particles");
|
||||||
}
|
}
|
||||||
makeDialogManager(this, this.shadowRoot!);
|
makeDialogManager(this, this.shadowRoot!);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user