Skip to content

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

fix: disabled menuitems not appearing right

thecodrrd7bd4135e4a6
diff --git a/apps/web/src/components/menu/index.js b/apps/web/src/components/menu/index.js
index 7f81adfb9..52f058116 100644
--- a/apps/web/src/components/menu/index.js
+++ b/apps/web/src/components/menu/index.js
@@ -46,6 +46,11 @@ function Menu(props) {
/>
) : (
<Button
+ variant="menuitem"
+ color={color || "text"}
+ display="flex"
+ alignItems="center"
+ justifyContent="center"
title={
(disabled && disabled(data) && disableReason) || title(data)
}
@@ -65,12 +70,6 @@ function Menu(props) {
onClick(data, menuItems[index]);
}
}}
- display="flex"
- flexDirection="row"
- alignItems="center"
- justifyContent="center"
- variant="menuitem"
- color={color || "text"}
>
{Icon && (
<Icon
diff --git a/apps/web/src/theme/variants/button.js b/apps/web/src/theme/variants/button.js
index 18bedd35d..a7ceacd6b 100644
--- a/apps/web/src/theme/variants/button.js
+++ b/apps/web/src/theme/variants/button.js
@@ -166,7 +166,8 @@ class StatusItem {
class MenuItem {
constructor() {
return {
- bg: "transparent",
+ variant: "buttons.default",
+ // bg: "transparent",
py: "8px",
px: 3,
borderRadius: 0,