fix(ui): smooth border-radius transition on collapsible close#16431
Merged
JessRynkar merged 1 commit intomainfrom Apr 30, 2026
Merged
fix(ui): smooth border-radius transition on collapsible close#16431JessRynkar merged 1 commit intomainfrom
JessRynkar merged 1 commit intomainfrom
Conversation
Adds a delayed CSS animation for the bottom border-radius when collapsing so the corners round smoothly after the content finishes animating closed, instead of snapping immediately.
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
JessRynkar
approved these changes
Apr 30, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
When collapsing an array/blocks row, the bottom border-radius on the header would snap to rounded immediately while the content was still animating closed—creating a jarring visual disconnect between the header and the disappearing content below it.
This adds a CSS keyframe animation that waits for the content to finish collapsing (300ms), then smoothly eases the corners to rounded over 150ms. The
animation-fill-mode: bothensures the corners stay flat during the delay period. Opening remains instant so the header connects seamlessly with the expanding content.Before
CleanShot.2026-04-30.at.08.49.37.mp4
After
CleanShot.2026-04-30.at.08.50.43.mp4