You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a toolbar with a menu-button, the menu-button's padding will be offset differently if there is a ion-title vs ion-segment
Expected behavior:
The padding should be consistent.
Steps to reproduce:
Related code:
Here the button's padding is wrong
<ion-header><ion-toolbar><ion-buttonsslot="start"><ion-menu-button></ion-menu-button></ion-buttons><ion-segment><ion-segment-buttonvalue="all">
All
</ion-segment-button><ion-segment-buttonvalue="favorites">
Favorites
</ion-segment-button></ion-segment></ion-toolbar></ion-header>
This was added in Toolbar so that when a segment is the only component in the toolbar it won't have any padding around it, but I agree that it looks weird with buttons in the toolbar with it. I don't want to remove this in it's entirety since it's needed for that use case so I will look into a better solution.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
brandyscarney commentedon Feb 14, 2019
Okay finally got to debug this. The source of this bug is the following CSS: https://github.com/ionic-team/ionic/blob/master/core/src/components/toolbar/toolbar.md.scss#L33-L38
This was added in Toolbar so that when a segment is the only component in the toolbar it won't have any padding around it, but I agree that it looks weird with buttons in the toolbar with it. I don't want to remove this in it's entirety since it's needed for that use case so I will look into a better solution.
merge release-4.4.1
ionitron-bot commentedon Jun 16, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.