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

Tabs: split animation logic into multiple separate composable utilities. #62942

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

DaniGuardiola
Copy link
Contributor

What?

I organized and documented these.

Why?

In a follow-up, I'm gonna move them to a shared file where they'll be used in other components (first one will be ToggleGroupControl.

How?

Make each utility do a single thing really well, document everything, ensure nice minimal APIs and types.

Testing Instructions

Tabs should still work properly, can check the storybook stories or places with tabs in Gutenberg.

Testing Instructions for Keyboard

n/a

Screenshots or screencast

n/a

@DaniGuardiola DaniGuardiola requested a review from ajitbohra as a code owner June 27, 2024 18:53
Copy link

github-actions bot commented Jun 27, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: DaniGuardiola <daniguardiola@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@DaniGuardiola DaniGuardiola requested a review from a team June 27, 2024 19:14
@DaniGuardiola DaniGuardiola self-assigned this Jun 27, 2024
@DaniGuardiola DaniGuardiola added the [Type] Code Quality Issues or PRs that relate to code quality label Jun 27, 2024
@DaniGuardiola DaniGuardiola removed the request for review from ajitbohra June 27, 2024 20:14
Copy link
Contributor

@ciampo ciampo left a comment

Choose a reason for hiding this comment

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

Good work! Let's just leave a CHANGELOG entry (under the Internal section) before merging

packages/components/src/tabs/tablist.tsx Show resolved Hide resolved
@ciampo ciampo added the [Package] Components /packages/components label Jun 28, 2024
@DaniGuardiola
Copy link
Contributor Author

@ciampo thx for the review, I'll add a changelog entry for the whole thing in the last PR, since this is really step 1 of 3 of the same task (refactor ToggleGroupControl to use the same animation logic as Tabs) 👍

@DaniGuardiola DaniGuardiola marked this pull request as draft June 28, 2024 17:59
@DaniGuardiola DaniGuardiola marked this pull request as ready for review June 28, 2024 17:59
@DaniGuardiola DaniGuardiola merged commit 0ea6751 into trunk Jun 28, 2024
66 of 68 checks passed
@DaniGuardiola DaniGuardiola deleted the tabs/organize-animation-utils branch June 28, 2024 18:56
@github-actions github-actions bot added this to the Gutenberg 18.8 milestone Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants