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
Prop to control tablist container class #4818
Comments
Why? Are you using this for styling? Can you instead use the selector:
|
@adidahiya Because:
|
Sure, but we also like to be prescriptive about certain parts of the design system, for consistency's sake. We don't want everything to be endlessly customizable. Every new component prop adds a maintenance burden. Can you explain what kind of styling you're trying to achieve? What will you do with your custom class after you apply it to the tab list container? |
You don't need a new prop to do this. Just style it with a descendant CSS selector like this: https://codesandbox.io/s/busy-faraday-nqdv6p?file=/src/app.css |
Environment
Feature request
Currently, I am limited to using
Tabs
components with onlyclassName
prop, which only allows toset the classes for parent container (containing both the list items and the panel containers).
I wish to be able to set classes for only the list container but not the panel containers.
Examples
should be rendered as:
The text was updated successfully, but these errors were encountered: