Skip to content

Update inactive button text color to meet contrast on inactive button bg color - #778

Merged
mperrotti merged 4 commits into
mainfrom
mp/fgColor-muted-sync-legacy
Nov 21, 2023
Merged

mperrotti merged 4 commits into
mainfrom
mp/fgColor-muted-sync-legacy

Conversation

@mperrotti

@mperrotti mperrotti commented Nov 17, 2023 •

Copy link
Copy Markdown
Contributor

Summary

Update inactive button text color in light and dark mode to ensure we're meeting the contrast ratio minimum against the inactive button's background color.

List of notable changes:

  • Updates inactive button colors in legacy and v8 token data

What should reviewers focus on?

Steps to test:

Supporting resources (related issues, external links, etc):

The former fg.muted value just barely fails the contrast ratio check when used on gray.1: https://github.com/primer/react/actions/runs/6893293489/job/18752536079?pr=3812

Contributor checklist:

  • All new and existing CI checks pass
  • Tests prove that the feature works and covers both happy and unhappy paths
  • Any drop in coverage, breaking changes or regressions have been documented above
  • All developer debugging and non-functional logging has been removed
  • Related issues have been referenced in the PR description

Reviewer checklist:

  • Check that pull request and proposed changes adhere to our contribution guidelines and code of conduct
  • Check that tests prove the feature works and covers both happy and unhappy paths
  • Check that there aren't other open Pull Requests for the same update/change
  • Verify the design tokens changed in this PR are expected using the diffing results in this PR

@mperrotti
mperrotti requested a review from a team as a code owner November 17, 2023 16:11
@mperrotti
mperrotti requested review from a team, broccolinisoup and tobiasahlin November 17, 2023 16:11
@changeset-bot

changeset-bot Bot commented Nov 17, 2023 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8eb9fb8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/primitives Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Nov 17, 2023 •

Copy link
Copy Markdown
Contributor
Variables changed
--- base/dist/scss/colors/_dark.scss	2023-11-21 16:57:26.858330129 +0000
+++ dist/scss/colors/_dark.scss	2023-11-21 16:57:13.838306441 +0000
@@ -258,3 +258,3 @@
     --color-btn-inactive-bg: #21262d;
-    --color-btn-inactive-text: #7d8590;
+    --color-btn-inactive-text: #8b949e;
     --color-underlinenav-icon: #6e7681;
--- base/dist/scss/colors/_dark_high_contrast.scss	2023-11-21 16:57:26.870330181 +0000
+++ dist/scss/colors/_dark_high_contrast.scss	2023-11-21 16:57:13.846306445 +0000
@@ -258,3 +258,3 @@
     --color-btn-inactive-bg: #272b33;
-    --color-btn-inactive-text: #f0f3f6;
+    --color-btn-inactive-text: #bdc4cc;
     --color-underlinenav-icon: #f0f3f6;
--- base/dist/scss/colors/_light.scss	2023-11-21 16:57:26.838330040 +0000
+++ dist/scss/colors/_light.scss	2023-11-21 16:57:13.814306430 +0000
@@ -258,3 +258,3 @@
     --color-btn-inactive-bg: #eaeef2;
-    --color-btn-inactive-text: #656d76;
+    --color-btn-inactive-text: #57606a;
     --color-underlinenav-icon: #6e7781;
--- base/dist/scss/colors/_light_high_contrast.scss	2023-11-21 16:57:26.846330076 +0000
+++ dist/scss/colors/_light_high_contrast.scss	2023-11-21 16:57:13.822306434 +0000
@@ -258,3 +258,3 @@
     --color-btn-inactive-bg: #e7ecf0;
-    --color-btn-inactive-text: #0e1116;
+    --color-btn-inactive-text: #4b535d;
     --color-underlinenav-icon: #66707b;

@github-actions

github-actions Bot commented Nov 17, 2023 •

Copy link
Copy Markdown
Contributor

Design Token Contrast Check

light: âś… all checks passed

Show results table for theme: light
contrastPair pass contrastRatio minimumContrastRatio
fg.default vs. canvas.default âś… 15.79:1 4.5:1
fg.muted vs. canvas.default âś… 5.24:1 4.5:1
fg.subtle vs. canvas.default âś… 4.54:1 4.5:1
fg.default vs. canvas.subtle âś… 14.83:1 4.5:1
fg.muted vs. canvas.subtle âś… 4.92:1 4.5:1
fg.default vs. canvas.inset âś… 14.83:1 4.5:1
fg.muted vs. canvas.inset âś… 4.92:1 4.5:1
fg.default vs. accent.fg âś… 3.04:1 3:1
fg.default vs. fg.muted âś… 3.01:1 3:1
fg.default vs. accent.subtle âś… 13.88:1 4.5:1
fg.default vs. success.subtle âś… 14.19:1 4.5:1
fg.default vs. open.subtle âś… 14.19:1 4.5:1
fg.default vs. danger.subtle âś… 13.77:1 4.5:1
fg.default vs. closed.subtle âś… 13.77:1 4.5:1
fg.default vs. attention.subtle âś… 14.65:1 4.5:1
fg.default vs. severe.subtle âś… 14.26:1 4.5:1
fg.default vs. done.subtle âś… 14.21:1 4.5:1
fg.default vs. sponsors.subtle âś… 14.24:1 4.5:1
accent.fg vs. canvas.default âś… 5.19:1 4.5:1
accent.fg vs. canvas.subtle âś… 4.87:1 4.5:1
accent.fg vs. canvas.inset âś… 4.87:1 4.5:1
success.fg vs. canvas.default âś… 5.07:1 4.5:1
success.fg vs. canvas.subtle âś… 4.77:1 4.5:1
success.fg vs. canvas.inset âś… 4.77:1 4.5:1
open.fg vs. canvas.default âś… 5.07:1 4.5:1
open.fg vs. canvas.subtle âś… 4.77:1 4.5:1
open.fg vs. canvas.inset âś… 4.77:1 4.5:1
danger.fg vs. canvas.default âś… 5.24:1 4.5:1
danger.fg vs. canvas.subtle âś… 4.92:1 4.5:1
danger.fg vs. canvas.inset âś… 4.92:1 4.5:1
closed.fg vs. canvas.default âś… 5.24:1 4.5:1
closed.fg vs. canvas.subtle âś… 4.92:1 4.5:1
closed.fg vs. canvas.inset âś… 4.92:1 4.5:1
attention.fg vs. canvas.default âś… 4.86:1 4.5:1
attention.fg vs. canvas.subtle âś… 4.57:1 4.5:1
attention.fg vs. canvas.inset âś… 4.57:1 4.5:1
severe.fg vs. canvas.default âś… 5.03:1 4.5:1
severe.fg vs. canvas.subtle âś… 4.72:1 4.5:1
severe.fg vs. canvas.inset âś… 4.72:1 4.5:1
done.fg vs. canvas.default âś… 5.04:1 4.5:1
done.fg vs. canvas.subtle âś… 4.73:1 4.5:1
done.fg vs. canvas.inset âś… 4.73:1 4.5:1
sponsors.fg vs. canvas.default âś… 5.04:1 4.5:1
sponsors.fg vs. canvas.subtle âś… 4.73:1 4.5:1
sponsors.fg vs. canvas.inset âś… 4.73:1 4.5:1
accent.fg vs. accent.subtle âś… 4.56:1 4.5:1
success.fg vs. success.subtle âś… 4.56:1 4.5:1
open.fg vs. open.subtle âś… 4.56:1 4.5:1
danger.fg vs. danger.subtle âś… 4.57:1 4.5:1
closed.fg vs. closed.subtle âś… 4.57:1 4.5:1
attention.fg vs. attention.subtle âś… 4.51:1 4.5:1
severe.fg vs. severe.subtle âś… 4.54:1 4.5:1
done.fg vs. done.subtle âś… 4.53:1 4.5:1
sponsors.fg vs. sponsors.subtle âś… 4.55:1 4.5:1
accent.fg vs. fg.default âś… 3.04:1 3:1
success.fg vs. fg.default âś… 3.11:1 3:1
open.fg vs. fg.default âś… 3.11:1 3:1
danger.fg vs. fg.default âś… 3.01:1 3:1
closed.fg vs. fg.default âś… 3.01:1 3:1
attention.fg vs. fg.default âś… 3.24:1 3:1
severe.fg vs. fg.default âś… 3.13:1 3:1
done.fg vs. fg.default âś… 3.13:1 3:1
sponsors.fg vs. fg.default âś… 3.13:1 3:1
fg.onEmphasis vs. neutral.emphasis âś… 4.54:1 4.5:1
fg.onEmphasis vs. neutral.emphasisPlus âś… 14.65:1 4.5:1
fg.onEmphasis vs. accent.emphasis âś… 5.19:1 4.5:1
fg.onEmphasis vs. success.emphasis âś… 4.51:1 4.5:1
fg.onEmphasis vs. open.emphasis âś… 4.51:1 4.5:1
fg.onEmphasis vs. danger.emphasis âś… 5.35:1 4.5:1
fg.onEmphasis vs. closed.emphasis âś… 5.35:1 4.5:1
fg.onEmphasis vs. attention.emphasis âś… 4.86:1 4.5:1
fg.onEmphasis vs. severe.emphasis âś… 5.03:1 4.5:1
fg.onEmphasis vs. done.emphasis âś… 5.04:1 4.5:1
fg.onEmphasis vs. sponsors.emphasis âś… 5.04:1 4.5:1
control.borderColor.emphasis vs. canvas.default âś… 3.28:1 3:1
control.borderColor.emphasis vs. canvas.subtle âś… 3.08:1 3:1

dark: ❌ 9 checks failed

Show results table for theme: dark
contrastPair pass contrastRatio minimumContrastRatio
fg.default vs. canvas.default âś… 16.01:1 4.5:1
fg.muted vs. canvas.default âś… 5.07:1 4.5:1
fg.subtle vs. canvas.default ❌ 4.11:1 4.5:1
fg.default vs. canvas.subtle âś… 14.63:1 4.5:1
fg.muted vs. canvas.subtle âś… 4.63:1 4.5:1
fg.default vs. canvas.inset âś… 17.37:1 4.5:1
fg.muted vs. canvas.inset âś… 5.5:1 4.5:1
fg.default vs. accent.fg âś… 3.17:1 3:1
fg.default vs. fg.muted âś… 3.15:1 3:1
fg.default vs. accent.subtle on canvas.default âś… 14.34:1 4.5:1
fg.default vs. accent.subtle on canvas.subtle âś… 12.91:1 4.5:1
fg.default vs. success.subtle on canvas.default âś… 13.44:1 4.5:1
fg.default vs. success.subtle on canvas.subtle âś… 12:1 4.5:1
fg.default vs. open.subtle on canvas.default âś… 13.44:1 4.5:1
fg.default vs. open.subtle on canvas.subtle âś… 12:1 4.5:1
fg.default vs. danger.subtle on canvas.default âś… 14.59:1 4.5:1
fg.default vs. danger.subtle on canvas.subtle âś… 13.2:1 4.5:1
fg.default vs. closed.subtle on canvas.default âś… 13.64:1 4.5:1
fg.default vs. closed.subtle on canvas.subtle âś… 12.34:1 4.5:1
fg.default vs. attention.subtle on canvas.default âś… 13.4:1 4.5:1
fg.default vs. attention.subtle on canvas.subtle âś… 12.08:1 4.5:1
fg.default vs. severe.subtle on canvas.default âś… 14.45:1 4.5:1
fg.default vs. severe.subtle on canvas.subtle âś… 13.03:1 4.5:1
fg.default vs. done.subtle on canvas.default âś… 14.28:1 4.5:1
fg.default vs. done.subtle on canvas.subtle âś… 12.85:1 4.5:1
fg.default vs. sponsors.subtle on canvas.default âś… 14.4:1 4.5:1
fg.default vs. sponsors.subtle on canvas.subtle âś… 12.98:1 4.5:1
accent.fg vs. canvas.default âś… 5.05:1 4.5:1
accent.fg vs. canvas.subtle âś… 4.61:1 4.5:1
accent.fg vs. canvas.inset âś… 5.48:1 4.5:1
success.fg vs. canvas.default âś… 7.44:1 4.5:1
success.fg vs. canvas.subtle âś… 6.8:1 4.5:1
success.fg vs. canvas.inset âś… 8.08:1 4.5:1
open.fg vs. canvas.default âś… 7.44:1 4.5:1
open.fg vs. canvas.subtle âś… 6.8:1 4.5:1
open.fg vs. canvas.inset âś… 8.08:1 4.5:1
danger.fg vs. canvas.default âś… 5.64:1 4.5:1
danger.fg vs. canvas.subtle âś… 5.16:1 4.5:1
danger.fg vs. canvas.inset âś… 6.12:1 4.5:1
closed.fg vs. canvas.default âś… 5.64:1 4.5:1
closed.fg vs. canvas.subtle âś… 5.16:1 4.5:1
closed.fg vs. canvas.inset âś… 6.12:1 4.5:1
attention.fg vs. canvas.default âś… 7.49:1 4.5:1
attention.fg vs. canvas.subtle âś… 6.85:1 4.5:1
attention.fg vs. canvas.inset âś… 8.13:1 4.5:1
severe.fg vs. canvas.default âś… 5.61:1 4.5:1
severe.fg vs. canvas.subtle âś… 5.13:1 4.5:1
severe.fg vs. canvas.inset âś… 6.09:1 4.5:1
done.fg vs. canvas.default âś… 5.64:1 4.5:1
done.fg vs. canvas.subtle âś… 5.15:1 4.5:1
done.fg vs. canvas.inset âś… 6.12:1 4.5:1
sponsors.fg vs. canvas.default âś… 5.62:1 4.5:1
sponsors.fg vs. canvas.subtle âś… 5.14:1 4.5:1
sponsors.fg vs. canvas.inset âś… 6.1:1 4.5:1
accent.fg vs. accent.subtle on canvas.default âś… 4.52:1 4.5:1
success.fg vs. success.subtle on canvas.default âś… 6.25:1 4.5:1
success.fg vs. success.subtle on canvas.subtle âś… 5.58:1 4.5:1
open.fg vs. open.subtle on canvas.default âś… 6.25:1 4.5:1
open.fg vs. open.subtle on canvas.subtle âś… 5.58:1 4.5:1
danger.fg vs. danger.subtle on canvas.default âś… 5.14:1 4.5:1
danger.fg vs. danger.subtle on canvas.subtle âś… 4.65:1 4.5:1
closed.fg vs. closed.subtle on canvas.default âś… 4.81:1 4.5:1
attention.fg vs. attention.subtle on canvas.default âś… 6.27:1 4.5:1
attention.fg vs. attention.subtle on canvas.subtle âś… 5.65:1 4.5:1
severe.fg vs. severe.subtle on canvas.default âś… 5.06:1 4.5:1
severe.fg vs. severe.subtle on canvas.subtle âś… 4.57:1 4.5:1
done.fg vs. done.subtle on canvas.default âś… 5.03:1 4.5:1
done.fg vs. done.subtle on canvas.subtle âś… 4.52:1 4.5:1
sponsors.fg vs. sponsors.subtle on canvas.default âś… 5.06:1 4.5:1
sponsors.fg vs. sponsors.subtle on canvas.subtle âś… 4.56:1 4.5:1
accent.fg vs. fg.default âś… 3.17:1 3:1
success.fg vs. fg.default ❌ 2.14:1 3:1
open.fg vs. fg.default ❌ 2.14:1 3:1
danger.fg vs. fg.default ❌ 2.83:1 3:1
closed.fg vs. fg.default ❌ 2.83:1 3:1
attention.fg vs. fg.default ❌ 2.13:1 3:1
severe.fg vs. fg.default ❌ 2.85:1 3:1
done.fg vs. fg.default ❌ 2.83:1 3:1
sponsors.fg vs. fg.default ❌ 2.84:1 3:1
fg.onEmphasis vs. neutral.emphasis âś… 4.59:1 4.5:1
fg.onEmphasis vs. neutral.emphasisPlus âś… 4.59:1 4.5:1
fg.onEmphasis vs. accent.emphasis âś… 4.63:1 4.5:1
fg.onEmphasis vs. success.emphasis âś… 4.63:1 4.5:1
fg.onEmphasis vs. open.emphasis âś… 4.63:1 4.5:1
fg.onEmphasis vs. danger.emphasis âś… 4.6:1 4.5:1
fg.onEmphasis vs. closed.emphasis âś… 4.6:1 4.5:1
fg.onEmphasis vs. attention.emphasis âś… 4.64:1 4.5:1
fg.onEmphasis vs. severe.emphasis âś… 4.65:1 4.5:1
fg.onEmphasis vs. done.emphasis âś… 4.6:1 4.5:1
fg.onEmphasis vs. sponsors.emphasis âś… 4.57:1 4.5:1
control.borderColor.emphasis vs. canvas.default âś… 3.31:1 3:1
control.borderColor.emphasis vs. canvas.subtle âś… 3.02:1 3:1

@mperrotti mperrotti changed the title Match legacy fgColor-muted with the v8 value Match legacy fg.muted with the v8 value for fgColor-muted Nov 17, 2023
@github-actions
github-actions Bot temporarily deployed to storybook-preview November 17, 2023 16:13 Inactive
@mperrotti

Copy link
Copy Markdown
Contributor Author

It looks like we might need to update fg.default as well. There isn't enough contrast between muted and default right now.

@mperrotti

mperrotti commented Nov 17, 2023 •

Copy link
Copy Markdown
Contributor Author

Unless we don't care about fgColor-default and fgColor-muted not meeting a 3:1 contrast ratio, I don't think this is the right approach for getting inactive buttons to have sufficient contrast. We'd have to significantly darken fgColor-default or black to have 3:1 contrast between.

Current fgColor-default/black: #1f2328
Darkened fgColor-default/black to have 3:1 contrast with fgColor-muted/gray.6: #0d0f11


I think instead we should just use a custom color for the inactive button text tokens. What do you think?

@lukasoppermann

Copy link
Copy Markdown
Collaborator

I think instead we should just use a custom color for the inactive button text tokens. What do you think?

yes, you are right. I missed the 3:1 contrast between default and muted, sorry.

In this case we should go ahead and just create custom component token here.

@mperrotti mperrotti changed the title Match legacy fg.muted with the v8 value for fgColor-muted Update inactive button text color to meet contrast on inactive button bg color Nov 21, 2023
@github-actions

Copy link
Copy Markdown
Contributor

Design Token Diff

/css/functional/themes/dark-colorblind.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-colorblind.css	2023-11-21 16:57:11.608061344 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #f0f6fc1a;
 --button-danger-borderColor-active: #f0f6fc1a;
 --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-inactive-fgColor-rest: #7d8590;
+  --button-inactive-fgColor-rest: #8b949e;
 --button-inactive-bgColor-rest: #21262d;
 --buttonCounter-default-bgColor-rest: #30363d;
 --buttonCounter-invisible-bgColor-rest: #30363d;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #f0f6fc1a;
   --button-danger-borderColor-active: #f0f6fc1a;
   --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-inactive-fgColor-rest: #7d8590;
+    --button-inactive-fgColor-rest: #8b949e;
   --button-inactive-bgColor-rest: #21262d;
   --buttonCounter-default-bgColor-rest: #30363d;
   --buttonCounter-invisible-bgColor-rest: #30363d;

/css/functional/themes/dark-dimmed.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-dimmed.css	2023-11-21 16:57:10.984060500 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #cdd9e51a;
 --button-danger-borderColor-active: #cdd9e51a;
 --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-inactive-fgColor-rest: #6d7986;
+  --button-inactive-fgColor-rest: #768390;
 --button-inactive-bgColor-rest: #373e47;
 --buttonCounter-default-bgColor-rest: #444c56;
 --buttonCounter-invisible-bgColor-rest: #444c56;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #cdd9e51a;
   --button-danger-borderColor-active: #cdd9e51a;
   --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-inactive-fgColor-rest: #6d7986;
+    --button-inactive-fgColor-rest: #768390;
   --button-inactive-bgColor-rest: #373e47;
   --buttonCounter-default-bgColor-rest: #444c56;
   --buttonCounter-invisible-bgColor-rest: #444c56;

/css/functional/themes/dark-high-contrast.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-high-contrast.css	2023-11-21 16:57:11.924061771 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #ffffff1a;
 --button-danger-borderColor-active: #ffffff1a;
 --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-inactive-fgColor-rest: #f0f3f6;
+  --button-inactive-fgColor-rest: #bdc4cc;
 --button-inactive-bgColor-rest: #272b33;
 --buttonCounter-default-bgColor-rest: #525964;
 --buttonCounter-invisible-bgColor-rest: #525964;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #ffffff1a;
   --button-danger-borderColor-active: #ffffff1a;
   --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-inactive-fgColor-rest: #f0f3f6;
+    --button-inactive-fgColor-rest: #bdc4cc;
   --button-inactive-bgColor-rest: #272b33;
   --buttonCounter-default-bgColor-rest: #525964;
   --buttonCounter-invisible-bgColor-rest: #525964;

/css/functional/themes/dark-tritanopia.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark-tritanopia.css	2023-11-21 16:57:11.300060928 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #f0f6fc1a;
 --button-danger-borderColor-active: #f0f6fc1a;
 --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-inactive-fgColor-rest: #7d8590;
+  --button-inactive-fgColor-rest: #8b949e;
 --button-inactive-bgColor-rest: #21262d;
 --buttonCounter-default-bgColor-rest: #30363d;
 --buttonCounter-invisible-bgColor-rest: #30363d;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #f0f6fc1a;
   --button-danger-borderColor-active: #f0f6fc1a;
   --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-inactive-fgColor-rest: #7d8590;
+    --button-inactive-fgColor-rest: #8b949e;
   --button-inactive-bgColor-rest: #21262d;
   --buttonCounter-default-bgColor-rest: #30363d;
   --buttonCounter-invisible-bgColor-rest: #30363d;

/css/functional/themes/dark.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/dark.css	2023-11-21 16:57:10.652060051 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #f0f6fc1a;
 --button-danger-borderColor-active: #f0f6fc1a;
 --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-  --button-inactive-fgColor-rest: #7d8590;
+  --button-inactive-fgColor-rest: #8b949e;
 --button-inactive-bgColor-rest: #21262d;
 --buttonCounter-default-bgColor-rest: #30363d;
 --buttonCounter-invisible-bgColor-rest: #30363d;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #f0f6fc1a;
   --button-danger-borderColor-active: #f0f6fc1a;
   --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
-    --button-inactive-fgColor-rest: #7d8590;
+    --button-inactive-fgColor-rest: #8b949e;
   --button-inactive-bgColor-rest: #21262d;
   --buttonCounter-default-bgColor-rest: #30363d;
   --buttonCounter-invisible-bgColor-rest: #30363d;

/css/functional/themes/light-colorblind.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/light-colorblind.css	2023-11-21 16:57:09.936059082 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #1f232826;
 --button-danger-borderColor-active: #1f232826;
 --button-danger-shadow-selected: inset 0px 1px 0px 0px #47170033;
-  --button-inactive-fgColor-rest: #636c76;
+  --button-inactive-fgColor-rest: #57606a;
 --button-inactive-bgColor-rest: #eaeef2;
 --buttonCounter-default-bgColor-rest: #afb8c133;
 --buttonCounter-invisible-bgColor-rest: #afb8c133;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #1f232826;
   --button-danger-borderColor-active: #1f232826;
   --button-danger-shadow-selected: inset 0px 1px 0px 0px #47170033;
-    --button-inactive-fgColor-rest: #636c76;
+    --button-inactive-fgColor-rest: #57606a;
   --button-inactive-bgColor-rest: #eaeef2;
   --buttonCounter-default-bgColor-rest: #afb8c133;
   --buttonCounter-invisible-bgColor-rest: #afb8c133;

/css/functional/themes/light-high-contrast.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/light-high-contrast.css	2023-11-21 16:57:10.260059521 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #01040926;
 --button-danger-borderColor-active: #01040926;
 --button-danger-shadow-selected: inset 0px 1px 0px 0px #43001133;
-  --button-inactive-fgColor-rest: #0e1116;
+  --button-inactive-fgColor-rest: #4b535d;
 --button-inactive-bgColor-rest: #e7ecf0;
 --buttonCounter-default-bgColor-rest: #66707b33;
 --buttonCounter-invisible-bgColor-rest: #66707b33;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #01040926;
   --button-danger-borderColor-active: #01040926;
   --button-danger-shadow-selected: inset 0px 1px 0px 0px #43001133;
-    --button-inactive-fgColor-rest: #0e1116;
+    --button-inactive-fgColor-rest: #4b535d;
   --button-inactive-bgColor-rest: #e7ecf0;
   --buttonCounter-default-bgColor-rest: #66707b33;
   --buttonCounter-invisible-bgColor-rest: #66707b33;

/css/functional/themes/light-tritanopia.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/light-tritanopia.css	2023-11-21 16:57:09.560058574 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #1f232826;
 --button-danger-borderColor-active: #1f232826;
 --button-danger-shadow-selected: inset 0px 1px 0px 0px #4c001433;
-  --button-inactive-fgColor-rest: #636c76;
+  --button-inactive-fgColor-rest: #57606a;
 --button-inactive-bgColor-rest: #eaeef2;
 --buttonCounter-default-bgColor-rest: #afb8c133;
 --buttonCounter-invisible-bgColor-rest: #afb8c133;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #1f232826;
   --button-danger-borderColor-active: #1f232826;
   --button-danger-shadow-selected: inset 0px 1px 0px 0px #4c001433;
-    --button-inactive-fgColor-rest: #636c76;
+    --button-inactive-fgColor-rest: #57606a;
   --button-inactive-bgColor-rest: #eaeef2;
   --buttonCounter-default-bgColor-rest: #afb8c133;
   --buttonCounter-invisible-bgColor-rest: #afb8c133;

/css/functional/themes/light.css

+++ /home/runner/work/primitives/primitives/tokens-next-private/css/functional/themes/light.css	2023-11-21 16:57:09.088057936 +0000
@@ -159,7 +159,7 @@
 --button-danger-borderColor-hover: #1f232826;
 --button-danger-borderColor-active: #1f232826;
 --button-danger-shadow-selected: inset 0px 1px 0px 0px #4c001433;
-  --button-inactive-fgColor-rest: #636c76;
+  --button-inactive-fgColor-rest: #57606a;
 --button-inactive-bgColor-rest: #eaeef2;
 --buttonCounter-default-bgColor-rest: #afb8c133;
 --buttonCounter-invisible-bgColor-rest: #afb8c133;
@@ -579,7 +579,7 @@
   --button-danger-borderColor-hover: #1f232826;
   --button-danger-borderColor-active: #1f232826;
   --button-danger-shadow-selected: inset 0px 1px 0px 0px #4c001433;
-    --button-inactive-fgColor-rest: #636c76;
+    --button-inactive-fgColor-rest: #57606a;
   --button-inactive-bgColor-rest: #eaeef2;
   --buttonCounter-default-bgColor-rest: #afb8c133;
   --buttonCounter-invisible-bgColor-rest: #afb8c133;

@github-actions
github-actions Bot temporarily deployed to storybook-preview November 21, 2023 16:58 Inactive
@mperrotti mperrotti added the update snapshots Update visual regression test snapshots label Nov 21, 2023
@github-actions github-actions Bot removed the update snapshots Update visual regression test snapshots label Nov 21, 2023
@mperrotti

Copy link
Copy Markdown
Contributor Author

This appears to be stuck on the "check for changeset" check. Merging because I can manually confirm that there is a changeset: https://github.com/primer/primitives/pull/778/files#diff-747c9a1a38a77edc5f5c05e85a844a1257bdb73d6d184dd21d97136a3b1e9a51

@mperrotti
mperrotti merged commit f546c45 into main Nov 21, 2023
@mperrotti
mperrotti deleted the mp/fgColor-muted-sync-legacy branch November 21, 2023 17:33
@primer primer Bot mentioned this pull request Nov 21, 2023
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.

3 participants