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 theentered
className,overflow
should be set tovisible
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 Paper
s, Card
s 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:
- Created 6 years ago
- Reactions:9
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mdarens workaround saved my day, thanks!
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.