From 9181af6371948b19eb4edcdcbad0c9f174bf18cf Mon Sep 17 00:00:00 2001 From: Elizabeth Kelen Date: Mon, 9 Nov 2020 17:22:44 -0500 Subject: [PATCH] refactor: restore modal bg color and give modal elements better names Signed-off-by: Elizabeth Kelen --- web/src/assets/modal-snippets.module.css | 8 ++++---- .../components/FilterModal/FilterModal.module.css | 1 + web/src/ui/components/MessageModal/MessageModal.js | 4 ++-- .../MessageModal/MessageModal.module.css | 14 +++++++------- web/src/ui/components/Modal/Modal.js | 8 ++++---- 5 files changed, 18 insertions(+), 17 deletions(-) diff --git a/web/src/assets/modal-snippets.module.css b/web/src/assets/modal-snippets.module.css index 4efb0e91..59bf7ce6 100644 --- a/web/src/assets/modal-snippets.module.css +++ b/web/src/assets/modal-snippets.module.css @@ -16,7 +16,7 @@ overflow: hidden; } -.modalContainer { +.modalOverlay { width: 120vw; /* border: 1px solid green; */ @@ -33,7 +33,7 @@ margin-bottom: 100px; } -.modalGuts { +.modalContainer { composes: flexCol aiCenter; position: relative; margin: 1.75rem auto; @@ -46,14 +46,14 @@ max-width: 80vw; outline: 0; - background-color: var(--bg-block); + background-color: var(--bg-page); box-shadow: -3rem 0.5rem 20px rgba(14, 16, 45, 0.2), 3rem 0.5rem 20px rgba(14, 16, 45, 0.2); } @media (min-width: tablet) { - .modalGuts { + .modalContainer { box-shadow: none; } } diff --git a/web/src/ui/components/FilterModal/FilterModal.module.css b/web/src/ui/components/FilterModal/FilterModal.module.css index 45beecab..e65ccd0a 100644 --- a/web/src/ui/components/FilterModal/FilterModal.module.css +++ b/web/src/ui/components/FilterModal/FilterModal.module.css @@ -1,4 +1,5 @@ @value utils: "../../../assets/layout-utils.module.css"; +@value modalContainer from "../../../assets/modal-snippets.module.css"; @value space_xs, space_sm, space_md, space_lg, space_xl, space_xxl from utils; @value flexCol, childrenMrMd, childrenMbSm, flexRow, aiCenter, flexWrap, aiWrapCenter, jcCenter from utils; diff --git a/web/src/ui/components/MessageModal/MessageModal.js b/web/src/ui/components/MessageModal/MessageModal.js index 656f1b1d..60539804 100644 --- a/web/src/ui/components/MessageModal/MessageModal.js +++ b/web/src/ui/components/MessageModal/MessageModal.js @@ -1,8 +1,8 @@ import React from "react"; import Modal from "../Modal/Modal"; import { + messageModalOverlay, messageModalContainer, - messageModalGuts, messageModalBody, } from "./MessageModal.module.css"; @@ -15,8 +15,8 @@ const MessageModal = ({ {}, + modalOverlayClassName = "", modalContainerClassName = "", - modalGutsClassName = "", modalHeaderClassName = "", modalBodyClassName = "", modalFooterClassName = "", @@ -31,14 +31,14 @@ const Modal = ({ }} />
{ e.stopPropagation(); onClose(); }} >
{ e.stopPropagation(); }}