Skip to content

Code in CodeSnippet component is not visible in dark mode. #1453

Discussion options

You must be logged in to vote

I got it. I need to add this line of code in _layout.cshtml.

  <!-- Set the default theme ("mode" value overrides "storage-name" mode value) -->
  <script src="_content/Microsoft.FluentUI.AspNetCore.Components/js/loading-theme.js" type="text/javascript"></script>
  <loading-theme storage-name="theme" random-color="true"></loading-theme>

It looks good now.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dvoituron
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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