Skip to content
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

Feature/color picker dark theme fix #1057

Open
wants to merge 3 commits into
base: v1/contrib
Choose a base branch
from

Conversation

MrHutmat
Copy link

Removed some of the hard-coded colors so we are able to use the classes Umbraco uses.

I also removed the box shadow from the color preview button and opted in for a border.

@Copilot Copilot bot review requested due to automatic review settings March 28, 2025 14:01
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the color picker component to support a dark theme by replacing hard-coded color values with CSS variables and removing the box shadow from the color preview button in favor of a border.

  • Replaces static color values with Umbraco’s CSS variables
  • Removes the box shadow and applies a border for the color preview area
  • Adjusts borders on the color picker and swatches to align with the design system
Comments suppressed due to low confidence (2)

packages/uui-color-picker/lib/uui-color-picker.element.ts:589

  • Verify that '--uui-color-text' is defined across all themes to ensure consistent text contrast. If there's any risk of it being undefined, consider providing a fallback value.
color: var(--uui-color-text);

packages/uui-color-picker/lib/uui-color-picker.element.ts:603

  • Ensure that '--uui-color-border' is properly defined in both dark and light themes so that border rendering is consistent. A fallback value might be useful if the variable is not defined.
border: solid 1px var(--uui-color-border);

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-1057.westeurope.azurestaticapps.net

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) March 31, 2025 07:52
Copy link

sonarqubecloud bot commented Apr 1, 2025

Copy link

github-actions bot commented Apr 1, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-1057.westeurope.azurestaticapps.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants