-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add fitted
prop to TabPanel
#52845
Add fitted
prop to TabPanel
#52845
Conversation
Size Change: +58 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Could this feature wait a little bit? We are in the process of building a new version of this component that would be more modular in design, so that the consumer can achieve this kind of tab style more easily, perhaps not even requiring a prop. cc @chad1008 |
It can totally wait :) |
Let's close this PR for now, since — as @mirka explained — we're working on a new version of We can always re-open this PR in the future if needed. |
Part of #42320.
What?
Adds a
fitted
prop to theTabPanel
component. Whentrue
, tabs will grow to fill their container horizontally.Why?
Sometimes this layout is desirable, so it would be good to have a consistent way of achieving it.
An example of something we might do:
This addition would also facilitate the removal of the custom styling that currently implemented in order to achieve this layout in the block inspector:
How?
Add
fitted
prop toUnforwardedTabPanel
. Whentrue
, child.components-tab-panel__tabs-item
elements receive:Testing Instructions
npm run storybook:dev
).true
.