Skip to content

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
@AntonioVentilii AntonioVentilii enabled auto-merge (squash) May 22, 2025 11:36
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.

2 participants