question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: collapsible large title background styling

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

I’m struggling for a while with collapsible large title and background styling now. I first though it would be only in relation with refresher: #23951 but it also is without.

Please the the attached Video from a native App (with Refresher but should be similar without):

https://user-images.githubusercontent.com/20899975/135641890-228ed15d-8b4f-4619-9eed-21e1519fe2b4.MOV

I want to be able to have a complete background colored header (including the large title). If i scroll down (where the refresher comes up or if there is no one, the title gets a small step bigger) the background should be in the same color.

Currently when creating a nearly similar look by setting the color on the main toolbar directly, there comes up this gap:

Expected Behavior

I think we have to decide if we want show the content above the header in expanded state. I saw many native apps that look like the video above and i really like this look 😃

In that case the opacity should not be set to 0 and the gap has to be filled somehow 🤔

Steps to Reproduce

I guess no reproduction is needed here and this is more kind of a discussion ticket if such a functionality should find it way into the framework (i hope so) 😃

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
EinfachHanscommented, Oct 7, 2021
<ion-header translucent="true">
  <ion-toolbar style="background: #3880ff">
    <ion-title>Pull To Refresh</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content fullscreen="true">
   <ion-header collapse="condense">
     <ion-toolbar color="primary">
       <ion-title size="large">Pull To Refresh</ion-title>
     </ion-toolbar>
   </ion-header>
  ...
</ion-content>

results in

Bildschirmfoto 2021-10-07 um 15 43 57

thats why i target the main header and add

.custom-header.header-collapse-condense-inactive {
  ion-toolbar {
    background: var(--ion-color-primary)
  }
}

what results in this:

Bildschirmfoto 2021-10-07 um 12 58 57

This has the shown gap but works with the translucent effect

0reactions
ionitron-bot[bot]commented, Nov 13, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: collapsible header: main + inactive header does not have ...
Once you collapse the large title, the smaller header fades in and the smaller header's background color is visible. In the case of...
Read more >
The Large Title UINavigationBar Glitches and How to Fix Them
Bonus Trick: Styling the Large Title Navigation Bar. If you are using the large title navigation bar, most probably you will want to...
Read more >
Large title navigation bar tint color - Apple Developer
I have a large title navigation bar with a custom tint color. ... is supposedly used when at the top of a scroll...
Read more >
【Wider Style】 RAUBAY 78.7in x 74.8in Large Collapsible ...
【Wider Style】 RAUBAY 78.7in x 74.8in Large Collapsible Green Screen Backdrop Portable Retractable Chroma Key Panel Photo Background with Stand for Video ...
Read more >
iOS 11 large-title navigation bar not collapsing - Stack Overflow
It's an odd bug. The fix is to toggle OFF prefersLargeTitles in the storyboard and to set this in viewDidLoad of your nav...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found