Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Documentation] Explain how ::ng-deep works#65718

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Gouvernathor wants to merge1 commit intoangular:main
base:main
Choose a base branch
Loading
fromGouvernathor:patch-1

Conversation

@Gouvernathor
Copy link

@GouvernathorGouvernathor commentedNov 29, 2025
edited
Loading

Clarify usage of Angular's ::ng-deep pseudo class and its implications for global styles.

This is a documentation-only change, that explains how::ng-deep actually works, explaining in effect what was mentioned in#25160.

I will also be proposing a change to the discouragement line - though I expect it will require more discussion since it explicitly engages "the Angular team" - to only discourage CSS rules where::ng-deep appears at the start of the rule / applies to the whole selector.
In my view, it is perfectly useful and legitimate to want a component to have style authority on both its templateand the children that it's provided with. It's even less drastic than the other ViewEncapsulation modes.

Clarify usage of Angular's ::ng-deep pseudo class and its implications for global styles.
@angular-robotangular-robotbot added area: docsRelated to the documentation area: commonIssues related to APIs in the @angular/common package labelsNov 29, 2025
@ngbotngbotbot added this to theBacklog milestoneNov 29, 2025
@angularangular deleted a comment fromgoogle-clabotNov 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@atscottatscottAwaiting requested review from atscott

Assignees

No one assigned

Labels

area: commonIssues related to APIs in the @angular/common packagearea: docsRelated to the documentation

Projects

None yet

Milestone

Backlog

Development

Successfully merging this pull request may close these issues.

2 participants

@Gouvernathor@JeanMeche

[8]ページ先頭

©2009-2025 Movatter.jp