Skip to content

Commit

Permalink
Apply Tellus-specific patches required to meet design guidelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerluan committed Sep 13, 2021
1 parent 0e7946c commit 48731fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/MDCItemBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
static const CGFloat kPlaceholderCellWidth = 10.0f;

/// Horizontal insets in regular size class layouts.
static const CGFloat kRegularInset = 56.0f;
static const CGFloat kRegularInset = 0;

/// Horizontal insets in compact size class layouts.
static const CGFloat kCompactInset = 8.0f;
static const CGFloat kCompactInset = 0;

/// KVO context pointer identifying changes in MDCItemBarItem properties.
static void *kItemPropertyContext = &kItemPropertyContext;
Expand Down
2 changes: 1 addition & 1 deletion Sources/MDCItemBarCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ - (instancetype)initWithFrame:(CGRect)frame {

+ (UIEdgeInsets)edgeInsetsForHorizontalSizeClass:(UIUserInterfaceSizeClass)sizeClass {
// Padding from spec: https://material.io/guidelines/components/tabs.html
CGFloat outerPadding = (sizeClass == UIUserInterfaceSizeClassRegular) ? 24.0f : 12.0f;
CGFloat outerPadding = 10;
return UIEdgeInsetsMake(0.0, outerPadding, 0.0, outerPadding);
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/MDCTabBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
static const CGFloat kImageOnlyBarHeight = 48;

/// Height for image-only tab bars, in points.
static const CGFloat kTitleOnlyBarHeight = 48;
static const CGFloat kTitleOnlyBarHeight = 44;

/// Height for image-and-title tab bars, in points.
static const CGFloat kTitledImageBarHeight = 72;
Expand Down

0 comments on commit 48731fc

Please sign in to comment.