From 73ae2fa258a5eaa10da25942e1955bcf694837ab Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Wed, 8 Apr 2026 14:08:47 +0200 Subject: [PATCH] gh-13140: Fixed some items not respecting reduce motion (gh-13141) --- README.md | 2 +- src/zen/common/modules/ZenUIManager.mjs | 3 +++ src/zen/common/styles/zen-theme.css | 1 + src/zen/spaces/zen-workspaces.css | 5 ++++- src/zen/tabs/zen-tabs/vertical-tabs.css | 12 ++++++++---- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ae40457ed..fe46e784a 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Zen is a firefox-based browser with the aim of pushing your productivity to a ne ### Firefox Versions - [`Release`](https://zen-browser.app/download) - Is currently built using Firefox version `149.0.2`! 🚀 -- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 149.0`! +- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 149.0.2`! ### Contributing diff --git a/src/zen/common/modules/ZenUIManager.mjs b/src/zen/common/modules/ZenUIManager.mjs index e26abe4db..ff0af0495 100644 --- a/src/zen/common/modules/ZenUIManager.mjs +++ b/src/zen/common/modules/ZenUIManager.mjs @@ -432,6 +432,9 @@ window.gZenUIManager = { }, onUrlbarSearchModeChanged(event) { + if (gReduceMotion) { + return; + } const { searchMode } = event.detail; const input = gURLBar; if (gURLBar.hasAttribute("breakout-extend") && !this._animatingSearchMode) { diff --git a/src/zen/common/styles/zen-theme.css b/src/zen/common/styles/zen-theme.css index 223763421..7b333d1db 100644 --- a/src/zen/common/styles/zen-theme.css +++ b/src/zen/common/styles/zen-theme.css @@ -233,6 +233,7 @@ --zen-primary-color: rgb(11, 10, 11) !important; /* Make sure its in sync with getToolbarColor */ --toolbox-textcolor: rgba(255, 255, 255, 0.8) !important; + --toolbar-color-scheme: dark !important; } &[zen-unsynced-window='true'] { diff --git a/src/zen/spaces/zen-workspaces.css b/src/zen/spaces/zen-workspaces.css index e9ebba75e..97a2c11a3 100644 --- a/src/zen/spaces/zen-workspaces.css +++ b/src/zen/spaces/zen-workspaces.css @@ -309,13 +309,16 @@ /* mark: workspace element */ zen-workspace { flex-direction: column; - transition: padding-top 0.1s; width: calc(100% + var(--zen-toolbox-padding) * 2); position: absolute; height: 100%; overflow: hidden; color: var(--toolbox-textcolor); + @media not (prefers-reduced-motion: reduce) { + transition: padding-top 0.1s; + } + :root:not([zen-sidebar-expanded='true']) & { width: 100%; } diff --git a/src/zen/tabs/zen-tabs/vertical-tabs.css b/src/zen/tabs/zen-tabs/vertical-tabs.css index 6fd06719a..b324a7116 100644 --- a/src/zen/tabs/zen-tabs/vertical-tabs.css +++ b/src/zen/tabs/zen-tabs/vertical-tabs.css @@ -130,10 +130,14 @@ height: 22px; border: none; width: 100%; - transition: - height 0.08s ease-in-out, - padding 0.08s ease-in-out, - opacity 0.06s ease-in-out; + + @media not (prefers-reduced-motion: reduce) { + transition: + height 0.08s ease-in-out, + padding 0.08s ease-in-out, + opacity 0.06s ease-in-out; + } + overflow: hidden; position: relative; opacity: 1;