-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(multiple): stop exposing internal ripple implementation #29622
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
Conversation
@@ -109,12 +109,6 @@ export class MatRippleLoader implements OnDestroy { | |||
} | |||
} | |||
|
|||
/** Returns the ripple instance for the given host element. */ | |||
getRipple(host: HTMLElement): MatRipple | undefined { |
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.
Note: there's some more cleanup to be done in this file in order to stop instantiating MatRipple
manually. I'll do it in a follow-up, because it'll conflict with #29620.
744e726
to
c8657cb
Compare
Removes the code that exposes the ripple implementations of some components since they are internal details and they require some hacky workarounds to keep exposed. BREAKING CHANGE: * `MatButton.ripple` is no longer available. * `MatCheckbox.ripple` is no longer available. * `MatChip.ripple` is no longer available.
c8657cb
to
decb3a7
Compare
Previously we had to manually instantiate `MatRipple` in order to maintain backwards compatibility, but it was problematic because it would break whenever we tried to use DI in `MatRipple` and it prevented us from switching to the `inject` function. Instantiating `MatRipple` is no longer necessary after angular#29622 so these changes switch to creating an internal `RippleRenderer` instead.
…29630) Previously we had to manually instantiate `MatRipple` in order to maintain backwards compatibility, but it was problematic because it would break whenever we tried to use DI in `MatRipple` and it prevented us from switching to the `inject` function. Instantiating `MatRipple` is no longer necessary after #29622 so these changes switch to creating an internal `RippleRenderer` instead.
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. |
Removes the code that exposes the ripple implementations of some components since they are internal details and they require some hacky workarounds to keep exposed.
BREAKING CHANGES:
MatButton.ripple
is no longer available.MatCheckbox.ripple
is no longer available.MatChip.ripple
is no longer available.