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(ripple): Use mdc-dom.matches instead of getMatchesProperty() #706

Merged

Conversation

julien1619
Copy link
Contributor

mdc-dom is implementing a matches method that wasn't used everywhere.
getMatchesProperty() will be removed in the next release of mdc-web by material-components/material-components-web#4372.
It prevented some SSR usage of the material-components library.

This commit replaces getMatchesProperty() usage by matches.

It will partially resolve #654.

mdc-dom is implementing a `matches` method that wasn't used everywhere.
`getMatchesProperty()` will be removed in the next release of mdc-web.
It prevented some SSR usage of the material-components library.

This commit replaces `getMatchesProperty()` usage by `matches`.
@codecov-io
Copy link

Codecov Report

Merging #706 into rc0.11.0 will increase coverage by 0.19%.
The diff coverage is 50%.

Impacted file tree graph

@@             Coverage Diff              @@
##           rc0.11.0     #706      +/-   ##
============================================
+ Coverage     94.98%   95.18%   +0.19%     
============================================
  Files            73       73              
  Lines          2912     2905       -7     
  Branches        444      441       -3     
============================================
- Hits           2766     2765       -1     
+ Misses           50       45       -5     
+ Partials         96       95       -1
Impacted Files Coverage Δ
packages/ripple/index.tsx 90.09% <33.33%> (+4.62%) ⬆️
packages/tab-scroller/index.tsx 96.9% <66.66%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84b6395...06eefab. Read the comment docs.

@lucasecdb
Copy link
Contributor

I was about to create this PR 😅but nice to see!

Copy link
Contributor

@moog16 moog16 left a comment

Choose a reason for hiding this comment

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

This looks good to me!

@moog16 moog16 added this to the 0.11.0 milestone Mar 1, 2019
@moog16 moog16 merged commit f7f3d72 into material-components:rc0.11.0 Mar 1, 2019
@julien1619 julien1619 deleted the ripple-matches-ponyfill branch March 1, 2019 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants