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(sidenav): turn off view encapsulation and refactor css #1114

Merged
merged 4 commits into from
Aug 25, 2016

Conversation

jelbourn
Copy link
Member

R: @hansl

This change is necessary for the sidenav to continue working with angular/angular#10997 and is blocking that PR's syncing into Google. The PR tightens the css encapsulation such that rules only apply to elements within the view of the component in which they are defined. In this case, the styles for md-sidenav were defined in the styles for md-sidenav-layout, so they were no longer being applied to the sidenav element (which is in a different view).

I've also refactored the css to reduce the specificity across the board.

@jelbourn jelbourn added P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful pr: needs review labels Aug 25, 2016
@jelbourn jelbourn added this to the alpha.8 milestone Aug 25, 2016
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 25, 2016
@@ -8,7 +7,6 @@ import {Observable} from 'rxjs/Observable';
selector: 'tab-group-demo',
templateUrl: 'tab-group-demo.html',
styleUrls: ['tab-group-demo.css'],
pipes: [AsyncPipe],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was necessary to work with the patched PR.

@hansl
Copy link
Contributor

hansl commented Aug 25, 2016

LGTM.

@jelbourn jelbourn merged commit 97fe211 into angular:master Aug 25, 2016
@jelbourn jelbourn deleted the sidenav-css branch September 13, 2017 04:36
@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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants