Skip to content

feat(tab-bar): add hideOnScroll for ionic theme#31085

Merged
joselrio merged 15 commits intonextfrom
ROU-12708
Apr 21, 2026
Merged

feat(tab-bar): add hideOnScroll for ionic theme#31085
joselrio merged 15 commits intonextfrom
ROU-12708

Conversation

@joselrio
Copy link
Copy Markdown
Contributor

@joselrio joselrio commented Apr 16, 2026

Issue number: internal


This pull request introduces a new feature to the ion-tab-bar component that allows it to automatically hide when the user scrolls down and reappear when scrolling up.

What is the current behavior?

  • Missing hide-on-scroll feature

What is the new behavior?

  • New Hide-on-Scroll Feature for Tab Bar

What was done?

Component Logic & API:

  • Added a new hideOnScroll property to ion-tab-bar, enabling automatic hide/show behavior based on scroll direction when the theme is "ionic" and expand is "compact". The scroll listener is attached to the nearest ion-content for scroll detection. (core/src/components/tab-bar/tab-bar.tsx, core/api.txt) [1] [2] [3] [4] [5] [6]

Styling:

  • Updated SCSS to handle the hide/show animation and positioning for the tab bar when hideOnScroll is enabled, including transitions and transforms for both bottom and top slots. (core/src/components/tab-bar/tab-bar.ionic.scss) [1] [2]

Framework Integrations:

  • Updated Angular proxies to support the new hideOnScroll input, ensuring compatibility with Angular apps. (packages/angular/src/directives/proxies.ts, packages/angular/standalone/src/directives/proxies.ts) [1] [2]

Testing & Documentation:

  • Added a new test page demonstrating the hide-on-scroll behavior, along with usage requirements and visual confirmation. (core/src/components/tab-bar/test/hide-on-scroll/index.html)

Does this introduce a breaking change?

  • Yes
  • No

Other information

  • This prop will only affect Ionic theme;
  • ion-tab-bar expand property must be set to compact;
  • It should be used inside an ion-footer;

@joselrio joselrio requested a review from a team as a code owner April 16, 2026 09:42
@joselrio joselrio requested a review from thetaPC April 16, 2026 09:42
@joselrio joselrio added the type: feature request a new feature, enhancement, or improvement label Apr 16, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 16, 2026

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

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment Apr 21, 2026 11:10am

Request Review

@github-actions github-actions Bot added package: core @ionic/core package package: angular @ionic/angular package labels Apr 16, 2026
@joselrio joselrio changed the title feat(TabBar): Adding new @HideOnScroll for ionic theme feat(TabBar): Adding new HideOnScroll for ionic theme Apr 16, 2026
@joselrio joselrio changed the title feat(TabBar): Adding new HideOnScroll for ionic theme feat(TabBar): adding new hideOnScroll for ionic theme Apr 16, 2026
Comment thread core/src/components/tab-bar/tab-bar.ionic.scss Outdated
Comment thread core/src/components/tab-bar/tab-bar.ionic.scss Outdated
Comment thread packages/angular/src/directives/proxies.ts
@thetaPC thetaPC changed the title feat(TabBar): adding new hideOnScroll for ionic theme feat(tab-bar): add hideOnScroll for ionic theme Apr 16, 2026
@thetaPC
Copy link
Copy Markdown
Contributor

thetaPC commented Apr 16, 2026

I've updated the PR title to match the standards specifically the scope, please review the format.

Comment thread core/src/themes/functions.color.scss
Comment thread core/src/components/tab-bar/tab-bar.ionic.scss Outdated
@joselrio joselrio merged commit fee45ab into next Apr 21, 2026
49 checks passed
@joselrio joselrio deleted the ROU-12708 branch April 21, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package type: feature request a new feature, enhancement, or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants