mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-28 05:41:58 -04:00
prevent modal-inner-content margins from unexpectedly collapsing with parent
This commit is contained in:
parent
3a685e38fb
commit
171d5854ff
2 changed files with 18 additions and 8 deletions
src/components/modal/base
|
@ -8,13 +8,15 @@ const ModalInnerContent = ({
|
|||
children,
|
||||
className
|
||||
}) => (
|
||||
<div
|
||||
className={classNames(
|
||||
'modal-inner-content',
|
||||
className
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
<div className="modal-inner-clear">
|
||||
<div
|
||||
className={classNames(
|
||||
'modal-inner-content',
|
||||
className
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
@import "../../../colors";
|
||||
@import "../../../frameless";
|
||||
|
||||
.modal-inner-content { /* content inside of content */
|
||||
/*
|
||||
necessary to prevent modal-inner-content's margins from
|
||||
unexpectedly collapsing with a parent
|
||||
*/
|
||||
.modal-inner-clear {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.modal-inner-content {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
border-radius: 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue