Skip to content

Commit

Permalink
[BottomNav] Reduce default font to caption (material-components#2799)
Browse files Browse the repository at this point in the history
BottomNavigation previously had a nil default font, so a default
`button` style font was set. This is too large (and is Medium weight),
so the font should be changed to something smaller. 'Caption' style
looks better.
  • Loading branch information
Robert Moore authored Jan 4, 2018
1 parent ab2d93e commit d4a4220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/BottomNavigation/src/MDCBottomNavigationBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ - (void)commonMDCBottomNavigationBarInit {
[self addSubview:_containerView];
[self setElevation:kMDCBottomNavigationBarElevation];
_itemViews = [NSMutableArray array];
_itemTitleFont = [UIFont mdc_standardFontForMaterialTextStyle:MDCFontTextStyleButton];
_itemTitleFont = [UIFont mdc_standardFontForMaterialTextStyle:MDCFontTextStyleCaption];
}

- (void)layoutSubviews {
Expand Down

0 comments on commit d4a4220

Please sign in to comment.