diff options
author | Ben Rohlfs <brohlfs@google.com> | 2020-12-16 12:50:31 +0100 |
---|---|---|
committer | Ben Rohlfs <brohlfs@google.com> | 2020-12-17 08:19:05 +0000 |
commit | d4026f9bfc8eb764abfaedcea54ef9c9ea9440e7 (patch) | |
tree | 3005e38b3103d7fab6a451ff287771e00438dd70 | |
parent | cf817a211d29d87a6e71b97ce9c8300accef9d13 (diff) |
Fix the z-index of the main header
Change-Id: I60b52f6d1e316f9639415fdbafcfb18edcc8aef2
(cherry picked from commit a62d000bbe534470808bab287268efb407f55e2b)
-rw-r--r-- | polygerrit-ui/app/elements/gr-app-element_html.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/polygerrit-ui/app/elements/gr-app-element_html.ts b/polygerrit-ui/app/elements/gr-app-element_html.ts index 7dc6833932..c1258fb04b 100644 --- a/polygerrit-ui/app/elements/gr-app-element_html.ts +++ b/polygerrit-ui/app/elements/gr-app-element_html.ts @@ -40,8 +40,11 @@ export const htmlTemplate = html` border-left: 0; border-top: 0; box-shadow: var(--header-box-shadow); - /* Make sure the header is above the main content, to preserve box-shadow visibility */ - z-index: 1; + /* Make sure the header is above the main content, to preserve box-shadow + visibility. We need 2 here instead of 1, because dropdowns in the + header should be shown on top of the sticky diff header, which has a + z-index of 1. */ + z-index: 2; } footer { background: var( |