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(select): Set transform origin for line ripple #3432

Merged
merged 5 commits into from
Aug 28, 2018

Conversation

williamernest
Copy link
Contributor

fixes: #3159

Also adds more tests for coverage.

@codecov-io
Copy link

codecov-io commented Aug 28, 2018

Codecov Report

Merging #3432 into master will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3432      +/-   ##
==========================================
+ Coverage    98.3%   98.42%   +0.12%     
==========================================
  Files         119      119              
  Lines        5010     5020      +10     
  Branches      613      613              
==========================================
+ Hits         4925     4941      +16     
+ Misses         85       79       -6
Impacted Files Coverage Δ
packages/mdc-select/index.js 97.29% <100%> (+6.2%) ⬆️

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 cf3084f...e7aefdb. Read the comment docs.

@mdc-web-bot
Copy link
Collaborator

All 349 screenshot tests passed for commit 02d19dc vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 349 screenshot tests passed for commit 50dd4ee vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 349 screenshot tests passed for commit 77f2470 vs. master! 💯🎉

Copy link
Contributor

@kfranqueiro kfranqueiro left a comment

Choose a reason for hiding this comment

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

Just nits, otherwise LGTM

*/
setTransformOrigin_(evt) {
const targetClientRect = evt.target.getBoundingClientRect();
const xCoordinates = evt.clientX;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: xCoordinate

@@ -366,6 +400,37 @@ test('adapter#deactivateBottomLine removes active class from the bottom line', (
td.verify(bottomLine.deactivate());
});

test('adapter#notchOutline proxies labelWidth and isRtl to the outline', () => {
const hasOutline = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Tests use hasOutline, function uses isOutline

assert.equal(component.getDefaultFoundation().adapter_.getLabelWidth(), LABEL_WIDTH);
});

test('adapter#getLabelWidth return 0 if the label does not exist', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: returns

@mdc-web-bot
Copy link
Collaborator

All 349 screenshot tests passed for commit e7aefdb vs. master! 💯🎉

@williamernest williamernest merged commit 0ff23e1 into master Aug 28, 2018
@williamernest williamernest deleted the fix/select/line-ripple branch August 28, 2018 22:41
adrianschmidt pushed a commit to Lundalogik/material-components-web that referenced this pull request Sep 25, 2018
@jamesmfriedman jamesmfriedman mentioned this pull request Sep 26, 2018
49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select does not set line ripple center on click
5 participants