Skip to content
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

chore(Tabs): added prop deprecation warnings for v11 #9644

Closed

Conversation

sstrubberg
Copy link
Member

@sstrubberg sstrubberg commented Sep 10, 2021

REF #9535

Changelog

  • Added deprecation warnings for handleTabClick and handleTabKeyDown to Tab.
  • Updated the PublicAPI test snapshot.
  • Added comments in the appropriate areas to remove deprecations for the next major release.

Testing / Reviewing

  • Check the Tab stories and make sure everything is firing off as it should.
  • Make sure tests are passing.

@netlify
Copy link

netlify bot commented Sep 10, 2021

✔️ Deploy Preview for carbon-react-next ready!

🔨 Explore the source changes: 7c05a14

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/6140b1566b50fc00081c3479

😎 Browse the preview: https://deploy-preview-9644--carbon-react-next.netlify.app

@netlify
Copy link

netlify bot commented Sep 10, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: 7c05a14

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/6140b155f2e8cb00091d6389

😎 Browse the preview: https://deploy-preview-9644--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Sep 10, 2021

✔️ Deploy Preview for carbon-components-react ready!
Built without sensitive environment variables

🔨 Explore the source changes: 7c05a14

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/6140b155c234de00073f21d4

😎 Browse the preview: https://deploy-preview-9644--carbon-components-react.netlify.app

@sstrubberg sstrubberg changed the title chore(prop-changes): added prop deprecation warnings for v11 chore(Tabs): added prop deprecation warnings for v11 Sep 13, 2021
@sstrubberg sstrubberg marked this pull request as ready for review September 13, 2021 20:24
@sstrubberg sstrubberg requested review from a team as code owners September 13, 2021 20:24
@joshblack joshblack requested review from joshblack and removed request for tw15egan September 14, 2021 21:55
Comment on lines +73 to +84
/**
* A handler that is invoked when a user clicks on the control.
* Reserved for usage in Tabs
*/
onTabClick: PropTypes.func,

/**
* A handler that is invoked on the key down event for the control.
* Reserved for usage in Tabs
*/
onTabKeyDown: PropTypes.func,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this component, would we want handleTabClick to go to onClick versus onTabClick?

Copy link
Contributor

@vpicone vpicone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @joshblack, the Tabs container/parent component has an onClick prop. We'd want to mirror that hear. Other than that looks good to me!

@sstrubberg sstrubberg closed this Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants