Carbon: Tab component throws warning about Href and tabIndex

Created on 6 Nov 2020  ·  2Comments  ·  Source: carbon-design-system/carbon

Having this code:
<Tabs> <Tab> hello </Tab> </Tabs> throws console warnings, which break our unit tests:

index.js:27 Warning: The prop `href` has been deprecated for the Tab component. It will be removed in the next major release 
    in App (at src/​index.js:13)
index.js:27 Warning: The prop `tabIndex` has been deprecated for the Tab component. It will be removed in the next major release 

I'm not passing those in, probably the default props inside Tab is doing this?

You can see here
https://codesandbox.io/s/sleepy-sid-h56nf

needs triage 🕵️‍♀️ waiting for maintainer response 💬 bug 🐛

Most helpful comment

All 2 comments

Will this fix be included in a 7.23.x? (we can't afford to ride your wave of minor releases, as they consistently introduce breaking changes and regressions)

Was this page helpful?
0 / 5 - 0 ratings