-
Notifications
You must be signed in to change notification settings - Fork 1
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
BREAKING CHANGE(web-react): Rename Tabs props and clean up its types #DS-1096 #1405
Conversation
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
6212b9d
to
6bafe41
Compare
@crishpeen Please, rebase this first. |
3e4ae81
to
ffb2eef
Compare
packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx
Outdated
Show resolved
Hide resolved
I've added a few comments in test files, but It could be a topic for discussion about how to write them. So please just take it as an idea. |
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.
TBH, I don't quite understand all the changes here, but the fix of the API looks good to me.
I also expect there will be an ongoing discussion about Twig vs. React Tabs
.
packages/codemods/src/transforms/v2/web-react/tabs-tabitem-tabpane-props.ts
Show resolved
Hide resolved
…#DS-1096 Rename TabItem prop `forTab` to `forTabPane`. Rename TabPane prop `tabId` to `id`. See the Tabs: TabItem and TabPane Props section in the web-react package Migration Guide to version 2.
Rename TabItem prop `forTab` to `forTabPane`. Rename TabPane prop `tabId` to `id`.
34a2319
to
88454e6
Compare
Description
Additional context
Issue reference