-
Notifications
You must be signed in to change notification settings - Fork 377
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
FluentDesignTheme custom color not honored and assertion failure #1160
Comments
This seems to be caused by <FluentDesignTheme @bind-Mode="@Mode"
CustomColor="#682079"
OnLuminanceChanged="@OnLuminanceChanged"
StorageName="myapp" /> Deleting Let us to check how to solve that for the next release. |
@vnbaaij Do you know why the |
Will be solved with the PR #1163. |
Would be nice to get milestones associated so I can monitor the nuget public feed for the fix for the version I know will come out with it 👍 |
Do you think the assertion failure and having to use |
This is in place now. V4.2.1 is on NuGet now. During testing of Denis's fix, I did not see the assertion failure anymore, but curious to hear your experience. If you still see it, please report in a new issue. Thanks. |
FYI getting similar error after adding based on the docs and using within a panel. (Even with 4.2.1) Will create new issue to document. |
Yeah @vnbaaij , just got latest and tried it and the error is gone. Kudos on adding |
🐛 Bug Report
Three simultaneous issues that might be related happen with this setup:
Given a body with
and a layout with:
with a theme toggler component:
When the page loads, the custom color is not applied and instead you see the default office color:
After clicking the toggler a few times to exercise the toggling (it works fine), hit F5 (or Ctrl+F5 for a full browser refresh).
Now clicking the toggler causes the following error in the browser dev tools:
In both cases, the custom color is never applied.
💻 Repro or Code Sample
https://github.com/kzu/fluentui-bug/tree/theme
🤔 Expected Behavior
Custom color honored at all times, and no errors on theme toggling
🐰 Workaround
Switching to
@rendermode InteractiveServer
removes the assertion error, so it seems to be WebAssembly-related.🌍 Your Environment
v4.2.0 of FluentUI
The text was updated successfully, but these errors were encountered: