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

fix(tile): added deprecation warnings for v11 #9571

Closed
wants to merge 10 commits into from

Conversation

sstrubberg
Copy link
Member

@sstrubberg sstrubberg commented Aug 30, 2021

Refactored most of Tile to be a Functional component and added deprecation warnings for handleClick and handleKeyDown. Added deprecation warnings to Button as well.

Halp

Tests are failing all over the place. Could use another set of eyes.

@netlify
Copy link

netlify bot commented Aug 30, 2021

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

🔨 Explore the source changes: 34392a5

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

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

@netlify
Copy link

netlify bot commented Aug 30, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: 34392a5

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

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

@netlify
Copy link

netlify bot commented Aug 30, 2021

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

🔨 Explore the source changes: 34392a5

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

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

@sstrubberg sstrubberg changed the title fix(prop-changes): added warning to Button for handleClick fix(tile): added deprecation warnings for v11 Sep 3, 2021
Copy link
Contributor

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Looking great! Just left a style nit comment, the only other thing that came to mind was if we needed to use React.forwardRef here.

Sometimes, our class components are used in a way where people are passing in a ref to them and they consider it a breaking change if ref no longer works for a component. I'm not sure what the best way forward is with this and would love to hear your thoughts on if we should go for the functional components or if React.forwardRef may be an okay compromise 👀

packages/react/src/components/Tile/Tile.js Outdated Show resolved Hide resolved
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.

2 participants