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(multiple): stop exposing internal ripple implementation #29622

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

crisbeto
Copy link
Member

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.

@crisbeto crisbeto added the target: major This PR is targeted for the next major release label Aug 22, 2024
@crisbeto crisbeto requested a review from a team as a code owner August 22, 2024 09:59
@crisbeto crisbeto requested review from amysorto and mmalerba and removed request for a team August 22, 2024 09:59
@@ -109,12 +109,6 @@ export class MatRippleLoader implements OnDestroy {
}
}

/** Returns the ripple instance for the given host element. */
getRipple(host: HTMLElement): MatRipple | undefined {
Copy link
Member Author

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.

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.
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Aug 22, 2024
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Aug 22, 2024
@crisbeto crisbeto merged commit 485bd99 into angular:main Aug 22, 2024
24 of 26 checks passed
crisbeto added a commit to crisbeto/material2 that referenced this pull request Aug 23, 2024
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.
crisbeto added a commit that referenced this pull request Aug 23, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker detected: breaking change PR contains a commit with a breaking change target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants