-
Notifications
You must be signed in to change notification settings - Fork 4.7k
ToggleGroupControl: improve animation #65175
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
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
f5a833a
Refactor utils and switch Tabs indicator animation to `transform`.
DaniGuardiola 42080a4
docs tweak
DaniGuardiola 7377fc0
Update packages/components/src/tabs/styles.ts
DaniGuardiola 405c258
Add RTL support.
DaniGuardiola 4726e53
Addressed @ciampo's comments.
DaniGuardiola 6835665
Correct for antialiasing rounding.
DaniGuardiola 1e444af
Make antialiasing adjustment optional.
DaniGuardiola 7861921
Use larger base value and revert antialiasing adjustment code.
DaniGuardiola 55dd870
DRY RTL
DaniGuardiola d03622b
Remove RTL story (redundant since Storybook has a dynamic setting to …
DaniGuardiola c347fad
Fix bug.
DaniGuardiola 59797e4
Fix bug (for real this time).
DaniGuardiola f82b413
Add changelog entry.
DaniGuardiola 4db2b35
De-cleverfy code.
DaniGuardiola e36a506
Sync useResizeObserver with #64943 and make useTrackElementOffsetRect…
DaniGuardiola b57955b
Merge branch 'trunk' of https://github.com/WordPress/gutenberg into i…
DaniGuardiola bc62400
Deduplicate utility and clean up.
DaniGuardiola 6745607
Minor Tabs code improvement.
DaniGuardiola cf98e2d
Replace framer motion animation with faster CSS animation.
DaniGuardiola 3f6a381
DRY antialiasing factor.
DaniGuardiola 522d816
Changelogs.
DaniGuardiola 9753d21
Merge branch 'improve/tabs-indicator-animation-and-utils' of https://…
DaniGuardiola 5403b54
Merge branch 'trunk' of https://github.com/WordPress/gutenberg into i…
DaniGuardiola fe2b51e
Various improvements, fixes, and feedback addressed.
DaniGuardiola 098a3a5
Simplify.
DaniGuardiola 95337ea
Simplify using derived state.
DaniGuardiola 536de06
Add similar useOnValueUpdate detail to Tabs.
DaniGuardiola 62e591e
Fix skipping animation.
DaniGuardiola 1db1fd7
Add similar detail to Tabs animation.
DaniGuardiola 90b5300
Fix setState depth issue.
DaniGuardiola cf3fb33
Merge branch 'trunk' of https://github.com/WordPress/gutenberg into i…
DaniGuardiola ee5059a
Fix unit test error.
DaniGuardiola 02066d7
Add changelog entries
DaniGuardiola a38dbd1
Fix changelog
DaniGuardiola 069676d
Update test snapshot.
DaniGuardiola 6e27452
Depends less on React.
DaniGuardiola 43851bc
Switch to layout effect for `useOnValueUpdate`
DaniGuardiola 3165838
Switched to transform strategy.
DaniGuardiola b24a585
Fix resizing bug.
DaniGuardiola 8939f1f
Transition border-radius too.
DaniGuardiola 148eaaa
Undo Tabs changes (no longer relevant).
DaniGuardiola 69a99c8
DRY animation code.
DaniGuardiola 53f868a
Avoid useless re-runs in effect.
DaniGuardiola 5259fca
Rename `activeElement` -> `selectedElement` for clarity.
DaniGuardiola 6c6c575
Rename `--indicator-` -> `--selected-` for accuracy.
DaniGuardiola bbc688b
Minor tweak.
DaniGuardiola 6a21e66
Add safe defaults to CSS custom properties.
DaniGuardiola fcbb336
Tweak `useSubelementAnimation`.
DaniGuardiola bfbe282
Fix parent missing when there's no selected option.
DaniGuardiola 82467e5
Merge branch 'trunk' into improve/toggle-group-control-animation
ciampo bf635dc
Update snapshots
ciampo 89164d6
Add docs to utility.
DaniGuardiola 153fdeb
Added note about border-radius.
DaniGuardiola 63d994b
Merge branch 'trunk' of https://github.com/WordPress/gutenberg into i…
DaniGuardiola f34a9e2
Merge branch 'trunk' into improve/toggle-group-control-animation
ciampo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
DRY animation code.
- Loading branch information
commit 69a99c8b0255dfa9aabb0ab322872ad11395b843
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.