Styling top level elements using isolated css #2115
Replies: 2 comments 3 replies
-
It is a Blazor thing (in general). See https://learn.microsoft.com/en-us/aspnet/core/blazor/components/css-isolation?view=aspnetcore-8.0#child-component-support. As described there:
Or do you mean something else? |
Beta Was this translation helpful? Give feedback.
-
I'm curious. How often do you need to do this? For which components in this library?
Web components can encapsulate parts of their styling by using a shadow DOM. They can provide limited styling capabilities through slots and parts. |
Beta Was this translation helpful? Give feedback.
-
I don't understand this wrapping with a
div
so we can apply styles. I witness it but don't understand it.If the top element in a component is a web component and not a native element then we can't actually style it?
Is there a way to fix this in FluentUI or Blazor or Fast?
Beta Was this translation helpful? Give feedback.
All reactions