-
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
Impossible to hide navbar on Tab Page #5556
Comments
ion-navbar-section { will be a workaround |
@davyzhang , CSS is a not worthy workaround as it will apply the style globally and all pages will be affected. While what we want is to customise a certain pages only. |
@Yagger are you still experiencing this issue with beta.3? |
This is definitely an issue. My workaround at the moment is:
|
This is actually a challenge, because how will the app react when it transitions between pages with a navbar, and ones without? |
@Yagger here is a solid workaround that has done me well:
|
@adamdbradley if you mean animation-wise, then I don't know much about its mechanics, and as you said on one of the conferences, its complex, so you definitely know better. Otherwise I don't get the challenge behind it and don't have any ideas to help. If you can describe the challenge better, then may be the community will be able to throw few ideas in. But, at least in my case, this functionality is important. I have lists of items with the custom header (or without one), and the item pages with the standard navbar and back button. Then the other tabs have their own looks. I suppose in the custom look apps this will be a common requirement. Thanks! |
@marcus-robinson thanks for a hint! |
I'm hoping header shrink will be resurrected for v2 which might cover some use cases here. |
You can achieve navbar hiding animaton in Ionic2 like this:
|
Thanks for the report, this should be fixed in the next release. Thanks! |
Thanks for the fix ! But now it hides the navbar even if there is one in the parent page containing the tabs... |
@adamdbradley confirm it works, thanks for update! |
@SegoleneM Could you create a separate issue for this with more information? Maybe a code sample or plunker? Thanks! 😄 |
How can I get the same config of @marcus-robinson but using typescript? Because I'm receiving this error:
|
This is still not fixed? Or am I missing something? |
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. |
Short description of the problem:
For the Tab Page, when avoiding
<ion-navbar>
tag on page template,the<ion-navbar-section>
component is still generated and the black header is visible.What behavior are you expecting?
Avoiding
<ion-navbar *navbar>
tag should not generate Navbar component.Steps to reproduce:
ionic start TabsTest tabs --v2
ionic serve
and note the black headerScreenshot here: https://www.evernote.com/l/AlqDypkUy5pEyJ9qUNrsM7bk-ZXJxGHtgsU
Ionic Version: 2.x
Browser & Operating System: Chrome
Run
ionic info
from terminal/cmd prompt:The text was updated successfully, but these errors were encountered: