Skip to content

Solid pink buttons need a hover effect #2823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lindapaiste opened this issue Jan 1, 2024 · 5 comments · Fixed by #2883
Closed

Solid pink buttons need a hover effect #2823

lindapaiste opened this issue Jan 1, 2024 · 5 comments · Fixed by #2883

Comments

@lindapaiste
Copy link
Collaborator

Increasing Access

All buttons should have a visible change when hovered so that the user knows that it's hovered.

Feature enhancement details

Gray buttons go to pink when hovered but pink buttons stay pink. We should make it a slightly darker shade of pink to show that it is hovered.

The solid pink button is the secondary kind of the Button component. It is used in the CookieConsent dialog and potentially in other places in the future.

In the theme.js file we would change the hover colors for the secondary button style to be something different. Right now we have the same colors for default and hover but there's a colors.p5jsActivePink that we can use. We don't seem to have an equivalent variation of the yellow color for the contrast theme so we would need to define one.

secondary: {
default: {
foreground: grays.lightest,
background: colors.p5jsPink,
border: colors.p5jsPink
},
hover: {
foreground: grays.lightest,
background: colors.p5jsPink,
border: colors.p5jsPink
},

This issue is intended for @haarsh157 but I can't assign it unless they comment 😝

@mrkirthi-24
Copy link

Hi @lindapaiste I would like to work on this issue

@KartikChawla09
Copy link

Hey @lindapaiste , I have a few options in mind for an equivalent variation of the yellow color. I suggest using #fff001 for the hover state. Additionally, I would like to address the issue and work on resolving it!

@RohitPaul0007
Copy link

hey I like to solve the issue if you assign me the same. @lindapaiste

@haarsh157
Copy link
Contributor

@lindapaiste Hey there! I would like to work on this issue.
Additionally, I'd like to suggest implementing hover transitions in the web editor. What do you think??

@lindapaiste
Copy link
Collaborator Author

@lindapaiste Hey there! I would like to work on this issue.

Great, I just assigned it to you.

Additionally, I'd like to suggest implementing hover transitions in the web editor. What do you think??

I’m on board in principle but we need to find something that looks nice. I tried a simple transition: all 200ms on the button to see what it looks like and I thought it was kinda eye-bleedy. Transitioning probably looks a lot better when the change is subtle but going from gray to pink is a major shift. There might be other types of buttons in the app that are easier to transition nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment