bug: using collapse="condense" on IonHeader from "Collapsible Large Titles" guide causes overlaps
See original GitHub issueBug Report
Ionic version:
[x] 4.x
Current behavior:
IonButtons
& IonTitle
are overlaped
Expected behavior:
There shouldn’t be an overlap here. It seems that second IonButtons
should be collapsed as they have collapse
set to true
.
Steps to reproduce:
Related code:
<IonPage>
<IonHeader>
<IonToolbar>
<IonButtons collapse={true}>
<IonButton>Click Me</IonButton>
</IonButtons>
<IonTitle>Home</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent>
<IonHeader collapse="condense">
<IonToolbar>
<IonButtons collapse={true}>
<IonButton>Click Me</IonButton>
</IonButtons>
<IonTitle size="large">Home</IonTitle>
</IonToolbar>
<IonToolbar>
<IonSearchbar/>
</IonToolbar>
</IonHeader>
{...}
</IonPage>
Other information:
I’ve took the Collapsiblle Large Titles small example from the original guide: https://ionicframework.com/docs/api/title#collapsible-large-titles
Ionic info:
Ionic:
Ionic CLI : 5.4.11 (/Users/ak/.nvm/versions/node/v10.16.3/lib/node_modules/ionic)
Ionic Framework : @ionic/react 4.11.8
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v10.16.3 (/Users/ak/.nvm/versions/node/v10.16.3/bin/node)
npm : 6.9.0
OS : macOS Catalina
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Bug? Large Titles IOS - Ionic Framework
Hey folks, I'm having an issue with IOS large titles - see attached screenshot …it's not fully shown for some reason.
Read more >Why are there two IonHeader tags in the blank project scaffold?
The first IonHeader is the defaupt one which is known for sure to you, the second one appears when scrolling down on ios,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@liamdebeasi ahh, okay, I got it, I should use upper header for those icons. Thx for explaining this.
The behavior you are describing is still possible. What I was referring to in my previous comment is having a button to the left of the “Favorites” text, which is not something that happens in the native iOS spec. The image you have posted shows a “+” button above the “Favorites” text.
To get the behavior you are describing, you would do something like: