Skip to content

Commit

Permalink
Fix z-index bug in quick-repo-deletion and sticky-sidebar (#4364)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed May 16, 2021
1 parent 73fa11a commit 653cd95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source/features/quick-repo-deletion.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
:root .rgh-quick-repo-deletion[open] span {
position: relative;
z-index: 81;
z-index: 91; /* Higher than sticky readme header and `sticky-sidebar` #4192 */
transform-origin: top;
}

:root .rgh-quick-repo-deletion[open] summary::before {
background-color: var(--color-scale-red-6);
opacity: 30%;
z-index: 91; /* Higher than sticky readme header and `sticky-sidebar` #4192 */
}
10 changes: 8 additions & 2 deletions source/features/sticky-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
.rgh-sticky-sidebar {
position: sticky;
top: 0;
z-index: 1; /* `sticky` will trap the `fixed` dialog’s z-index in some sidebars #3732 */

/* `sticky` will trap the `fixed` dialog’s z-index in some sidebars #3732 */
/* Higher than sticky readme header #4192 */
z-index: 90;
}

#partial-discussion-sidebar.rgh-sticky-sidebar {
top: 76px !important; /* Sticky header's height + sidebar item's margin */
z-index: 1; /* Needed so the backdrop of notification modal is over the other elements in the conversation */

/* Needed so the backdrop of notification modal is over the other elements in the conversation */
/* Higher than sticky readme header #4192 */
z-index: 90;
}

/* Hides the last divider (on pull requests) to avoid https://user-images.githubusercontent.com/10238474/62282128-af6fb980-b457-11e9-8b18-c29687b88da1.gif */
Expand Down

0 comments on commit 653cd95

Please sign in to comment.