From 355351512f9ef59c424a15b79f9a363506a2a0b1 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 6 Aug 2022 08:37:47 -0700 Subject: [PATCH] style(docs): remove manual `SideNav` z-index override --- docs/src/global.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/global.css b/docs/src/global.css index 2e89cd3f..425f7914 100644 --- a/docs/src/global.css +++ b/docs/src/global.css @@ -89,6 +89,18 @@ html[theme="g90"] .code-override { width: auto; } +/* + * Main content needs to supersede z-index of SideNav but not that of the Header. + * UI Shell Header shares the same z-index. + */ +[aria-label="Navigation"] { + z-index: calc(8000 + 2); +} + +[aria-label="Navigation"] ~ [data-components] { + z-index: calc(8000 + 1); +} + .prose > p > .bx--link { font-size: inherit; text-decoration: underline;