You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When minHeight > 0, the expand animation has a visible “dead time.”
It behaves like grid-rows-[0fr] → xfr (no visible change), then xfr → 1fr (visible)
Steps to Repro:
Render MaxHeightSmoother with minHeight={450}.
Toggle isHidden to expand (or use hover/focus paths).
Expected:
One smooth, continuous expand.
Actual:
Delayed/2-phase expand with an initial no-op period before content appears.
Notes:
Likely caused by the child minHeight clamping the grid track during grid-template-rows transition. Consider switching to animating max-height when minHeight is set, using minmax(0,1fr), or ensuring the grid item can shrink (min-height: 0).
When
minHeight> 0, the expand animation has a visible “dead time.”It behaves like
grid-rows-[0fr] → xfr(no visible change), thenxfr → 1fr(visible)Steps to Repro:
MaxHeightSmootherwithminHeight={450}.isHiddento expand (or usehover/focuspaths).Expected:
One smooth, continuous expand.
Actual:
Delayed/2-phase expand with an initial no-op period before content appears.
Notes:
Likely caused by the child
minHeightclamping the grid track duringgrid-template-rowstransition. Consider switching to animatingmax-heightwhenminHeightis set, usingminmax(0,1fr), or ensuring the grid item can shrink (min-height: 0).Screen.Recording.2025-10-07.at.2.55.13.PM.mov