From 41b2c62e637c40b22573accc3a4c2719a2289541 Mon Sep 17 00:00:00 2001 From: jongomez Date: Thu, 5 Oct 2023 00:08:12 +0100 Subject: [PATCH] fix: fix modal's close icon position --- packages/lsd-react/src/components/Modal/Modal.styles.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/lsd-react/src/components/Modal/Modal.styles.ts b/packages/lsd-react/src/components/Modal/Modal.styles.ts index f10c1d0..70551db 100644 --- a/packages/lsd-react/src/components/Modal/Modal.styles.ts +++ b/packages/lsd-react/src/components/Modal/Modal.styles.ts @@ -21,6 +21,8 @@ export const ModalStyles = css` } .${modalClasses.modalContainer} { + position: relative; + background: rgb(var(--lsd-surface-primary)); padding: 20px; @@ -43,6 +45,9 @@ export const ModalStyles = css` } .${modalClasses.closeIcon} { + position: absolute; + top: 8px; + right: 8px; cursor: pointer; }