Skip to content

[🐞] Headless Collapsible: it is not possible to add flex classes to the Collapsible.Content component #1101

@maiieul

Description

@maiieul

Which package is affected?

Headless Kit

Describe the bug

Adding flex to Collapsible.Content component prevents the

    Object.assign(clone.style, {
      overflow: 'visible',
      height: 'auto',
      maxHeight: 'none',
      opacity: '0',
      visibility: 'hidden',
      display: 'block',
    });

in use-collapsible.tsx from being applied

Reproduction

🙅‍♂️

Steps to reproduce

add flextailwind class to Hero example component

System Info

🙅‍♂️

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    COMMUNITY: PR is welcomedWe think it's a good feature to have but would love for the community to help with the PR for itCOMMUNITY: good first issueGood for newcomersPKG: headlessRelated to the headless kitTYPE: bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions