[Bug]: style - button hover background colors #760

Closed
opened 2026-02-28 19:17:53 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @MatissJanis on GitHub (Nov 25, 2023).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Somewhere along the way to darkmode we have lost hover colors for most buttons in light mode. We should bring them back (maybe not the exact colors as before if they violate the color paletter, but still something)

We are missing hover color for the primary color buttons. For example: rule creation.

What error did you receive?

No response

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

No response

Operating System

None

Originally created by @MatissJanis on GitHub (Nov 25, 2023). ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### What happened? ~Somewhere along the way to darkmode we have lost hover colors for most buttons in light mode. We should bring them back (maybe not the exact colors as before if they violate the color paletter, but still something)~ We are missing hover color for the primary color buttons. For example: rule creation. ### What error did you receive? _No response_ ### Where are you hosting Actual? None ### What browsers are you seeing the problem on? _No response_ ### Operating System None
GiteaMirror added the user interfacegood first issuebug labels 2026-02-28 19:17:54 -06:00
Author
Owner

@carkom commented on GitHub (Nov 26, 2023):

Can you provide an example?

@carkom commented on GitHub (Nov 26, 2023): Can you provide an example?
Author
Owner

@MatissJanis commented on GitHub (Nov 26, 2023):

Just checked v23.7.0. Seems the problem is there too. So it doesn't seem to be a regression after all. Just something we've never had I guess. Weird either way.

Button Hovered
Screenshot 2023-11-26 at 15 41 52 Screenshot 2023-11-26 at 15 41 52
@MatissJanis commented on GitHub (Nov 26, 2023): Just checked v23.7.0. Seems the problem is there too. So it doesn't seem to be a regression after all. Just something we've never had I guess. Weird either way. | Button | Hovered | |--------| --- | | <img width="158" alt="Screenshot 2023-11-26 at 15 41 52" src="https://github.com/actualbudget/actual/assets/886567/61bd3dfd-80fa-4c24-b757-87724d4437a9"> | <img width="158" alt="Screenshot 2023-11-26 at 15 41 52" src="https://github.com/actualbudget/actual/assets/886567/61bd3dfd-80fa-4c24-b757-87724d4437a9"> |
Author
Owner

@carkom commented on GitHub (Nov 26, 2023):

Good news is that it's really easy to change. It's already assigned in "Button.tsx"

const backgroundColorHover = {
normal: theme.buttonNormalBackgroundHover,
primary: theme.buttonPrimaryBackgroundHover,
bare: theme.buttonBareBackgroundHover,
menu: theme.buttonMenuBackgroundHover,
menuSelected: theme.buttonMenuSelectedBackgroundHover,
link: theme.buttonBareBackground,
};

Only change happens in "light.ts" where background and backgroundhover are the same.

export const buttonPrimaryText = colorPalette.white;
export const buttonPrimaryTextHover = buttonPrimaryText;
export const buttonPrimaryBackground = colorPalette.purple500;
export const buttonPrimaryBackgroundHover = buttonPrimaryBackground;
export const buttonPrimaryBorder = buttonPrimaryBackground;

@carkom commented on GitHub (Nov 26, 2023): Good news is that it's really easy to change. It's already assigned in "Button.tsx" _const backgroundColorHover = { normal: theme.buttonNormalBackgroundHover, primary: theme.buttonPrimaryBackgroundHover, bare: theme.buttonBareBackgroundHover, menu: theme.buttonMenuBackgroundHover, menuSelected: theme.buttonMenuSelectedBackgroundHover, link: theme.buttonBareBackground, };_ Only change happens in "light.ts" where background and backgroundhover are the same. _export const buttonPrimaryText = colorPalette.white; export const buttonPrimaryTextHover = buttonPrimaryText; export const buttonPrimaryBackground = colorPalette.purple500; export const buttonPrimaryBackgroundHover = buttonPrimaryBackground; export const buttonPrimaryBorder = buttonPrimaryBackground;_
Author
Owner

@Ife-Ody commented on GitHub (Dec 16, 2023):

Is anyone already working on this? I am looking to make some contributions because I love the vision

@Ife-Ody commented on GitHub (Dec 16, 2023): Is anyone already working on this? I am looking to make some contributions because I love the vision
Author
Owner

@carkom commented on GitHub (Dec 16, 2023):

Not that I'm aware of. Feel free. Please tag me for review.

@carkom commented on GitHub (Dec 16, 2023): Not that I'm aware of. Feel free. Please tag me for review.
Author
Owner

@Ife-Ody commented on GitHub (Dec 23, 2023):

finally working on this today

@Ife-Ody commented on GitHub (Dec 23, 2023): finally working on this today
Author
Owner

@Ife-Ody commented on GitHub (Dec 23, 2023):

The fix was easy. I just picked a shade lighter in the light mode and a shade darker in the dark mode

Good news is that it's really easy to change. It's already assigned in "Button.tsx"

const backgroundColorHover = { normal: theme.buttonNormalBackgroundHover, primary: theme.buttonPrimaryBackgroundHover, bare: theme.buttonBareBackgroundHover, menu: theme.buttonMenuBackgroundHover, menuSelected: theme.buttonMenuSelectedBackgroundHover, link: theme.buttonBareBackground, };

Only change happens in "light.ts" where background and backgroundhover are the same.

export const buttonPrimaryText = colorPalette.white; export const buttonPrimaryTextHover = buttonPrimaryText; export const buttonPrimaryBackground = colorPalette.purple500; export const buttonPrimaryBackgroundHover = buttonPrimaryBackground; export const buttonPrimaryBorder = buttonPrimaryBackground;

@Ife-Ody commented on GitHub (Dec 23, 2023): The fix was easy. I just picked a shade lighter in the light mode and a shade darker in the dark mode > Good news is that it's really easy to change. It's already assigned in "Button.tsx" > > _const backgroundColorHover = { normal: theme.buttonNormalBackgroundHover, primary: theme.buttonPrimaryBackgroundHover, bare: theme.buttonBareBackgroundHover, menu: theme.buttonMenuBackgroundHover, menuSelected: theme.buttonMenuSelectedBackgroundHover, link: theme.buttonBareBackground, };_ > > Only change happens in "light.ts" where background and backgroundhover are the same. > > _export const buttonPrimaryText = colorPalette.white; export const buttonPrimaryTextHover = buttonPrimaryText; export const buttonPrimaryBackground = colorPalette.purple500; export const buttonPrimaryBackgroundHover = buttonPrimaryBackground; export const buttonPrimaryBorder = buttonPrimaryBackground;_
Author
Owner

@carkom commented on GitHub (Dec 23, 2023):

Great! Yea, we implemented the code like that to make color changes really easy. Go ahead and create a PR with your changes. Cheers!

@carkom commented on GitHub (Dec 23, 2023): Great! Yea, we implemented the code like that to make color changes really easy. Go ahead and create a PR with your changes. Cheers!
Author
Owner

@carkom commented on GitHub (Dec 24, 2023):

fixed by #2123

@carkom commented on GitHub (Dec 24, 2023): fixed by #2123
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#760