I have a page, foo.razor, that represents a Form:
<EditForm Model=SomeModel>
<InputText @bind-Value=SomeModel.Property1 />
<InputText @bind-Value=SomeModel.Property2 />
<p>a paragraph</p>
</EditForm>
And next to it I have an isolated CSS, foo.razor.css, for example:
input{
display: block;
}
p{
color: lime;
}
The style for the paragraph applies correctly but the style for the input element does not. I can't understand why.
Plus, I know that blazor generates random ids for the elements after compilation. In the browser I can see that the paragraph has such an id but again the input and form elements do not.
I tried adding a class name for the component and use the deep selector, like this:
::deep .classname {
.......
}
But this does not work either.