dotnet/aspnetcore

Css Isolation for Asp.Net Core Web Application for .cshtml files

tanekim88 opened this issue · 4 comments

CSS isolation feature has been now implemented in .net 5 preview 8 for Blazor, and I confirmed it's working in Blazor.

However, it seems that css isolation feature is not working in traditional Asp.Net Core Web Application.
Is this feature being planned for the traditional Asp.Net Core Web Application?
If not, it would be great if it will be planned.

For example, if there is a Login.cshtml, and if I create Login.cshtml.css, I would like the content of Login.cshtml.css to be automatically injected into <style> portion of Login.cshtml.

You can use Blazor Server in an ASP.NET Core Web App to create statically rendered HTML components. I'd imagine that the component CSS would be scoped with this configuration.

This blog post touches the matter:
andrewlock.net/dont-replace-your-view-components-with-razor-components/

Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.