Skip to content

Commit

Permalink
[Cards] Update setting corner radius to match team style guide
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 348676582
  • Loading branch information
codeman7 authored and material-automation committed Dec 22, 2020
1 parent 1faf60e commit 4b7c446
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/Cards/src/Theming/MDCCard+MaterialTheming.m
Expand Up @@ -14,6 +14,8 @@

#import "MDCCard+MaterialTheming.h"

#import "MaterialCards.h"

static const MDCShadowElevation kNormalElevation = 1;
static const MDCShadowElevation kHighlightedElevation = 1;
static const CGFloat kBorderWidth = 1;
Expand All @@ -35,7 +37,7 @@ - (void)applyThemeWithScheme:(id<MDCContainerScheming>)scheme {
if (shapeScheme) {
[self applyThemeWithShapeScheme:shapeScheme];
} else {
self.layer.cornerRadius = (CGFloat)4;
self.layer.cornerRadius = 4;
}

[self setShadowElevation:kNormalElevation forState:UIControlStateNormal];
Expand Down Expand Up @@ -66,7 +68,7 @@ - (void)applyOutlinedThemeWithScheme:(nonnull id<MDCContainerScheming>)scheme {
if (shapeScheme) {
[self applyThemeWithShapeScheme:shapeScheme];
} else {
self.layer.cornerRadius = (CGFloat)4;
self.layer.cornerRadius = 4;
}

NSUInteger maximumStateValue = UIControlStateNormal | UIControlStateSelected |
Expand Down

0 comments on commit 4b7c446

Please sign in to comment.