Skip to content

Commit 19628dc

Browse files
committed
fix(Underlay): z-index
1 parent 10b5c14 commit 19628dc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/soft-laws-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Fix Underlay's zIndex so modal dialogs can be stackable.

src/components/overlays/Modal/Underlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const UnderlayElement = tasty({
1313
right: 0,
1414
bottom: 0,
1515
left: 0,
16-
zIndex: 9,
16+
zIndex: 10,
1717
transitionDelay: '0ms',
1818
opacity: {
1919
'': 0,

src/components/portal/Portal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { usePortal } from './usePortal';
2121
* Portal will be rendered outside me!
2222
*
2323
* <Portal>
24-
* <div>some content will be showed outside of parent container</div>
24+
* <div>some content will be shown outside the parent container</div>
2525
* </Portal>
2626
* </div>
2727
* ```

0 commit comments

Comments
 (0)