[Tabs] Tab container won't scroll when only one tab is (partially) visible #32748
Closed
2 tasks done
Labels
bug 馃悰
Something doesn't work
component: tabs
This is the name of the generic UI component, not the React module!
regression
A bug, but worse
Duplicates
Latest version
Current behavior 馃槸
I expect the
Tabs
container to be scrollable, also when only one tab is (partially) visible. Right now scrollable behavior is not working when the parent width is smaller than the width of a singleTab
. I forked the demo CodeSandbox to illustrate the bug.Expected behavior 馃
The Tab container should scroll an
X
amount, even when the parent container cannot fit the width of a Tab.Steps to reproduce 馃暪
Steps:
Tabs
component that has a width <= to a single childTab
.Context 馃敠
I'm trying to use scrollable Mui tabs in tight spaces where the display name of the tab also has a variable length. Sometimes this results in the tabs component having a width smaller than a single tab.
Your environment 馃寧
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: