actual icon indicating copy to clipboard operation
actual copied to clipboard

[Bug]: style - button hover background colors

Open MatissJanis opened this issue 1 year ago • 9 comments

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

MatissJanis avatar Nov 25 '23 18:11 MatissJanis

Can you provide an example?

carkom avatar Nov 26 '23 10:11 carkom

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 avatar Nov 26 '23 15:11 MatissJanis

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 avatar Nov 26 '23 16:11 carkom

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

Ife-Ody avatar Dec 16 '23 09:12 Ife-Ody

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

carkom avatar Dec 16 '23 13:12 carkom

finally working on this today

Ife-Ody avatar Dec 23 '23 08:12 Ife-Ody

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 avatar Dec 23 '23 21:12 Ife-Ody

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 avatar Dec 23 '23 21:12 carkom

fixed by #2123

carkom avatar Dec 24 '23 08:12 carkom