Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d9b3b80

Browse files
committedJun 18, 2015
fix(ionTabs): make icons and titles stay in the same position closes #3364
1 parent 1911b07 commit d9b3b80

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed
 

‎scss/_tabs.scss

+26-1
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,30 @@ ion-tabs {
318318
transition: color .2s ease;
319319
}
320320
}
321+
&:not(.tabs-icon-left):not(.tabs-icon-top){
322+
.tab-item{
323+
&.tab-item-active,
324+
&.active,
325+
&.activated {
326+
> .tab-title, > i{
327+
display:block;
328+
margin-top: -$tabs-striped-border-width + 1px;
329+
}
330+
}
331+
}
332+
}
333+
&.tabs-icon-left{
334+
.tab-item{
335+
margin-top: 1px;
336+
&.tab-item-active,
337+
&.active,
338+
&.activated {
339+
> .tab-title, > i {
340+
margin-top: -0.1em;
341+
}
342+
}
343+
}
344+
}
321345
}
322346
}
323347

@@ -398,7 +422,7 @@ ion-tabs {
398422
.tabs-icon-right > .tabs .tab-item {
399423
font-size: $tabs-text-font-size-side-icon;
400424

401-
.icon {
425+
.icon, .tab-title {
402426
display: inline-block;
403427
vertical-align: top;
404428
margin-top: -.1em;
@@ -494,3 +518,4 @@ ion-tabs {
494518
cursor: default;
495519
pointer-events: none;
496520
}
521+

0 commit comments

Comments
 (0)
Please sign in to comment.