-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
UIUi related issuesUi related issuesdesignDesign task relatedDesign task relateddesign-systemRelated to the design systemRelated to the design systemgood first issuejavascriptPull requests that update javascript codePull requests that update javascript codereactRelated to react.jsRelated to react.js
Description
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
MaxHeightSmootherwithminHeight={450}. - Toggle
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 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).
Screen.Recording.2025-10-07.at.2.55.13.PM.mov
Metadata
Metadata
Assignees
Labels
UIUi related issuesUi related issuesdesignDesign task relatedDesign task relateddesign-systemRelated to the design systemRelated to the design systemgood first issuejavascriptPull requests that update javascript codePull requests that update javascript codereactRelated to react.jsRelated to react.js