Skip to content

Conversation

@MrHutmat
Copy link
Contributor

Changed the color of palette-marron-flush so it has a better contrast that complies with WCAG AA.
Adjusted the other variants so they allign with the new changes made to the palette

@Copilot Copilot AI review requested due to automatic review settings October 20, 2025 12:46
@sonarqubecloud
Copy link

@github-actions
Copy link

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

Copy link
Contributor

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

Adjusts the maroon-flush palette token to improve contrast (aiming for WCAG AA) and aligns its light/dark/dimmed variants with the new base.

  • Update base token $maroon-flush to a darker value for better contrast
  • Refresh -light, -dark, and -dimmed variants to match the new base

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +146 to 164
$maroon-flush: #c31d4c;
--uui-palette-maroon-flush: $maroon-flush;
--uui-palette-maroon-flush-light: rgb(
226,
60,
107
223,
42,
93
); /* color($maroon-flush lightness(+ 8%)); */
--uui-palette-maroon-flush-dark: rgb(
191,
33,
78
174,
30,
71
); /* color($maroon-flush blackness(+ 8%)); */
--uui-palette-maroon-flush-dimmed: rgb(
133,
107,
114
122,
98,
104
); /* color(
$maroon-flush saturation(- 62%) blackness(+ 2%)
); */
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

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

[nitpick] The -light, -dark, and -dimmed tokens are hard-coded RGB values. To prevent future drift when the base token changes, derive these from $maroon-flush at build time (e.g., with sass:color): --uui-palette-maroon-flush-light: #{color.scale($maroon-flush, $lightness: 8%)}; --uui-palette-maroon-flush-dark: #{color.scale($maroon-flush, $lightness: -8%)}; --uui-palette-maroon-flush-dimmed: #{color.scale($maroon-flush, $saturation: -62%, $lightness: -2%)}.

Copilot uses AI. Check for mistakes.

223,
42,
93
); /* color($maroon-flush lightness(+ 8%)); */
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

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

The inline comments reference a non-standard/legacy color() modification syntax (historically color-mod). Consider updating the comments to reflect the actual method used to derive these values (e.g., 'Derived from $maroon-flush with +8% lightness', '-8% lightness', and 'saturation -62%, lightness -2%') or adopt sass:color functions and reference those for clarity.

Copilot uses AI. Check for mistakes.

174,
30,
71
); /* color($maroon-flush blackness(+ 8%)); */
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

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

The inline comments reference a non-standard/legacy color() modification syntax (historically color-mod). Consider updating the comments to reflect the actual method used to derive these values (e.g., 'Derived from $maroon-flush with +8% lightness', '-8% lightness', and 'saturation -62%, lightness -2%') or adopt sass:color functions and reference those for clarity.

Suggested change
); /* color($maroon-flush blackness(+ 8%)); */
); /* Derived from $maroon-flush with -8% lightness (e.g., darken($maroon-flush, 8%)) */

Copilot uses AI. Check for mistakes.

Comment on lines 162 to 164
); /* color(
$maroon-flush saturation(- 62%) blackness(+ 2%)
); */
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

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

The inline comments reference a non-standard/legacy color() modification syntax (historically color-mod). Consider updating the comments to reflect the actual method used to derive these values (e.g., 'Derived from $maroon-flush with +8% lightness', '-8% lightness', and 'saturation -62%, lightness -2%') or adopt sass:color functions and reference those for clarity.

Copilot uses AI. Check for mistakes.

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.

1 participant