Issue with theme not being respected on certain elements #2593
Unanswered
greg-bishop
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building a custom Teams app. Naturally, I'm using the Teams color scheme, and I have the ability for the user to change the mode (System, Light, and Dark).
I have the following in App.razor:
And I have the following in a component that allows the user to change the mode:
For most elements, the color and mode are being respected properly. However, on FluentSwitches, it is still using Light mode (note the text color below) with a blue color scheme:
The FluentMenu is also using Light mode and a blue color scheme:
As expected, the styles from the #shadow-root :host are overriding the styles from :root, but the issue is that the :host styles are not respecting the theme even though the :root styles are.
I have tried removing the FluentDesignTheme that allows the user to change the mode and hardcoding both Mode and OfficeColor in the FluentDesignTheme in App.razor, but the issue remained.
Has anyone else run into this? Is there something I can change to fix this?
System Info:
Browser: Google Chrome v128.0.6613.85
Microsoft.FluentUI.AspNetCore.Components v4.9.3
Beta Was this translation helpful? Give feedback.
All reactions