From 8397c93accd38d168eb91af677dcf40ae4d54fd4 Mon Sep 17 00:00:00 2001 From: Joshua Dinh Date: Wed, 3 Jul 2024 14:56:23 -0700 Subject: [PATCH] refactor: update modal styles --- .../registrars/templates/fields/Consent/styles.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/DonationForms/resources/registrars/templates/fields/Consent/styles.scss b/src/DonationForms/resources/registrars/templates/fields/Consent/styles.scss index 481c404fd5..ba3c992cbb 100644 --- a/src/DonationForms/resources/registrars/templates/fields/Consent/styles.scss +++ b/src/DonationForms/resources/registrars/templates/fields/Consent/styles.scss @@ -7,7 +7,7 @@ } &-modal { - position: absolute; + position: fixed; top: 0; left: 0; bottom: 0; @@ -17,9 +17,9 @@ justify-content: center; background: transparent; backdrop-filter: blur(2px); - z-index: 999; &-content { + max-width: 48rem; background: var(--givep-shades-white, #fff); padding: 2.5rem 3.5rem; width: calc(min(100%, 51.5rem) + 2rem); @@ -41,8 +41,7 @@ display: flex; gap: 1rem; - > button { - margin: 0; + button:first-child { background: transparent; color: var(--givewp-primary-color); border: 1px solid var(--givewp-primary-color); @@ -66,4 +65,3 @@ } } } -