Skip to content

Commit 4bed117

Browse files
committed
ref(scraps): add shadows to overlay
1 parent ce87d06 commit 4bed117

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

static/app/components/core/slideOverPanel/slideOverPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ const _SlideOverPanel = styled(motion.div, {
145145
146146
z-index: ${p => p.theme.zIndex.modal - 1};
147147
148-
background: ${p => p.theme.tokens.background.primary};
148+
background: ${p => p.theme.tokens.background.overlay};
149+
box-shadow: ${p => p.theme.shadow.high};
149150
color: ${p => p.theme.tokens.content.primary};
150151
151152
text-align: left;

static/app/components/globalDrawer/components.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ const DrawerContainer = styled('div')`
213213
`;
214214

215215
const DrawerSlidePanel = styled(SlideOverPanel)`
216-
box-shadow: 0 0 0 1px ${p => p.theme.shadow.high};
217216
border-left: 1px solid ${p => p.theme.tokens.border.primary};
218217
position: relative;
219218
pointer-events: auto;

static/app/components/overlay.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,13 @@ const OverlayInner = styled(motion.div)<{
136136
placement?: OverlayProps['placement'];
137137
}>`
138138
position: relative;
139-
background: ${p => p.theme.tokens.background.primary};
139+
background: ${p => p.theme.tokens.background.overlay};
140140
border-radius: ${p => p.theme.radius.md};
141141
border: 1px solid ${p => p.theme.tokens.border.primary};
142142
/* eslint-disable-next-line @sentry/scraps/use-semantic-token */
143-
box-shadow: 0 2px 0 ${p => p.theme.tokens.border.primary};
143+
box-shadow:
144+
0 2px 0 ${p => p.theme.tokens.border.primary},
145+
${p => p.theme.shadow.medium};
144146
font-size: ${p => p.theme.font.size.md};
145147
146148
/* Override z-index from useOverlayPosition */

0 commit comments

Comments
 (0)