Skip to content

Commit

Permalink
fix(Overlay): export order and stacking context
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladeeg committed Jun 25, 2024
1 parent 49eba67 commit 336ec67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/Overlay/Overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ $block: '.#{variables.$ns}overlay';
justify-content: center;
align-items: center;

isolation: isolate;

opacity: 0;

transition:
Expand All @@ -19,11 +21,13 @@ $block: '.#{variables.$ns}overlay';

&_visible {
visibility: visible;

opacity: 1;
}

&__background {
position: absolute;
z-index: 0;
inset: 0;

opacity: 0.8;
Expand All @@ -40,6 +44,6 @@ $block: '.#{variables.$ns}overlay';
}

&__children {
z-index: 0;
z-index: 1;
}
}
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export * from './Label';
export * from './Link';
export * from './List';
export * from './Loader';
export * from './Overlay';
export * from './Menu';
export * from './Modal';
export * from './Overlay';
export * from './Pagination';
export * from './Palette';
export * from './UserLabel';
Expand Down

0 comments on commit 336ec67

Please sign in to comment.