Skip to content
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

fix(platform-browser): should only add styles with native encapsulation in shadow DOM #14313

Closed
wants to merge 1 commit into from

Conversation

DzmitryShylovich
Copy link
Contributor

@DzmitryShylovich DzmitryShylovich commented Feb 5, 2017

Closes #7887

Description:
The origin of the issue is that we add shadow root element into DomSharedStylesHost's hosts here so all styles from other component will be added to the shadow DOM too http://plnkr.co/edit/M785PCAb3Hc7WLD7EKyB
Don't see why it's required + 0 tests failed when I removed it, but this is the only usage of DomSharedStylesHost.addHost so it's probably necessary for something :)

If it's ok I will add a test

@DzmitryShylovich DzmitryShylovich changed the title fix(platform-browser): wip fix(platform-browser): should only add styles with native encapsulation in shadow DOM Feb 5, 2017
@mhevery
Copy link
Contributor

mhevery commented Feb 9, 2017

Test please?

@DzmitryShylovich
Copy link
Contributor Author

@mhevery added a test

@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Feb 10, 2017
@mhevery mhevery closed this in 53cf2ec Feb 10, 2017
@DzmitryShylovich DzmitryShylovich deleted the gh/7887 branch February 10, 2017 21:23
IgorMinar pushed a commit that referenced this pull request Feb 16, 2017
asnowwolf pushed a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 28, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sibling components next to ViewEncapsulation.Native mode component are getting their styles put in Shadow DOM
3 participants