mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Add media query for prefers-reduced-motion in dialog styles (#28593)
Co-authored-by: ndrwrbgs <10776890+ndrwrbgs@users.noreply.github.com> Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>
This commit is contained in:
@@ -235,6 +235,12 @@ export class HaWaDialog extends ScrollableFadeMixin(LitElement) {
|
|||||||
);
|
);
|
||||||
max-width: var(--ha-dialog-max-width, var(--safe-width));
|
max-width: var(--ha-dialog-max-width, var(--safe-width));
|
||||||
}
|
}
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
wa-dialog {
|
||||||
|
--show-duration: 0ms;
|
||||||
|
--hide-duration: 0ms;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:host([width="small"]) wa-dialog {
|
:host([width="small"]) wa-dialog {
|
||||||
--width: min(var(--ha-dialog-width-sm, 320px), var(--full-width));
|
--width: min(var(--ha-dialog-width-sm, 320px), var(--full-width));
|
||||||
|
|||||||
Reference in New Issue
Block a user