Skip to content

Commit d34da17

Browse files
authored
Merge pull request #10860 from ethereum/fix-quiz-modal-bg-color
Fix quiz modal bg color
2 parents d555447 + 203a809 commit d34da17

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/Quiz/QuizzesModal.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const QuizzesModal: React.FC<IProps> = ({ children, ...rest }) => {
1818

1919
const statusColor =
2020
quizStatus === "neutral"
21-
? "white"
21+
? "neutral"
2222
: quizStatus === "success"
2323
? "success.light"
2424
: "error.light"
@@ -30,10 +30,7 @@ const QuizzesModal: React.FC<IProps> = ({ children, ...rest }) => {
3030
scrollBehavior="inside"
3131
{...rest}
3232
>
33-
<ModalOverlay
34-
bg="blackAlpha.700"
35-
display={{ base: "none", md: "block" }}
36-
/>
33+
<ModalOverlay bg="blackAlpha.700" hideBelow="md" />
3734

3835
<ModalContent justifyContent="center" bg={statusColor}>
3936
<ModalCloseButton size="lg" p={6} zIndex={1} />

0 commit comments

Comments
 (0)