Skip to content

[6.x] Better collapsible sections#14679

Merged
jaygeorge merged 7 commits into
6.xfrom
better-collapsible-sections
May 15, 2026
Merged

[6.x] Better collapsible sections#14679
jaygeorge merged 7 commits into
6.xfrom
better-collapsible-sections

Conversation

@jaygeorge
Copy link
Copy Markdown
Contributor

Description of the Problem

As described in #14488 collapse / expand sections can feel a bit off when animating.

This is basically because we're using overflow: clip; to hide the inside container, and this is not controlled with an animation.
Instead, it relies on a basic height transition on the container and clipped contents – which is why it feels like it "plops" on to the page when expanding.

What this PR Does

  • Adds some animation keyframes so we have better control of how the overclip and animation works.
  • Takes into consideration motion preferences.
  • I've opted into the animation when hovering over data-ui-panel, so things don't animate when the page loads
  • Closes Expand section animation is slower than fields showing #14488

Before

2026-05-15.at.14.42.25.mp4

After

2026-05-15.at.14.41.26.mp4

How to Reproduce

  1. Make a section collapsible and toggle its state

@jaygeorge jaygeorge merged commit 75e9277 into 6.x May 15, 2026
18 checks passed
@jaygeorge jaygeorge deleted the better-collapsible-sections branch May 15, 2026 14:01
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.

Expand section animation is slower than fields showing

1 participant