fix(TabList): recalculate overflow on resize - #22719
Conversation
✅ Deploy Preview for v3-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v2-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
7f41e95 to
ff9f401
Compare
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22719 +/- ##
==========================================
+ Coverage 89.53% 89.56% +0.02%
==========================================
Files 581 581
Lines 53198 53205 +7
Branches 7264 7235 -29
==========================================
+ Hits 47632 47651 +19
+ Misses 5427 5416 -11
+ Partials 139 138 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
devadula-nandan
left a comment
There was a problem hiding this comment.
i could notice a regression, the buttons still show even if there is nothing to scroll
Screen.Recording.2026-07-20.at.2.44.50.PM.mov
Hi @devadula-nandan I pushed an update with the changes. |
|
for anyone testing this pr. i hope this would be helpful. Screen.Recording.2026-07-24.at.3.21.43.PM.mov@Subhom1 these changes improves the responsiveness of tabs overall. and adapts them to container's dynamic size i notice just 1 issue. initially the second button shows even if the scroll area ends. but once it settles it works as expected. Screen.Recording.2026-07-24.at.3.30.12.PM.mov |
I pushed a new update with the changes. |
e1ad12a
Closes #11783
Fixes stale
TabListoverflow controls when the tab list is rendered inside a container that changes size without triggering a window resize, such as an animatedHeaderPanel.TabListnow observes its own dimensions and recalculates its scrollability and overflow-navigation state whenever its width changes.Changelog
New
Changed
TabListto observe its own dimensions withResizeObserver.contracts.
Removed
Testing / Reviewing
Use the repository Node version:
Run the focused Tabs tests:
Verify that the regression test:
clientWidthof0.a click.
Run the remaining focused checks:
Test Screenshots
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
Updated documentation and storybook examplesTested for cross-browser consistencyMore details can be found in the pull request guide