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
Great component. Simple and sweet.
Any plans for horizontal collapse?
Would you review a PR if I find the time to add it on my own / any strong recommendations on how to code the horizontal variant?
The text was updated successfully, but these errors were encountered:
Hi Harshdeep, thank you for your interest in the package and sorry for getting back to you so late.
Generally, transitioning the width requires more measures than transitioning the height.
For example, if you resize the width of a div containing 5 lines of text from 400px to 200px, you will notice that the number of lines is going to increase to 9-10 and vice versa. But imagine also any other flex/grid layout inside of the Collapse. In short, a width change is most likely going to trigger an height change and a layout shift.
Some hacks could be done to prevent layout shifts while transitioning but this is something we don't wanto to do for two main reasons:
We want the package to be "simple and sweet" (as you defined it).
We have no clue of the inner elements and styles of Collapse.
For this reason, I have no plans on an horizontal collapse.
Great component. Simple and sweet.
Any plans for horizontal collapse?
Would you review a PR if I find the time to add it on my own / any strong recommendations on how to code the horizontal variant?
The text was updated successfully, but these errors were encountered: