-
Notifications
You must be signed in to change notification settings - Fork 101
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(ui-tabs): add active property to tabs #1327
Conversation
Preview URL: https://1327--preview-instui.netlify.app |
5d43dfb
to
05f8708
Compare
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.
Looks good. While I'm not a fan of this new API (its confusing, e.g. why am I able to specify children to all tabs when 1 will be rendered anyway?) I guess we cant do more without breaking changes. In the future we should switch to a similar structure as material-ui IMO https://mui.com/material-ui/react-tabs/#experimental-api
77cee34
to
3c4e72f
Compare
4144e40
to
6d2e2f6
Compare
Closes: INSTUI-3876 Add support for multiple tabs->one tab panel. This makes using React Router easier with less boilerplate code.
6d2e2f6
to
5389732
Compare
expect(childContent).toBeNull() | ||
}) | ||
|
||
it('should render the same content in second tab when selected', () => { |
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.
I added a test as you requested. @matyasf
Closes: INSTUI-3876
Add support for multiple tabs->one tab panel. This makes using React Router easier with less boilerplate code.
Test plan: check if the new example in the Tabs page works fine.