Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Dec 20, 2024
1 parent 1c1fed7 commit 3201f0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions packages/circuit-ui/components/Modal/Modal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
--dialog-animation-duration: 0.3s;

position: fixed;
max-height: 90vh;
padding: 0;
margin: auto;
overflow-y: auto;
Expand All @@ -21,9 +22,11 @@

.content {
position: relative;
max-height: 90vh;
overflow-y: scroll;
}

.scrollable {
.base::after {
position: sticky;
right: 0;
bottom: env(safe-area-inset-bottom);
Expand Down Expand Up @@ -82,7 +85,7 @@
padding-bottom: env(safe-area-inset-bottom);
}

.scrollable {
.base::after {
height: var(--cui-spacings-giga);
}

Expand Down Expand Up @@ -122,7 +125,7 @@
-webkit-overflow-scrolling: touch;
}

.scrollable {
.base::after {
height: var(--cui-spacings-mega);
}

Expand Down
1 change: 0 additions & 1 deletion packages/circuit-ui/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ export const Modal = forwardRef<HTMLDialogElement, ModalProps>((props, ref) => {
{typeof children === 'function'
? children?.({ onClose })
: children}
<div className={classes.scrollable} />
</div>
)}
</dialog>
Expand Down

0 comments on commit 3201f0f

Please sign in to comment.