Skip to content

Solid pink buttons need a hover effect #2823

Closed
@lindapaiste

Description

@lindapaiste

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 😝

Metadata

Metadata

Assignees

Labels

Area:CSSFor styling or layout issues handled with CSS/SASSEnhancementImprovement to an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions