Skip to content

Commit

Permalink
[Slider] Set thumbIsSmallerWhenDisabled to NO to match Material spec.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 332867778
  • Loading branch information
Wenyu Zhang authored and material-automation committed Sep 21, 2020
1 parent d40c6d8 commit 8e0ed49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Slider/src/MDCSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ - (void)commonMDCSliderInit {
_thumbTrack.disabledTrackHasThumbGaps = YES;
_thumbTrack.trackEndsAreInset = YES;
_thumbTrack.thumbRadius = kSliderDefaultThumbRadius;
_thumbTrack.thumbIsSmallerWhenDisabled = YES;
_thumbTrack.thumbIsSmallerWhenDisabled = NO;
_thumbTrack.thumbIsHollowAtStart = YES;
_thumbTrack.shouldDisplayInk = NO;
_thumbTrack.shouldDisplayRipple = YES;
Expand Down
2 changes: 1 addition & 1 deletion components/Slider/tests/unit/MDCSliderTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ - (void)testThumbDefaults {
XCTAssertEqualWithAccuracy(self.slider.thumbRadius, 6, kEpsilonAccuracy);
XCTAssertEqualWithAccuracy(self.slider.thumbBorderWidth, 2, kEpsilonAccuracy);
XCTAssertEqualWithAccuracy(self.slider.thumbElevation, MDCShadowElevationNone, kEpsilonAccuracy);
XCTAssertTrue(self.slider.thumbIsSmallerWhenDisabled);
XCTAssertFalse(self.slider.thumbIsSmallerWhenDisabled);
}

#pragma mark Numeric value label
Expand Down

0 comments on commit 8e0ed49

Please sign in to comment.