Skip to content

A local-first personal finance app

Update ModeButton.tsx (#3257)

Neil3e07d18acdec
diff --git a/packages/desktop-client/src/components/reports/ModeButton.tsx b/packages/desktop-client/src/components/reports/ModeButton.tsx
index 94a208e1ff..8a35546d77 100644
--- a/packages/desktop-client/src/components/reports/ModeButton.tsx
+++ b/packages/desktop-client/src/components/reports/ModeButton.tsx
@@ -27,6 +27,7 @@ export function ModeButton({
backgroundColor: theme.menuBackground,
marginRight: 5,
fontSize: 'inherit',
+ ...style,
...(selected && {
backgroundColor: theme.buttonPrimaryBackground,
color: theme.buttonPrimaryText,
@@ -35,7 +36,6 @@ export function ModeButton({
color: theme.buttonPrimaryTextHover,
},
}),
- ...style,
}),
)}
onPress={onSelect}
diff --git a/upcoming-release-notes/3257.md b/upcoming-release-notes/3257.md
new file mode 100644
index 0000000000..5588203d10
--- /dev/null
+++ b/upcoming-release-notes/3257.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [carkom]
+---
+
+Fix regression in button color for spending graph.
\ No newline at end of file