Skip to content

[tabs] Re-render indicator position on tab resize - #4165

Merged
atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/tabs-indicator-layout-shift-fix
Mar 2, 2026
Merged

atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/tabs-indicator-layout-shift-fix

Conversation

@atomiks

@atomiks atomiks commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

In fixed layouts, observing the dimensions of the tabs list element isn't enough: each tab needs to also be observed.

Fixes #4156 (https://stackblitz.com/edit/nhyjse4x-irvdzugx?file=src%2FApp.tsx)

@atomiks atomiks added component: tabs Changes related to the tabs component. type: bug It doesn't behave as expected. labels Feb 23, 2026
@pkg-pr-new

pkg-pr-new Bot commented Feb 23, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/@base-ui/react@4165
    
    pnpm add https://pkg.pr.new/@base-ui/utils@4165
    

commit: 86f94e8

@mui-bot

mui-bot commented Feb 23, 2026 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react 🔺+555B(+0.12%) 🔺+162B(+0.11%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 6e31bb2
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69a526d4d1aa790008732368
😎 Deploy Preview https://deploy-preview-4165--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks marked this pull request as ready for review February 23, 2026 04:55
@atomiks
atomiks force-pushed the codex/tabs-indicator-layout-shift-fix branch from 661eae4 to 85e5aae Compare February 23, 2026 04:57

@mj12albert mj12albert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ~

@atomiks
atomiks force-pushed the codex/tabs-indicator-layout-shift-fix branch from 93241a6 to f73d188 Compare March 2, 2026 05:40
@atomiks
atomiks merged commit f17a4bb into mui:master Mar 2, 2026
6 checks passed
@atomiks
atomiks deleted the codex/tabs-indicator-layout-shift-fix branch March 4, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: tabs Changes related to the tabs component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tabs] Tabs.Indicator position not updated when sibling tab resizes in a scrollable list

3 participants