Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: fix menu items font color black in dark theme

thecodrrb20c6c722478
diff --git a/apps/web/src/components/menu/index.js b/apps/web/src/components/menu/index.js
index 8a14cd8e0..d9cf6e4ab 100644
--- a/apps/web/src/components/menu/index.js
+++ b/apps/web/src/components/menu/index.js
@@ -15,7 +15,7 @@ function Menu(props) {
border: "2px solid",
borderColor: "border",
width: 140,
- ...props.sx
+ ...props.sx,
}}
>
<Box width="100%">
@@ -30,11 +30,11 @@ function Menu(props) {
Properties
</Text>
{props.menuItems.map(
- item =>
+ (item) =>
!item.invisible && (
<Flex
key={item.title}
- onClick={e => {
+ onClick={(e) => {
e.stopPropagation();
Dropdown.closeLastOpened();
if (props.closeMenu) {
@@ -49,10 +49,10 @@ function Menu(props) {
py={"8px"}
px={3}
sx={{
- color: item.color || "fontPrimary",
+ color: item.color || "text",
":hover": {
- backgroundColor: "shade"
- }
+ backgroundColor: "shade",
+ },
}}
>
<Text as="span" fontFamily="body" fontSize="menu">