Skip to content

fix(accordion): allow radix content to grow dynamically#10388

Open
ElhamDevelopmentStudio wants to merge 1 commit intoshadcn-ui:mainfrom
ElhamDevelopmentStudio:fix/radix-accordion-dynamic-content
Open

fix(accordion): allow radix content to grow dynamically#10388
ElhamDevelopmentStudio wants to merge 1 commit intoshadcn-ui:mainfrom
ElhamDevelopmentStudio:fix/radix-accordion-dynamic-content

Conversation

@ElhamDevelopmentStudio
Copy link
Copy Markdown

Fixes #10336

Summary

Removes the fixed --radix-accordion-content-height height from the inner Radix accordion content wrapper.

The outer AccordionPrimitive.Content wrapper still handles the open/close animation, but the inner content is no longer locked to a fixed height, so dynamically growing content does not get clipped after the accordion opens.

Testing

  • corepack pnpm --filter=shadcn build
  • corepack pnpm --filter=v4 exec tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts
  • corepack pnpm --filter=v4 typecheck
  • corepack pnpm --filter=v4 lint

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.

[bug]: AccordionContent inner div's fixed height clips dynamic content (radix-luma)

1 participant