Skip to content

[Tabs] Add animation support for content #1346

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

Merged
merged 6 commits into from
May 20, 2022
Merged

[Tabs] Add animation support for content #1346

merged 6 commits into from
May 20, 2022

Conversation

andy-hook
Copy link
Contributor

@andy-hook andy-hook commented Apr 27, 2022

closes #860

Very similar to our approach for Collapsible with a couple of modifications (we don't need to measure in this case). I assume we have historic / a11y reasons for controlling render of children rather than on wrapping element, hence my use of the render prop in this instance.

@andy-hook andy-hook marked this pull request as ready for review April 27, 2022 17:09
@benoitgrelard
Copy link
Contributor

The chromatic diff is weird:
CleanShot 2022-05-20 at 14 34 02@2x

First time I ever see everything moved a tiny bit, there must be a reason 🤔

@andy-hook
Copy link
Contributor Author

First time I ever see everything moved a tiny bit, there must be a reason

I'll check it out, this branch is quite a bit behind now so needs a refresh anyway

@benoitgrelard benoitgrelard merged commit 63388fd into main May 20, 2022
@benoitgrelard benoitgrelard deleted the tabs-presence branch May 20, 2022 13:57
luisorbaiceta pushed a commit to luisorbaiceta/primitives that referenced this pull request Jul 21, 2022
* Add presence to tabs

* Versions

* Add deps

* Move story style dec

* Simplify animation prevention

* Story code style
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.

[Tabs] Add Presence to TabContent to support unmount animation
2 participants