Icon in ion-tab special

Hi :slight_smile: !

Is it possible to just change the size of one of the icon in ion-tabs ?

Just for example, I would like 3 icons with the first and third normal size and for the 2nd icon, much larger and to have like a round around this please ?

This form : ------------()------------------

Hi Quiesan, to my knowledge (and because I want to stick to universal design for android & iOS in my app), I didn’t test to tweak much ion badges on top of my ionic tabs icons.

One possible direction, is to give an id or class to the element, and then use it. It’s classic CSS work.
For example i use this:

  <ion-tab [root]="tab1Root" tabTitle="{{ 'ORDERS' | translate }}" tabIcon="basket" [tabBadge]="ordersCounter?.tempCounter1" tabBadgeStyle="danger"></ion-tab>
  <ion-tab [root]="tab2Root" tabTitle="{{ 'CUSTOMERS' | translate }}" tabIcon="person"></ion-tab>

But i could try this:

  <ion-tab [root]="tab1Root" tabTitle="{{ 'ORDERS' | translate }}" tabIcon="basket" [tabBadge]="ordersCounter?.tempCounter1" tabBadgeStyle="CustomCSSForBadge"></ion-tab>
  <ion-tab [root]="tab2Root" tabTitle="{{ 'CUSTOMERS' | translate }}" tabIcon="person"></ion-tab>

and then modify my CSS/SCSS, to make a .CustomCSSForBadge class style.
But as Ionic is a framework, I’m not sure all will work, until tested.

This is open to CSS anyways, feel free to test.

1 Like

Thanks ! For you, is it possible to do like this image ?

Someone have an idea please…?

Please someone ? :frowning:

Please … :frowning:

I’m quite sure it won’t work with images, this can’t fit into Material Design for Android or iOS basic design templates (and ionic uses them to be consistent, and work on top of what Google and Apple accept). Sorry @Quiesan

So all ionic application will have the same tabs bar…?