Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #27883
tanekim88 opened this issue Sep 8, 2020 · 4 comments · Fixed by #29899
Closed
Tracked by #27883

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

tanekim88 opened this issue Sep 8, 2020 · 4 comments · Fixed by #29899
Assignees
Labels
affected-medium This issue impacts approximately half of our customers area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Done This issue has been fixed enhancement This issue represents an ask for new feature or an enhancement to an existing one severity-major This label is used by an internal tool User Story A single user-facing feature. Can be grouped under an epic.
Milestone

Comments

@tanekim88
Copy link

tanekim88 commented Sep 8, 2020

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.

@Acmion
Copy link

Acmion commented Sep 9, 2020

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/

@javiercn javiercn added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Sep 10, 2020
@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Sep 10, 2020
@mkArtakMSFT mkArtakMSFT added this to the Next sprint planning milestone Sep 10, 2020
@ghost
Copy link

ghost commented Sep 10, 2020

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.

@SteveSandersonMS SteveSandersonMS added affected-few This issue impacts only small number of customers severity-major This label is used by an internal tool labels Oct 7, 2020 — with ASP.NET Core Issue Ranking
@ghost
Copy link

ghost commented Oct 9, 2020

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.

@SteveSandersonMS SteveSandersonMS added the affected-medium This issue impacts approximately half of our customers label Nov 16, 2020 — with ASP.NET Core Issue Ranking
@SteveSandersonMS SteveSandersonMS removed the affected-few This issue impacts only small number of customers label Nov 16, 2020
@mkArtakMSFT mkArtakMSFT changed the title Css Isolation for Asp.Net Core Web Application Css Isolation for Asp.Net Core Web Application for .cshtml files Nov 20, 2020
@ghost
Copy link

ghost commented Jan 8, 2021

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.

@mkArtakMSFT mkArtakMSFT added the User Story A single user-facing feature. Can be grouped under an epic. label Jan 31, 2021
@mkArtakMSFT mkArtakMSFT added Theme Groups multiple epics. and removed Theme Groups multiple epics. labels Feb 8, 2021
@ghost ghost added Done This issue has been fixed and removed Working labels Feb 16, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affected-medium This issue impacts approximately half of our customers area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Done This issue has been fixed enhancement This issue represents an ask for new feature or an enhancement to an existing one severity-major This label is used by an internal tool User Story A single user-facing feature. Can be grouped under an epic.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants