Skip to content

Scale up/down buttons wrong color in SUSE theme #17067

@nwmac

Description

@nwmac

The scaler component for resource cards renders with a bright green color that doesn't match the rest of the Prime theme.

Steps to reproduce

  1. Deploy a Prime image of Rancher or enable the Prime theme
  2. Create a deployment
  3. Navigate to Cluster Explorer => Deployments and click on the deployment created in step 2

Actual behavior

The scaler controls for pods renders a bright green color that doesn't match the Prime theme

Expected behavior

The scaler controls use colors that align with the Prime theme

Additional context

For both the background color and hover styles, we calculate the color based on the --primary variable:

background-color: hsl(from var(--primary) h s calc(l + 30));

&:hover {
background-color: hsl(from var(--primary) h s calc(l + 20));
}

I think that we can benefit from being more explicit about our colors so that they render properly across all our supported themes.

Related issues

Original context

Image is worth a thousand words:

Image

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions