-
Notifications
You must be signed in to change notification settings - Fork 377
docs(Tabs): add tables and tabs auto width tabs demo #7183
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
docs(Tabs): add tables and tabs auto width tabs demo #7183
Conversation
|
Preview: https://patternfly-react-pr-7183.surge.sh A11y report: https://patternfly-react-pr-7183-a11y.surge.sh |
mcarrano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @wise-king-sullyman !
kmcfaul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall just a minor question about prop name which I'd be happy with either way.
| /** Enables vertical tab styling */ | ||
| isVertical?: boolean; | ||
| /** Enables no border bottom tab styling */ | ||
| hasNoBorderBottom?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker but I wonder whether the prop should be called hasBorderBottom with a false value instead of hasNoBorderBottom with a true value? I know the css prop is called noBorderBottom but I feel like I don't see "no{X}" props as much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I also didn't like that prop name here for that reason, but having it not match the class name also didn't feel ideal. If you prefer that route though I'm 100% on board.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think making it feel more intuitive to the consumer might be better than making it match the core class name. Im in support of avoiding the double negative.
|
Could you add a sentence or two in the docs to clarify what this demo is highlighting? |
What: Closes #6860
This PR also adds a prop to apply the
noBorderBottomstyling as needed by the associated demo, and a test to verify that prop works as expected.Additional issues:
Convenience link directly to the added demo: https://patternfly-react-pr-7183.surge.sh/components/tabs/react-demos/tables-and-tabs-auto-width-tabs/