[Tabs]: Disabled tabs are still clickable and active
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Detailed description
Describe in detail the issue you’re having.
Passing the disabled prop to a tab only impacts the style, the Tabs component will still switch contents when a disabled tab is clicked
What did you expect to happen? What happened instead? What would you like to see changed?
Disabled tabs should have no effect when clicked
Steps to reproduce the issue
- Go to tabs storybook
- Under the
knobs
panel of storybook enable theDisabled
knob - Click the tabs, they are still active and change the content of the Tabs component
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Can you disable tabs in Bootstrap? - Stack Overflow
For any nav component (tabs, pills, or list), add .disabled for gray links and no hover effects. Links will remain clickable, however, ...
Read more >How to disable tabs in Bootstrap ? - GeeksforGeeks
To show a case of disabling tabs, first, we go through an example with tabs enabled.
Read more >How to Disable Tabs in Bootstrap - Tutorial Republic
Answer: Remove data-toggle="tab" from Tabs. You can remove the attribute data-toggle="tab" from the tab's <a> element to disable a Bootstrap tab.
Read more >Navs and tabs · Bootstrap v5.0
Navigation available in Bootstrap share general markup and styles, from the base .nav class to the active and disabled states. Swap modifier classes...
Read more >ARIA: tab role - Accessibility - MDN Web Docs - Mozilla
All of the tabpanel elements have tabindex="0" to make them tabbable, and all but the currently active one have the hidden attribute. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey! I’m gonna try and tackle this one.
Cool to see you are jumping in @abbeyhrt! One suggestion is searching for
pointer-events
in our codebase and see if there is something similar to this case.