Replies: 4 comments 5 replies
-
css styles are scoped in blazor since preview 8 I think. so in order to give style to a component from its parent, you should use ::deep .card-body{} |
Beta Was this translation helpful? Give feedback.
-
Facing the same issue. Seems like NavLink is not generating the attribute used for CSS Isolation. NavLink: Whereas for other elements: Workaround is wrap the elements in a div and target the div instead. |
Beta Was this translation helpful? Give feedback.
-
have you created a relative razor.css file? for example NavMenu.razor.css . |
Beta Was this translation helpful? Give feedback.
-
Yes, I did, will move that to app.css but may I know if there's any reasons of why it's designed as such? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure whether it is by design or it is a bug, but I've changed:
to
and the local css rule stopped working:
index.razor.css
It's different from what I know in Angular
Beta Was this translation helpful? Give feedback.
All reactions