`<ion-buttons start>` not working inside `<ion-navbar>`
See original GitHub issueIonic version: (check one with “x”) [ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [x] 3.x
I’m submitting a … (check one with “x”) [x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior: Trying to just copy and paste documentation example of how to add buttons to a navbar (From here: https://ionicframework.com/docs/components/#buttons-in-components).
The example contains two ion-buttons
component, with start
and end
directives each.
The end
directive runs fine. The start
doesn’t.
Expected behavior:
It should work just as documented, no questions here.
Steps to reproduce:
I’ve made a plunker to reproduce it: http://embed.plnkr.co/KQluWF/
Related code:
Other information:
Ionic info: (run ionic info
from a terminal/cmd prompt and paste output below):
global packages:
@ionic/cli-utils : 1.4.0
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.12
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework : ionic-angular 3.5.0
System:
Node : v6.11.0
OS : Linux 4.4
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 5.0.4
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
This is actually the desired behavior for both the buttons and titles. The Toolbar Docs have a more detailed explanation of where the buttons are placed in toolbar/navbars:
ios
mode, and directly to the right inmd
andwp
mode.ios
mode, and to the far right inmd
andwp
mode.What this means is in
ios
mode usingstart
will be placed to the left of any content (for example a title), and inmd
/wp
mode it will be placed to the right of any content. If you want a button to always be on the left of any content, regardless of the mode, you should use theleft
attribute:Please let me know if you have questions, thanks!
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.