Skip to content

Commit

Permalink
fix(theme): mobile navbar & skipToContent should cover announcementBar (
Browse files Browse the repository at this point in the history
#8163)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
  • Loading branch information
adnanhashmi09 and slorber committed Oct 28, 2022
1 parent 08b4caa commit 64601a9
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -15,8 +15,16 @@
height: var(--docusaurus-announcement-bar-height);
background-color: var(--ifm-color-white);
color: var(--ifm-color-black);

/*
Unfortunately we can't make announcement bar render above the navbar
IE need to use border-bottom instead of shadow
See https://github.com/facebookincubator/infima/issues/275
box-shadow: var(--ifm-global-shadow-lw);
z-index: calc(var(--ifm-z-index-fixed) + 1); /* just above the navbar */
z-index: calc(var(--ifm-z-index-fixed) + 1);
*/
border-bottom: 1px solid var(--ifm-color-emphasis-100);
}

html[data-announcement-bar-initially-dismissed='true'] .announcementBar {
Expand Down

0 comments on commit 64601a9

Please sign in to comment.