-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(ripple): Use mdc-dom.matches everywhere instead of a custom one (#4340) #4372
fix(ripple): Use mdc-dom.matches everywhere instead of a custom one (#4340) #4372
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I've signed the CLA. |
CLAs look good, thanks! |
Codecov Report
@@ Coverage Diff @@
## master #4372 +/- ##
==========================================
+ Coverage 98.56% 98.89% +0.32%
==========================================
Files 130 130
Lines 5731 5714 -17
Branches 763 762 -1
==========================================
+ Hits 5649 5651 +2
+ Misses 82 63 -19
Continue to review full report at Codecov.
|
Thanks for working on this! However, FYI, we're in the midst of converting all of our modules to TypeScript on the Sorry for the inconvenience/timing! |
No problem! I'll adapt my PR when it's ready. Do you know when you plan to merge the typescript version? |
We're aiming for merging the typescript branch into master sometime during March so that it'll be available in the minor release in April. |
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.
LGTM!
Thanks so much for the PR @julien1619!
To clarify, it turns out Andy already made equivalent changes to this on the TypeScript branch, so we're going to go ahead and take this PR for purposes of being able to resolve #4340 in a minor release (since it causes breaking changes by removing util APIs, technically) without waiting for the TypeScript conversion to land. |
Fixes #4340 `mdc-dom` implements a `matches()` method that wasn't used everywhere. These custom implementations prevented some SSR usage of the material-components library. This commit removes all the custom implementations. I removed some tests that were testing a now removed method, and I handled to make the other pass. PS: This is my first contribution here, I hope I did everything right! BREAKING CHANGE: `getMatchesProperty()` has been removed from `@material/ripple/util` and `@material/tab-scroller/util`. Use `matches()` from `@material/dom/ponyfill` instead.
Great! Can't wait to see the next release ;) |
Fixes #4340
mdc-dom
implements amatches()
method that wasn't used everywhere. These custom implementations prevented some SSR usage of the material-components library. This commit removes all the custom implementations.I removed some tests that were testing a now removed method, and I handled to make the other pass.
PS: This is my first contribution here, I hope I did everything right!
BREAKING CHANGE:
getMatchesProperty()
has been removed from@material/ripple/util
. Usematches()
from@material/dom/ponyfill
instead.