I have trouble with applying styles using style isolation in blazor.
I see HTML generated in the browser like this with class="rz-text-body1"
(it doesn't matter what component)
<p class="rz-text-body1" id="5X6Y-0JfBE" _bl_1cd2875c-bd1a-422c-a74e-6ef2f70d3b38="">
blah blah
</p>
I try to apply style to this element from file <MyComponent>.razor.css
.rz-text-body1 {
font-size: 3.5rem
}
CSS generated looks like this with standard blazor format with unique attribute b-:
.rz-text-body1[b-qc60qf4cho] {
font-size: 3.5rem
}
And as a result style is not applied. Any idea where that long attribute coming from in the target element (_bl_1cd2875c-bd1a-422c-a74e-6ef2f70d3b38=)? Templated blazor app had short attributes attached to elements which match styles defined in CSS file.
If I set style in header or body of the component - all is working as expected, style selector is not manipulated and applied properly.