Skip to content

Change font color of elements? #3565

Closed Answered by true-perfect-code
true-perfect-code asked this question in Q&A
Discussion options

You must be logged in to vote

So I invested some time to find out the best way to change the look of the app at runtime in FluentUI. The need for this functionality arose from the need to create an accessible app. At this point, many thanks to @vnbaaij and @dvoituron for their valuable advice and help.

If there are any errors or incorrect conclusions in my handling, please let me know so that I can update this post accordingly.

Here is how I programmatically change the visual appearance of the app at runtime:

1. Change Background
To change the background I use JS. But I am sure that there are better ways in FluentUI. If anyone knows, please let me know.

Blazor
await JSRuntime!.InvokeVoidAsync("setBackgroundColor", Use…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@true-perfect-code
Comment options

@vnbaaij
Comment options

@true-perfect-code
Comment options

Comment options

You must be logged in to vote
1 reply
@true-perfect-code
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by true-perfect-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants