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

set encapsulation to None when there is no style / set ng-version attribute on root component #27175

Closed

Conversation

ocombe
Copy link
Contributor

@ocombe ocombe commented Nov 19, 2018

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

We used to set view encapsulation to None when there was no styles, but it's not the case with ivy, which will create css attribute selectors on elements when it's not needed.
Also we don't set the ng-version attribute on the root component.

What is the new behavior?

We set encapsulation to None when there is no style.
We set ng-version attribute on root component.

Does this PR introduce a breaking change?

  • No

@ocombe ocombe added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer effort1: hours area: server Issues related to server-side rendering target: major This PR is targeted for the next major release comp: ivy risk: low labels Nov 19, 2018
@ngbot ngbot bot added this to the Backlog milestone Nov 19, 2018
@ocombe ocombe requested a review from alxhub November 19, 2018 17:53
@mary-poppins
Copy link

You can preview 4cf11f8 at https://pr27175-4cf11f8.ngbuilds.io/.

@ocombe ocombe force-pushed the fix/ivy/testbed-platform-server/render branch from 4cf11f8 to e2bb32f Compare November 19, 2018 20:08
@mary-poppins
Copy link

You can preview e2bb32f at https://pr27175-e2bb32f.ngbuilds.io/.

@alxhub
Copy link
Member

alxhub commented Nov 20, 2018

@ocombe ocombe added action: merge The PR is ready for merge by the caretaker PR action: time-zone and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 20, 2018
@mhevery mhevery closed this in 0191773 Nov 20, 2018
mhevery pushed a commit that referenced this pull request Nov 20, 2018
@ocombe ocombe deleted the fix/ivy/testbed-platform-server/render branch November 21, 2018 16:16
FrederikSchlemmer pushed a commit to FrederikSchlemmer/angular that referenced this pull request Jan 3, 2019
FrederikSchlemmer pushed a commit to FrederikSchlemmer/angular that referenced this pull request Jan 3, 2019
ngfelixl pushed a commit to ngfelixl/angular that referenced this pull request Jan 28, 2019
ngfelixl pushed a commit to ngfelixl/angular that referenced this pull request Jan 28, 2019
@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 14, 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 area: server Issues related to server-side rendering cla: yes effort1: hours risk: low target: major This PR is targeted for the next major release type: bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants