-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(Tab): make tab functional component #9722
feat(Tab): make tab functional component #9722
Conversation
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 009724f 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/616f0d9acb8b510008d830a8 😎 Browse the preview: https://deploy-preview-9722--carbon-react-next.netlify.app |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 009724f 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/616f0d9a6b1b72000841ac6e 😎 Browse the preview: https://deploy-preview-9722--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 009724f 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/616f0d9a1f01950007d10a4a 😎 Browse the preview: https://deploy-preview-9722--carbon-components-react.netlify.app |
…ass-to-function/tabs
…ass-to-function/tabs
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.
Nice job!
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.
Hefty refactor! Looks awesome 🔥 I pulled up the existing storybook and started up the local storybook with the flag and went through the same interactions between them both with keyboard and mouse, small screens w/ scrolling, etc and it appears to be functionally the same without regressions.
Just a couple minor comments and questions below. Otherwise looks good to merge!
Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
…to class-to-function/tabs
…arbon-design-system#9722) ### Related Ticket(s) {{Provide url(s) to the related ticket(s) that this pull request addresses}} ### Description Updating the carbon-web-components references in the carbon-web-components' storybook docs and codesandbox examples. ### Changelog **Changed** 1. `carbon-web-components/es` ---> `@carbon/carbon-web-components/es` 2. CDN urls `https://1.www.s81c.com/common/carbon/web-components/...` --> `https://1.www.s81c.com/common/carbon-for-ibm-dotcom/carbon-web-components/...` 3. Codesandbox links in the storybook docs `https://codesandbox.io/s/github/carbon-design-system/carbon-web-components/tree/main/examples/codesandbox/basic/components/...` --> `https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/basic/components/...` <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Ref #9712
Changelog
Tab
to be a functional componentRemoved
role
prop bc it was no longer being used (changed in this PR: https://github.com/carbon-design-system/carbon/pull/6989/files) + added deprecation notice for itscrollable
classNames since there's a TODO: note to remove in major releasehref
prop bc it was deprecated in v10, but left deprecation note for itrenderAnchor
bc it was deprecated in v10, but left deprecation note for it (PR: https://github.com/carbon-design-system/carbon/pull/7418/files)Testing / Reviewing
packages/react
runCARBON_ENABLE_V11_RELEASE=true yarn storybook
to use the v11/next componentTo-do:
update styles to work for non--scrollable
classNames in v11