Skip to content

Commit

Permalink
feat: use new layers
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Feb 4, 2024
1 parent dad1d93 commit 9996217
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "~monday-ui-style/dist/mixins";

.contentWrapper {
z-index: var(--layer-popover);
outline: 0;

&.top,
Expand Down
3 changes: 2 additions & 1 deletion src/components/Modal/Modal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
}

.container {
--monday-modal-z-index: 10000;
--monday-modal-z-index: var(--layer-modal);
// TODO: use --modal-layer in next major
z-index: var(--monday-modal-z-index);
display: flex;
justify-content: center;
Expand Down
4 changes: 4 additions & 0 deletions src/components/Tipseen/Tipseen.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import "../../styles/typography";

.tipseenDialog {
z-index: var(--layer-popover);
}

.tipseenWrapper {
min-width: 100px;
min-height: 40px;
Expand Down
1 change: 1 addition & 0 deletions src/components/Tipseen/Tipseen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ const Tipseen: VibeComponent<TipseenProps> & {
modifiers={modifiers}
open={defaultDelayOpen ? delayedOpen : undefined}
forceRenderWithoutChildren={floating}
dialogClassName={styles.tipseenDialog}
>
{children}
</Tooltip>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Tooltip/Tooltip.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@import "../../styles/typography";

$tooltip-z-index: 9999999999999999;
.tooltipDialog {
z-index: var(--layer-tooltip);
}

.tooltip {
position: relative;
Expand Down

0 comments on commit 9996217

Please sign in to comment.