Skip to content

Conversation

@ShaneK
Copy link
Member

@ShaneK ShaneK commented Dec 11, 2025

resolves #4355

Fixes React tabs router examples to include IonPage wrapper around page content.

  • Wrap tab page components in IonPage to provide proper flex layout
  • Fixes issue where IonContent overlaps IonTabBar when placed in bottom slot
  • Updates examples for v6, v7, and v8

Problem

The React tabs router examples were missing the IonPage wrapper, causing IonContent to extend over the IonTabBar.

Solution

Each routed tab page component needs to be wrapped in IonPage:

// Before (broken)
const HomePage = () => (
  <>
    <IonHeader>...</IonHeader>
    <IonContent>...</IonContent>
  </>
);
// After (fixed)
const HomePage = () => (
  <IonPage>
    <IonHeader>...</IonHeader>
    <IonContent>...</IonContent>
  </IonPage>
);

@ShaneK ShaneK requested a review from a team as a code owner December 11, 2025 22:30
@ShaneK ShaneK requested a review from brandyscarney December 11, 2025 22:30
@vercel
Copy link

vercel bot commented Dec 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ionic-docs Ready Ready Preview Comment Dec 11, 2025 10:30pm

@ShaneK ShaneK requested a review from thetaPC December 11, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ion-content goes over ion-tab-bar when setup with router

3 participants