Skip to content

Commit

Permalink
fix(snackbar): z-index
Browse files Browse the repository at this point in the history
Co-authored-by: S. Amir Mohammad Najafi <[email protected]>
  • Loading branch information
alimd and njfamirm committed Feb 3, 2023
1 parent 3ba4c5c commit 7212201
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/ui-kit/src/snackbar/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class AlwatrSnackbar extends AlwatrSurface {
bottom: calc(2 * var(--sys-spacing-track));
left: calc(3 * var(--sys-spacing-track));
right: calc(3 * var(--sys-spacing-track));
z-index: var(--sys-zindex-snackbar);
border-radius: var(--sys-radius-xsmall);
box-sizing: border-box;
Expand Down
3 changes: 2 additions & 1 deletion ui/ui-kit/style/token/z-index.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--sys-zindex-backdrop: 400;
--sys-zindex-modal: 500;
--sys-zindex-popover: 600;
--sys-zindex-tooltip: 700;
--sys-zindex-snackbar: 700;
--sys-zindex-tooltip: 800;
--sys-zindex-topness: 900;
}

0 comments on commit 7212201

Please sign in to comment.