Blazor FluentUI and Tailwind conflicting classes. #1759
Replies: 2 comments
-
I don't think there is a way to find conflicting class names. It is probably unavoidable to not get colissions when using CSS from different vendors/providers/frameworks but in this caseI find it strange. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I think if you start a fresh site and only pull in the classes as you use them one might see which ones have conflicts. But if you pull in the whole thing at once (like the CDN) then the prefix is probably best. If I find out more as I go, I will update. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
I created a simple Blazor app using
dotnet new fluentblazorwasm --name Wasm01
I copied in sample code from the demos. And I get the following screen shot.
I then add tailwind cdn to my index.html
and re-run.
Upon investigation, I found a conflicting
outline
class.I can confirm there is a conflict by using a prefix on my tailwind config as
Then it renders normally again but I really don't want to use a prefix, is there a way to find out all the css classes that conflict? And work around this some other way?
Beta Was this translation helpful? Give feedback.
All reactions