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: primary toolbar inside header with collapse fade

See original GitHub issue

Prerequisites

Ionic Framework Version

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

Current Behavior

IonToolbar with color primary not showing inside of IonHeader defined with collapse of type fade

Expected Behavior

IonToolbar should be showing inside of IonHeader no matter of his properties

Steps to Reproduce

import '@ionic/core/css/core.css'
import { IonApp, IonContent, IonHeader, IonToolbar, setupIonicReact } from '@ionic/react'
import { createRoot } from 'react-dom'

setupIonicReact()

createRoot(document.getElementById('root')).render(<IonApp>
  <IonHeader collapse="fade">
    <IonToolbar color="primary">my title</IonToolbar>
  </IonHeader>
  <IonContent>
    Hello World
  </IonContent>
</IonApp>)

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sean-perkinscommented, Dec 17, 2021

Hello Nathan, if you have time it’d be extremely helpful to have a live code reproduction to test with and verify against. Thanks!

0reactions
ionitron-bot[bot]commented, Jan 24, 2022

Thanks for the issue! This issue is being closed due to the lack of a reply. 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.

Thank you for using Ionic!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Collapsing Toolbar and Fragment - Stack Overflow
I have an app that is laid out like this, the mainactivity hosts 2 tabs with accompanied fragments, the first fragment has a...
Read more >
Handling Scrolls with CoordinatorLayout - CodePath Cliffnotes
Expanding or contracting the Toolbar or header space to make room for the main content. Controlling which views should expand or collapse and...
Read more >
MotionLayout — Collapsing Toolbar | by Mr Umbrella
It means that the height of the toolbar doesn't change. So in order to keep the collapsed title stand still, we need to...
Read more >
Flutter Tutorial - Sliver App Bar & Collapsing Toolbar [2021]
The Flutter SliverAppBar & Collapsing Toolbar allow to specify an individual scrolling behaviour for your App Bars in Flutter.
Read more >
Collapsing Toolbar with RecyclerView - YouTube
In this video I show you how to implement some custom scrolling behavior for toolbars when used in the same layout as a...
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