Skip to content

Commit b9a4628

Browse files
committed
fix(tabs): improves tabs style for iOS
1 parent e92feef commit b9a4628

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ionic/components/tabs/tabs.ios.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$tabbar-ios-background: $toolbar-ios-background !default;
88
$tabbar-ios-item-padding: 0px 10px !default;
99
$tabbar-ios-item-font-size: 10px !default;
10-
$tabbar-ios-item-icon-size: 32px !default;
10+
$tabbar-ios-item-icon-size: 30px !default;
1111
$tabbar-ios-height: 49px !default;
1212

1313
$tab-button-ios-min-width: 80px !default;
@@ -43,6 +43,8 @@ ion-tabs[tabbarPlacement=top] tabbar {
4343
.tab-button-text {
4444
min-height: $tabbar-ios-item-font-size + 1;
4545
font-size: $tabbar-ios-item-font-size;
46+
margin-top: 0;
47+
margin-bottom: 0;
4648
}
4749

4850
.has-title-only .tab-button-text {
@@ -65,8 +67,6 @@ ion-tabs[tabbarPlacement=top] tabbar {
6567
.tab-button-text {
6668
font-size: 1.4rem;
6769
line-height: 1.1;
68-
margin-top: 0;
69-
margin-bottom: 0;
7070
}
7171

7272
ion-icon {
@@ -83,6 +83,8 @@ ion-tabs[tabbarPlacement=top] tabbar {
8383
.tab-button-text {
8484
font-size: 1.4rem;
8585
line-height: 1.1;
86+
87+
margin: 2px 0px;
8688
}
8789
}
8890

ionic/components/tabs/tabs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ tab-highlight {
146146

147147
.tab-badge {
148148
position: absolute;
149-
top: 4%;
149+
top: 6%;
150150
right: 4%;
151151
right: calc(50% - 50px);
152152
padding: 1px 6px;

0 commit comments

Comments
 (0)