Bug Report
Ionic version:
[x] 4.3.1
Current behavior:
In an ion-toolbar, when placing an ion-back-button in the end slot, the button has no spacing applied to it. It is squeezed all the way to the right, and the size is larger than expected. The same applies to the primary slot.
Expected behavior:
I expect ion-back-button to behave the same way as ion-icon - see screenshots below.
Related code:
ion-back-button lacks margin:
<ion-header>
<ion-toolbar color="dark">
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>My header</ion-title>
<ion-buttons slot="end">
<ion-back-button [defaultHref]="defaultHref" text="" icon="paper"></ion-back-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
I expect the ion-back-button to behave like an ion-button
<ion-header>
<ion-toolbar color="dark">
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>My header</ion-title>
<ion-buttons slot="end">
<ion-button>
<ion-icon name="paper"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
Other information:
Bug:

Expected:

Ionic info:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/Users/remisture/.nvm/versions/node/v10.15.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.3.1
@angular-devkit/build-angular : 0.13.8
@angular-devkit/schematics : 7.3.8
@angular/cli : 7.3.8
@ionic/angular-toolkit : 1.5.1
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 13 other plugins)
System:
ios-deploy : 1.9.4
NodeJS : v10.15.3 (/Users/remisture/.nvm/versions/node/v10.15.3/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001
Bug Report
Ionic version:
[x] 4.3.1
Current behavior:
In an
ion-toolbar, when placing anion-back-buttonin theendslot, the button has no spacing applied to it. It is squeezed all the way to the right, and the size is larger than expected. The same applies to theprimaryslot.Expected behavior:
I expect
ion-back-buttonto behave the same way asion-icon- see screenshots below.Related code:
ion-back-buttonlacks margin:I expect the
ion-back-buttonto behave like anion-buttonOther information:


Bug:
Expected:
Ionic info: