Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/core/src/components/overlay/_overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ body.#{$ns}-overlay-open {
}
}

// Fade content alongside the backdrop. Dialog/Drawer get their own transitions on this element,
// so we exclude them to avoid clobbering their duration/easing.
.#{$ns}-overlay-content:not(.#{$ns}-dialog-container, .#{$ns}-drawer) {
@include react-transition(
"#{$ns}-overlay",
(
opacity: 0 1,
),
$pt-transition-duration * 2,
$before: "&"
);
}

// fixed position so the backdrop forecefully covers the whole screen
.#{$ns}-overlay-backdrop {
@include position-all(fixed, 0);
Expand Down