Skip to content

Commit

Permalink
fix(tab-bar): align tab text to the center (#16130)
Browse files Browse the repository at this point in the history
fixes #15273
  • Loading branch information
brandyscarney authored Oct 29, 2018
1 parent 018fb98 commit 67eb7cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/src/components/tab-bar/tab-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
background: var(--background);
color: var(--color);

text-align: center;

contain: strict;
user-select: none;
z-index: $z-index-toolbar;
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/tab-bar/test/scenarios/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

<ion-tab-button tab='2' layout="icon-top">
<ion-badge>6</ion-badge>
<ion-label>Favorites</ion-label>
<ion-label>hi</ion-label>
<ion-icon name="heart"></ion-icon>
</ion-tab-button>

Expand Down

0 comments on commit 67eb7cf

Please sign in to comment.