Skip to content

Commit

Permalink
add upsell to contrast check (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann authored Jun 24, 2024
1 parent 3c6608c commit 5eea383
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/color-contrast.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ const baseRequirements: ContrastRequirement[] = [
[4.5, 'fgColor-done', 'bgColor-default'],
[4.5, 'fgColor-done', 'bgColor-muted'],
[4.5, 'fgColor-done', 'bgColor-inset'],
[4.5, 'fgColor-upsell', 'bgColor-default'],
[4.5, 'fgColor-upsell', 'bgColor-muted'],
[4.5, 'fgColor-upsell', 'bgColor-inset'],
[4.5, 'fgColor-sponsors', 'bgColor-default'],
[4.5, 'fgColor-sponsors', 'bgColor-muted'],
[4.5, 'fgColor-sponsors', 'bgColor-inset'],
Expand All @@ -73,6 +76,7 @@ const baseRequirements: ContrastRequirement[] = [
[4.5, 'fgColor-attention', 'bgColor-attention-muted'],
[4.5, 'fgColor-severe', 'bgColor-severe-muted'],
[4.5, 'fgColor-done', 'bgColor-done-muted'],
[4.5, 'fgColor-upsell', 'bgColor-upsell-muted'],
[4.5, 'fgColor-sponsors', 'bgColor-sponsors-muted'],
// fgColor-onEmphasis
[4.5, 'fgColor-onEmphasis', 'bgColor-neutral-emphasis'],
Expand All @@ -84,6 +88,7 @@ const baseRequirements: ContrastRequirement[] = [
[4.5, 'fgColor-onEmphasis', 'bgColor-attention-emphasis'],
[4.5, 'fgColor-onEmphasis', 'bgColor-severe-emphasis'],
[4.5, 'fgColor-onEmphasis', 'bgColor-done-emphasis'],
[4.5, 'fgColor-onEmphasis', 'bgColor-upsell-emphasis'],
[4.5, 'fgColor-onEmphasis', 'bgColor-sponsors-emphasis'],
// borders
[3, 'control-borderColor-emphasis', 'bgColor-default'],
Expand Down Expand Up @@ -255,6 +260,9 @@ const highContrast: ContrastRequirement[] = [
[7, 'fgColor-done', 'bgColor-default'],
[7, 'fgColor-done', 'bgColor-muted'],
[7, 'fgColor-done', 'bgColor-inset'],
[7, 'fgColor-upsell', 'bgColor-default'],
[7, 'fgColor-upsell', 'bgColor-muted'],
[7, 'fgColor-upsell', 'bgColor-inset'],
[7, 'fgColor-sponsors', 'bgColor-default'],
[7, 'fgColor-sponsors', 'bgColor-muted'],
[7, 'fgColor-sponsors', 'bgColor-inset'],
Expand All @@ -267,6 +275,7 @@ const highContrast: ContrastRequirement[] = [
[7, 'fgColor-attention', 'bgColor-attention-muted'],
[7, 'fgColor-severe', 'bgColor-severe-muted'],
[7, 'fgColor-done', 'bgColor-done-muted'],
[7, 'fgColor-upsell', 'bgColor-done-muted'],
[7, 'fgColor-sponsors', 'bgColor-sponsors-muted'],
// fgColor-onEmphasis
[7, 'fgColor-onEmphasis', 'bgColor-neutral-emphasis'],
Expand All @@ -278,6 +287,7 @@ const highContrast: ContrastRequirement[] = [
[7, 'fgColor-onEmphasis', 'bgColor-attention-emphasis'],
[7, 'fgColor-onEmphasis', 'bgColor-severe-emphasis'],
[7, 'fgColor-onEmphasis', 'bgColor-done-emphasis'],
[7, 'fgColor-onEmphasis', 'bgColor-upsell-emphasis'],
[7, 'fgColor-onEmphasis', 'bgColor-sponsors-emphasis'],
// borders
[4.5, 'control-borderColor-emphasis', 'bgColor-default'],
Expand Down

0 comments on commit 5eea383

Please sign in to comment.