question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show overflow content in Collapse once entered

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

  • Once a Collapse has finished animating in and has the entered className, overflow should be set to visible so borders, box-shadows, Checkbox ripples, contents positioned outside etc are visible.

Current Behavior

Currently the implementation only sets the height to auto, and the contents of a component which uses Collapse (like StepContent) can be clipped e.g. shadows around Papers, Cards etc

Steps to Reproduce (for bugs)

https://codesandbox.io/s/koo6069llv

Context

The most common case where this will pop up is when using a form in a Stepper with orientation set to vertical. The ripple from a Checkbox will clip at the edge of the Collapse used in StepContent.

Your Environment

See codesandbox link above.

Workaround

I was able to use theme overrides to work around this for now:

createMuiTheme({
  overrides: {
    MuiCollapse: {
      entered: {
        height: "auto",
        overflow: "visible"
      }
    }
  }
});

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sarkistltcommented, May 19, 2018

@mdarens workaround saved my day, thanks!

1reaction
mcoevertcommented, Mar 6, 2018

I’ve noticed this problem when using a Autocomplete component in a ExpansionPanel. The suggestions from the Autocomplete component are hidden.

I will use the solution of @mdarens for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show overflow content in Collapse once entered #9483 - GitHub
Once a Collapse has finished animating in and has the entered className, overflow should be set to visible so borders, box-shadows, Checkbox ...
Read more >
overflow - CSS: Cascading Style Sheets - MDN Web Docs
Overflow options include clipping, showing scrollbars, or displaying the content flowing out of its container into the surrounding area.
Read more >
How to show the content of a jQuery text collapse when ...
Show activity on this post. Try this: Markup (tried to clean it a little): <div id="cursor01"> <a href="#"> <span id="slide01" ...
Read more >
overflow - CSS-Tricks
The overflow property controls what happens to content that breaks outside of its bounds: imagine a div in which you've explicitly set to...
Read more >
CSS text-overflow property - W3Schools
The text-overflow property specifies how overflowed content that is not displayed should be signaled to the user. It can be clipped, display an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found