diff --git a/package.json b/package.json index adf6eae7ac..e887ab5518 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@fullcalendar/list": "6.1.20", "@fullcalendar/luxon3": "6.1.20", "@fullcalendar/timegrid": "6.1.20", - "@home-assistant/webawesome": "3.2.1-ha.0", + "@home-assistant/webawesome": "3.2.1-ha.2", "@lezer/highlight": "1.2.3", "@lit-labs/motion": "1.1.0", "@lit-labs/observers": "2.1.0", diff --git a/src/components/ha-dialog.ts b/src/components/ha-dialog.ts index ba82cc01ce..0e1dc00eac 100644 --- a/src/components/ha-dialog.ts +++ b/src/components/ha-dialog.ts @@ -281,8 +281,8 @@ export class HaDialog extends ScrollableFadeMixin(LitElement) { } @media (prefers-reduced-motion: reduce) { wa-dialog { - --show-duration: 1ms; - --hide-duration: 1ms; + --show-duration: 0ms; + --hide-duration: 0ms; } } diff --git a/src/dialogs/quick-bar/ha-quick-bar.ts b/src/dialogs/quick-bar/ha-quick-bar.ts index 5e0b36e2da..27ac70df6f 100644 --- a/src/dialogs/quick-bar/ha-quick-bar.ts +++ b/src/dialogs/quick-bar/ha-quick-bar.ts @@ -177,18 +177,6 @@ export class QuickBar extends LitElement { fireEvent(this, "dialog-closed", { dialog: this.localName }); }; - // fallback in case the closed event is not fired - private _dialogCloseStarted = () => { - setTimeout( - () => { - if (this._opened) { - this._dialogClosed(); - } - }, - 350 // close animation timeout is 300ms - ); - }; - // #endregion lifecycle // #region render @@ -246,7 +234,6 @@ export class QuickBar extends LitElement { hideActions @wa-show=${this._showTriggered} @wa-after-show=${this._dialogOpened} - @wa-hide=${this._dialogCloseStarted} @closed=${this._dialogClosed} > ${!this._loading && this._opened diff --git a/src/resources/theme/core.globals.ts b/src/resources/theme/core.globals.ts index 997731db57..b746d79656 100644 --- a/src/resources/theme/core.globals.ts +++ b/src/resources/theme/core.globals.ts @@ -62,9 +62,9 @@ export const coreStyles = css` @media (prefers-reduced-motion: reduce) { html { - --ha-animation-duration-fast: 1ms; - --ha-animation-duration-normal: 1ms; - --ha-animation-duration-slow: 1ms; + --ha-animation-duration-fast: 0ms; + --ha-animation-duration-normal: 0ms; + --ha-animation-duration-slow: 0ms; } } `; diff --git a/yarn.lock b/yarn.lock index c458d9182b..c3268e8f94 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1962,9 +1962,9 @@ __metadata: languageName: node linkType: hard -"@home-assistant/webawesome@npm:3.2.1-ha.0": - version: 3.2.1-ha.0 - resolution: "@home-assistant/webawesome@npm:3.2.1-ha.0" +"@home-assistant/webawesome@npm:3.2.1-ha.2": + version: 3.2.1-ha.2 + resolution: "@home-assistant/webawesome@npm:3.2.1-ha.2" dependencies: "@ctrl/tinycolor": "npm:4.1.0" "@floating-ui/dom": "npm:^1.6.13" @@ -1975,7 +1975,7 @@ __metadata: lit: "npm:^3.2.1" nanoid: "npm:^5.1.5" qr-creator: "npm:^1.0.0" - checksum: 10/27b61807ae41267acb112a5657b956b19c8496a3ccbf19b892a97766d5a59ed39f2c3084b1143c129a592d4685de6c19293d02986d7951056dffdcbde9fe7ce3 + checksum: 10/36f15a10760fe4c13c9551e4440d9ad395c894d6f3735494da2032948fae052056ea6e762fbfa3b2e7e0cb94a8d1e214bb73478e682813cb3ed9c44b2daec98d languageName: node linkType: hard @@ -9174,7 +9174,7 @@ __metadata: "@fullcalendar/list": "npm:6.1.20" "@fullcalendar/luxon3": "npm:6.1.20" "@fullcalendar/timegrid": "npm:6.1.20" - "@home-assistant/webawesome": "npm:3.2.1-ha.0" + "@home-assistant/webawesome": "npm:3.2.1-ha.2" "@html-eslint/eslint-plugin": "npm:0.55.0" "@lezer/highlight": "npm:1.2.3" "@lit-labs/motion": "npm:1.1.0"