Skip to content

Commit 295c4bc

Browse files
dusavecolebemis
andauthored
🛠️ [Bug Fix] Setting DialogV2 backdrop to the proper variable (#3411)
* setting the DialogV2 backdrop to the proper variable * Create serious-bats-reply.md --------- Co-authored-by: Cole Bemis <[email protected]>
1 parent bef5fed commit 295c4bc

File tree

3 files changed

+32
-25
lines changed

3 files changed

+32
-25
lines changed

.changeset/serious-bats-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Fix `Dialog2` backdrop color variable

examples/nextjs/package-lock.json

Lines changed: 26 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Dialog/Dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const Backdrop = styled('div')`
151151
display: flex;
152152
align-items: center;
153153
justify-content: center;
154-
background-color: rgba(0, 0, 0, 0.4);
154+
background-color: ${get('colors.primer.canvas.backdrop')};
155155
animation: dialog-backdrop-appear ${ANIMATION_DURATION} ${get('animation.easeOutCubic')};
156156
157157
@keyframes dialog-backdrop-appear {

0 commit comments

Comments
 (0)