-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Ionic 2: iOS navbar height too large when component with button+badge inserted. #7106
Comments
This is caused by the
Thanks! |
Great, thanks. |
Hi @brandyscarney this issue has regressed with the removal of the category attribute. I have update my html to be:
But now it looks like this: |
@daveshirman <button ion-button="bar-button" icon-only (click)="showNotificationsModal()">
<ion-icon *ngIf="notificationsCount == 0" name="cloud-upload"></ion-icon>
<ion-badge *ngIf="notificationsCount > 0" color="complete">{{notificationsCount}}</ion-badge>
</button> Now category is passed like this: |
Perfect. Thank you. |
Short description of the problem:
If you declare a custom component with a button that contains a
badge
or anicon
and import it into a navbar, the height of the component is too large, causing the navbar to swell in height on iOS.What behavior are you expecting?
Navbar height is not affected, component height is correct.
Steps to reproduce:
badge
or anicon
(see code block).custom-component template:
page navbar template:
Result:
Which Ionic Version?
2.x
Run
ionic info
from terminal/cmd prompt: (paste output below)The text was updated successfully, but these errors were encountered: