storyofams / react-ui

Collection of UI components build to create a production grade front-end experience with React & Next.js

Home Page:https://react-ui-storyofams.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accordion max height

aidana12 opened this issue · comments

Describe the bug
Accordion children now have a max-height of 500px

To Reproduce
Steps to reproduce the behavior:

  1. Run storybook
  2. Click on Accordion
  3. Put in enough children to exceed the 500px mark
  4. See the children cut off

Expected behavior
Max height should be determined by the height of the open (uncollapsed) children

Desktop

  • OS: [e.g. iOS]
  • Browser: chrome
  • Version: 89.0.4389.82

Additional context
Try using https://streamich.github.io/react-use/?path=/story/sensors-usemeasure--docs and framer-motion to not limit the text by 500px