-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(slide-toggle): remove view encapsulation #1446
fix(slide-toggle): remove view encapsulation #1446
Conversation
* Removes the ViewEncapsulation from the slide-toggle component to allow developer overwriting the styles easly. Fixes angular#1343.
LGTM |
@@ -61,7 +63,7 @@ export class MdSlideToggle implements AfterContentInit, ControlValueAccessor { | |||
private _uniqueId = `md-slide-toggle-${++nextId}`; | |||
private _checked: boolean = false; | |||
private _color: string; | |||
_hasFocus: boolean = false; | |||
private _hasFocus: boolean = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used in a host binding, so making it private will break AoT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know about that. Thanks - I reverted it and also added a comment for it.
LGTM |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #1343.