Skip to content

Commit

Permalink
fix(tabs): improves tabs style for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 6, 2016
1 parent e92feef commit b9a4628
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions ionic/components/tabs/tabs.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$tabbar-ios-background: $toolbar-ios-background !default;
$tabbar-ios-item-padding: 0px 10px !default;
$tabbar-ios-item-font-size: 10px !default;
$tabbar-ios-item-icon-size: 32px !default;
$tabbar-ios-item-icon-size: 30px !default;
$tabbar-ios-height: 49px !default;

$tab-button-ios-min-width: 80px !default;
Expand Down Expand Up @@ -43,6 +43,8 @@ ion-tabs[tabbarPlacement=top] tabbar {
.tab-button-text {
min-height: $tabbar-ios-item-font-size + 1;
font-size: $tabbar-ios-item-font-size;
margin-top: 0;
margin-bottom: 0;
}

.has-title-only .tab-button-text {
Expand All @@ -65,8 +67,6 @@ ion-tabs[tabbarPlacement=top] tabbar {
.tab-button-text {
font-size: 1.4rem;
line-height: 1.1;
margin-top: 0;
margin-bottom: 0;
}

ion-icon {
Expand All @@ -83,6 +83,8 @@ ion-tabs[tabbarPlacement=top] tabbar {
.tab-button-text {
font-size: 1.4rem;
line-height: 1.1;

margin: 2px 0px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion ionic/components/tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ tab-highlight {

.tab-badge {
position: absolute;
top: 4%;
top: 6%;
right: 4%;
right: calc(50% - 50px);
padding: 1px 6px;
Expand Down

0 comments on commit b9a4628

Please sign in to comment.