Skip to content

feat: Collapsible content new prop to avoid overflow hidden #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

daviddecentage
Copy link
Contributor

Motivation

Due to some issues with borders and outlines being cut for collapsible content, I added the possibility to apply an offset to be able to avoid content being cut off.

Changes

  • Added offsetContent prop to collapsible component
  • Added styling for two new classes:
    • .offset-content for normal collapsibles
    • .offset-content-scroll for when maxContentHeight is specified as well, because the margins behave a bit differently when content is scrollable (which can only happen if maxContentHeight is set)
  • Updated docs

Screenshots

In the screenshot we can see that the closed state is not affected, and the black outline is visible by setting offsetContent property.

image

image

@daviddecentage daviddecentage requested review from a team as code owners March 14, 2025 12:50
@daviddecentage daviddecentage changed the title init feat: Collapsible content new prop to avoid overflow hidden Mar 14, 2025
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.

1 participant