Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix iframe theme switch from system theme #5404

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Fix iframe theme switch from system theme #5404

merged 1 commit into from
Feb 29, 2024

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Feb 29, 2024

This pull request fixes the theme switch in iframes on the activity page if the active theme was the system theme.

The issue was caused by the IFrame theme could be equal to system while we compared them with the computed theme values, which could only be dark or light.

As I moved the iframe update to selectedTheme change, I changed the setting of theme to private, to make sure it is only updated trough selectedTheme

Closes #5403

@jorg-vr jorg-vr added the bug Something isn't working label Feb 29, 2024
@jorg-vr jorg-vr self-assigned this Feb 29, 2024
@jorg-vr jorg-vr requested a review from a team as a code owner February 29, 2024 09:28
@jorg-vr jorg-vr requested review from bmesuere and niknetniko and removed request for a team February 29, 2024 09:28
@jorg-vr jorg-vr merged commit 327b274 into main Feb 29, 2024
14 of 15 checks passed
@jorg-vr jorg-vr deleted the fix/theme-switch branch February 29, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Activity Description is still in darkmode after switching from system mode
3 participants