Skip to content

Commit

Permalink
Fix on z-index for st.balloons() and st.snow() (#4911)
Browse files Browse the repository at this point in the history
* Fix on z-index for balloons and snow

Co-authored-by: Juan Martin Garcia <juan.garcia@snowflake.com>
  • Loading branch information
Juan Martín García and sfc-gh-jgarcia committed Jul 1, 2022
1 parent 6dd7b6c commit 4da9a7e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@ exports[`Tooltip element renders running img correctly with custom dark backgrou
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down Expand Up @@ -814,12 +814,12 @@ exports[`Tooltip element renders running img correctly with custom dark backgrou
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down Expand Up @@ -3573,12 +3573,12 @@ exports[`Tooltip element renders running img correctly with custom light backgro
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down Expand Up @@ -3985,12 +3985,12 @@ exports[`Tooltip element renders running img correctly with custom light backgro
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down Expand Up @@ -6744,12 +6744,12 @@ exports[`Tooltip element renders running img correctly with darkTheme 1`] = `
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down Expand Up @@ -7156,12 +7156,12 @@ exports[`Tooltip element renders running img correctly with darkTheme 1`] = `
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down Expand Up @@ -9915,12 +9915,12 @@ exports[`Tooltip element renders running img correctly with lightTheme 1`] = `
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down Expand Up @@ -10327,12 +10327,12 @@ exports[`Tooltip element renders running img correctly with lightTheme 1`] = `
"balloons": 1000000,
"base": 0,
"fullscreenWrapper": 1000050,
"header": 1000020,
"header": 999990,
"hide": -1,
"menuButton": 110,
"popupMenu": 1000040,
"sidebar": 100,
"sidebarMobile": 1000030,
"sidebarMobile": 999995,
"tablePortal": 1000110,
},
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/theme/primitives/zIndices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
const sidebar = 100
const menuButton = sidebar + 10
const balloons = 1000000
const header = balloons + 20
const sidebarMobile = balloons + 30
const header = balloons - 10
const sidebarMobile = balloons - 5
const popupMenu = balloons + 40
const fullscreenWrapper = balloons + 50
const tablePortal = fullscreenWrapper + 60
Expand Down

0 comments on commit 4da9a7e

Please sign in to comment.