Added background color to menu to make it easier to see on a light background

This commit is contained in:
Mitchell McCaffrey
2020-04-20 15:47:52 +10:00
parent 06f5d3ab42
commit eeaa250ca2
3 changed files with 14 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
import React from "react";
import Modal from "react-modal";
import { useThemeUI } from "theme-ui";
function MapMenu({
isOpen,
onRequestClose,
@@ -35,6 +37,9 @@ function MapMenu({
}
onModalContent(node);
}
const { theme } = useThemeUI();
return (
<Modal
isOpen={isOpen}
@@ -42,7 +47,7 @@ function MapMenu({
style={{
overlay: { top: "0", bottom: "initial" },
content: {
backgroundColor: "hsla(230, 25%, 18%, 0.8)",
backgroundColor: theme.colors.overlay,
top,
left,
right,