-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(select): Set transform origin for line ripple #3432
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
All 349 screenshot tests passed for commit 02d19dc vs. |
All 349 screenshot tests passed for commit 50dd4ee vs. |
All 349 screenshot tests passed for commit 77f2470 vs. |
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.
Just nits, otherwise LGTM
packages/mdc-select/index.js
Outdated
*/ | ||
setTransformOrigin_(evt) { | ||
const targetClientRect = evt.target.getBoundingClientRect(); | ||
const xCoordinates = evt.clientX; |
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.
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; |
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.
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', () => { |
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.
Nit: returns
All 349 screenshot tests passed for commit e7aefdb vs. |
fixes: #3159
Also adds more tests for coverage.