[TabPanel] No way to overflow using scroll
See original GitHub issueDescribe the bug
For a TabPanel, I want it to (on overflow) allow scrolling, however, even after adding overflow="scroll"
as prop, I cannot seem to find a way to do so.
Expected Behavior Able to scroll on the X or Y axis in the event of an overflow.
Am I missing something or is this a feature that is not in Chakra?
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
nav-tabs Not Scrolling with overflow-x: scroll
First, the default behavior is moving items to next line. I fixed this with white-space: nowrap and flex-wrap: nowrap . And I realized...
Read more >Is there way to make lightning-tabset scrollable?
You will not be able to scroll the lightning-tabs with ... Limited height should force scroll. If not add also overflow-y: scroll;
Read more >Keep tab scrolling overflow, but disable auto tab scrolling
When you open too many tabs, it starts an overflow where you can use the arrows or your scroll wheel to scroll the...
Read more >Overflow - Tailwind CSS
Use overflow -x-scroll to allow horizontal scrolling and always show scrollbars unless always-visible scrollbars are disabled by the operating system. Andrew.
Read more >Element settings- Tabs scroll - formtitan support
Once the total width of the tabs in a tabbed section is larger than the width of the Section itself, a scroll is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just checked it. There’s no problem with the
TabPanel
, it’s mostly a styling issue.You need to add
maxHeight
andoverflowY
to get it to work correctly.Here’s a working example: https://codesandbox.io/s/wonderful-gauss-6rc6b
What works for me is setting
display='flex'
andflexDirection='column'
to<Tabs>
component and thenoverflowY='scroll'
to<TabPanels>
component.