Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the ionic2-material-icons in the ion-tab #1

Open
ken1106 opened this issue Apr 27, 2017 · 5 comments
Open

How to use the ionic2-material-icons in the ion-tab #1

ken1106 opened this issue Apr 27, 2017 · 5 comments

Comments

@ken1106
Copy link

ken1106 commented Apr 27, 2017

How to use the ionic2-material-icons in the ion-tab ?

@ihadeed
Copy link
Member

ihadeed commented Apr 27, 2017

Hey @ken1106

Sorry there isn't a way to use it in ion-tabs at the moment. I will try to figure something out for the next release.

@jamesdixon
Copy link

@ihadeed any updates on this? Thanks!

@timotew
Copy link

timotew commented Sep 19, 2017

@ihadeed any updates on this? Tab Icons really add beauty to apps.

@asiddeen
Copy link

asiddeen commented Oct 19, 2017

it works for me this way: @ken1106 @timotew @jamesdixon @ihadeed

use custome icon names
<ion-tabs> <ion-tab [root]="tab1Root" [tabTitle]="tab1Title" tabIcon="wallet"></ion-tab> <ion-tab [root]="tab2Root" [tabTitle]="tab2Title" tabIcon="bill"></ion-tab> <ion-tab [root]="tab3Root" [tabTitle]="tab3Title" tabIcon="account"></ion-tab> </ion-tabs>

tabs sass
.md-icon-font { font-family: 'Material Icons'; display: inline-block; } .ion-md-wallet:before{ @extend .md-icon-font; content: "\E850" } .ion-md-bill:before{ @extend .md-icon-font; content: "\e8b0" } .ion-md-account:before{ @extend .md-icon-font; content: "\e853" }

@arsewizz
Copy link

arsewizz commented Nov 5, 2017

any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
7 participants