-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] Add a disabled property #6112
Conversation
src/Tabs/Tab.js
Outdated
@@ -62,6 +62,10 @@ export default class Tab extends Component { | |||
*/ | |||
className: PropTypes.string, | |||
/** | |||
* Disables the tab if set to true. |
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.
Please could you follow this pattern for prop naming?
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.
Thanks for pointing this out
@irfanhudda Thanks for porting the PR. I'm wondering, shouldn't we need to change the style? |
@@ -31,3 +31,9 @@ Tab labels may be either all icons or all text. | |||
|
|||
{{demo='demos/tabs/IconTabs.js'}} | |||
{{demo='demos/tabs/IconLabelTabs.js'}} | |||
|
|||
## Disabled Tab |
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 don't think that we need a new example section for that. We could add a disable variation in one of the previous examples.
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 am not sure which example to modify. There are four here
- Basic Tabs
- Full width Tabs
- Centered
- Icon Tabs
Can you point out which should be modified?
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.
Actually, that sounds good to me like this 👍
Thanks for suggestion. I added some styles to disabled tab. |
d653555
to
dd11932
Compare
I will update the regressions test once it's merged. |
Associated Issue: #1613
Summary of changes
Tab
componentTab
api doc.Let me know if I missed something