Skip to content

fix(theming): Don't overwrite reduced motion when forcing a theme - #67050

Open
nickvergessen wants to merge 1 commit into
masterfrom
bugfix/noid/dont-override-reduced-motion-either
Open

nickvergessen wants to merge 1 commit into
masterfrom
bugfix/noid/dont-override-reduced-motion-either

Conversation

@nickvergessen

Copy link
Copy Markdown
Member

Assisted-by: ClaudeCode:claude-opus-5-5

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Same as previously for dark-theme overwriting the font

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added this to the Nextcloud 36 milestone Nov 26, 2026
@nickvergessen nickvergessen self-assigned this Nov 26, 2026
@nickvergessen
nickvergessen requested a review from a team as a code owner November 26, 2026 16:54
@nickvergessen
nickvergessen requested review from Altahrim and come-nc and removed request for a team November 26, 2026 16:54
@nickvergessen

Copy link
Copy Markdown
Member Author

/backport to stable35

Comment on lines +462 to +466
$themeVariables = array_diff_key($themeVariables, [
'--font-face' => true,
'--animation-quick' => true,
'--animation-slow' => true,
]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks super fragile as this breaks as soon as any new variable name would be used? Should this not rather be fixed by ensuring they have higher priority?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no deeper understanding of theming, with all the chains of things and then dark, high-contrast, reduced-motion, dyslexia-font and so on I took what I saw being used already.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants