Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs panel content overflow #1852

Open
dlnr opened this issue Feb 3, 2025 · 0 comments
Open

Tabs panel content overflow #1852

dlnr opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dlnr
Copy link
Contributor

dlnr commented Feb 3, 2025

There is something weird in CSS grid that causes it's items to overflow if there are child present that have overflow: auto. If you add content to the panel (like a <Table> or <DescriptionList> and fill it with content that should break on small screens it instead sizes its width to the desired size of the tabs. It's hard to explain but I do know how to fix it.

Image

The solution is to add this to the <Tabs.Panel> component:

min-inline-size: 0;

And it will provide the correct overflow-x rules:

Image
@RubenSibon RubenSibon added the bug Something isn't working label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants