-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
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.
p5.js-web-editor/client/theme.js
Lines 102 to 112 in e77bc6a
| 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 😝