From 3e07d18acdecbb03300a71f07caa5eaf4d88d41f Mon Sep 17 00:00:00 2001 From: Neil <55785687+carkom@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:45:59 +0100 Subject: [PATCH] Update ModeButton.tsx (#3257) * Update ModeButton.tsx * Update upcoming-release-notes * Update 3257.md * Update ModeButton.tsx --- .../desktop-client/src/components/reports/ModeButton.tsx | 2 +- upcoming-release-notes/3257.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/3257.md diff --git a/packages/desktop-client/src/components/reports/ModeButton.tsx b/packages/desktop-client/src/components/reports/ModeButton.tsx index 94a208e1f..8a35546d7 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 000000000..5588203d1 --- /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 -- GitLab