Skip to content

Commit

Permalink
[base] Add zIndex to presence StickyOverlay
Browse files Browse the repository at this point in the history
Fixes a bug where presence icons would be rendered behind text input
overlay.
  • Loading branch information
Benedicte Emilie Brækken authored and rexxars committed Oct 6, 2020
1 parent 4194488 commit f645cd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@sanity/base/src/presence/overlay/StickyOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function renderDock(
data-dock={position}
key={`sticky-${position}`}
style={{
zIndex: 2,
position: 'sticky',
display: 'flex',
flexDirection: 'column',
Expand Down Expand Up @@ -215,6 +216,7 @@ function renderInside(
<React.Fragment key={withIntersection.region.id}>
<div
style={{
zIndex: 2,
position: 'absolute',
pointerEvents: 'all',
...ITEM_TRANSITION,
Expand Down

0 comments on commit f645cd1

Please sign in to comment.