Skip to content

Commit

Permalink
[Ripple] Update alpha value of Ripple to 0.12 instead of 0.16
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 316850177
  • Loading branch information
yarneo authored and material-automation committed Jun 17, 2020
1 parent 22f92d4 commit f425b89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/List/tests/unit/MDCBaseCellTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ - (void)testRippleIsDisabledAndRipplePropertiesAreCorrect {
// Then
XCTAssertNotNil(self.baseCell.rippleView);
XCTAssertEqualObjects(self.baseCell.rippleView.rippleColor,
[UIColor colorWithWhite:0 alpha:(CGFloat)0.16]);
[UIColor colorWithWhite:0 alpha:(CGFloat)0.12]);
XCTAssertEqual(self.baseCell.rippleView.rippleStyle, MDCRippleStyleBounded);
XCTAssertFalse(self.baseCell.enableRippleBehavior);
XCTAssertNil(self.baseCell.rippleView.superview);
Expand All @@ -71,7 +71,7 @@ - (void)testRippleIsEnabledAndRipplePropertiesAreCorrectWhenRippleBehaviorIsEnab
// Then
XCTAssertNotNil(self.baseCell.rippleView);
XCTAssertEqualObjects(self.baseCell.rippleView.rippleColor,
[UIColor colorWithWhite:0 alpha:(CGFloat)0.16]);
[UIColor colorWithWhite:0 alpha:(CGFloat)0.12]);
XCTAssertEqual(self.baseCell.rippleView.rippleStyle, MDCRippleStyleBounded);
XCTAssertTrue(self.baseCell.enableRippleBehavior);
XCTAssertNotNil(self.baseCell.rippleView.superview);
Expand Down
2 changes: 1 addition & 1 deletion components/Ripple/src/MDCRippleView.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ @interface MDCRipplePendingAnimation : NSObject <CAAction>

@end

static const CGFloat kRippleDefaultAlpha = (CGFloat)0.16;
static const CGFloat kRippleDefaultAlpha = (CGFloat)0.12;
static const CGFloat kRippleFadeOutDelay = (CGFloat)0.15;

@implementation MDCRippleView
Expand Down
2 changes: 1 addition & 1 deletion components/Ripple/tests/unit/MDCRippleViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ - (void)testInit {
// Then
XCTAssertNil(rippleView.rippleViewDelegate);
XCTAssertEqualObjects(rippleView.rippleColor, [[UIColor alloc] initWithWhite:0
alpha:(CGFloat)0.16]);
alpha:(CGFloat)0.12]);
XCTAssertEqual(rippleView.rippleStyle, MDCRippleStyleBounded);
XCTAssertEqual(rippleView.maximumRadius, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion components/Ripple/tests/unit/MDCStatefulRippleViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)testInit {
// Then
XCTAssertNil(rippleView.rippleViewDelegate);
XCTAssertEqualObjects(rippleView.rippleColor, [[UIColor alloc] initWithWhite:0
alpha:(CGFloat)0.16]);
alpha:(CGFloat)0.12]);
XCTAssertEqual(rippleView.rippleStyle, MDCRippleStyleBounded);
}

Expand Down

0 comments on commit f425b89

Please sign in to comment.