Skip to content

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

Closed

Description

@dartzki

Describe the Bug

Using the basic ion-tab-bar layout with IonReactRouter, the IonContent Component goes over the Tabbar when the is placed in the bottom slot.

Can be reproduced with the Tabs Layout react example from the Layout/Structure Guide Page in Stackblitz:
https://ionicframework.com/docs/layout/structure#tabs-layout

Strangely the problem cannot be observed in the preview directly displayed on the page, but only when displayed in stackblitz.

Also the problem ist not reproducible using the vue stackblitz app.

Expected Behavior

The IonContent should not overlap with the IonTabBar in bottom slot

Steps to Reproduce

Stackblitz example from https://ionicframework.com/docs/layout/structure#tabs-layout

Screenshots

image

Operating System

Linux

Browser

Chrome

Version

130.0.6723.91 (Official Build) (64-bit)

Additional Information

No response

Activity

  1. thetaPC commented on Mar 14, 2025

    @thetaPC
    Contributor

    Thank you for submitting this issue! I was able to reproduce it and verified that it only happens on React when using the router. However, it's not coming from this repo instead it's coming from Ionic Framework repo. I'll be transferring it over to it.

  2. added
    package: react
    on Mar 14, 2025
  3. ShaneK commented on Dec 11, 2025

    @ShaneK
    Member

    This actually is an Ionic docs error, this is happening because the views are not using IonPage. I'm gonna go ahead and move it to docs and then I'll put a PR up there to fix it

  4. added theissue type on Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: react

    Type

    Fields

    Stage

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions