Conversation
🦋 Changeset detectedLatest commit: d875fe2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primitives/75mBkVQnh8yuM8o2CnNRNM92nRT9 |
Contributor
Variables changed--- base/dist/scss/colors/_dark.scss 2021-12-16 06:33:20.488946925 +0000
+++ dist/scss/colors/_dark.scss 2021-12-16 06:33:10.064847608 +0000
@@ -3,2 +3,3 @@
--color-canvas-default-transparent: rgba(13,17,23,0);
+ --color-page-header-bg: #0d1117;
--color-marketing-icon-primary: #79c0ff;
--- base/dist/scss/colors/_dark_colorblind.scss 2021-12-16 06:33:20.504947042 +0000
+++ dist/scss/colors/_dark_colorblind.scss 2021-12-16 06:33:10.084847729 +0000
@@ -3,2 +3,3 @@
--color-canvas-default-transparent: rgba(13,17,23,0);
+ --color-page-header-bg: #0d1117;
--color-marketing-icon-primary: #79c0ff;
--- base/dist/scss/colors/_dark_dimmed.scss 2021-12-16 06:33:20.496946983 +0000
+++ dist/scss/colors/_dark_dimmed.scss 2021-12-16 06:33:10.072847657 +0000
@@ -3,2 +3,3 @@
--color-canvas-default-transparent: rgba(34,39,46,0);
+ --color-page-header-bg: #22272e;
--color-marketing-icon-primary: #6cb6ff;
--- base/dist/scss/colors/_dark_high_contrast.scss 2021-12-16 06:33:20.500947013 +0000
+++ dist/scss/colors/_dark_high_contrast.scss 2021-12-16 06:33:10.076847681 +0000
@@ -3,2 +3,3 @@
--color-canvas-default-transparent: rgba(10,12,16,0);
+ --color-page-header-bg: #0a0c10;
--color-marketing-icon-primary: #91cbff;
--- base/dist/scss/colors/_light.scss 2021-12-16 06:33:20.456946692 +0000
+++ dist/scss/colors/_light.scss 2021-12-16 06:33:10.036847439 +0000
@@ -3,2 +3,3 @@
--color-canvas-default-transparent: rgba(255,255,255,0);
+ --color-page-header-bg: #f6f8fa;
--color-marketing-icon-primary: #218bff;
--- base/dist/scss/colors/_light_colorblind.scss 2021-12-16 06:33:20.476946838 +0000
+++ dist/scss/colors/_light_colorblind.scss 2021-12-16 06:33:10.056847560 +0000
@@ -3,2 +3,3 @@
--color-canvas-default-transparent: rgba(255,255,255,0);
+ --color-page-header-bg: #f6f8fa;
--color-marketing-icon-primary: #218bff;
--- base/dist/scss/colors/_light_high_contrast.scss 2021-12-16 06:33:20.472946809 +0000
+++ dist/scss/colors/_light_high_contrast.scss 2021-12-16 06:33:10.048847512 +0000
@@ -3,2 +3,3 @@
--color-canvas-default-transparent: rgba(255,255,255,0);
+ --color-page-header-bg: #ffffff;
--color-marketing-icon-primary: #1168e3; |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the
pageHeaderBgprimitive. It makes the repo/org header use thecanvas.defaultcolor in "Light High contrast".Reasoning
The repo/org header currently uses
--color-page-header-bg. But using thecolor-variables()mixin we can only set the light/dark mode but not individual themes. Since it looks a bit too dark in "Light High contrast", this PR adds thepageHeaderBgto Primer Primitives so we can add an exception. The--color-page-header-bgshould be mapped tocanvas.defaultexcept for "Light default" and "Light colorblind":canvas.subtle👈canvas.defaultcanvas.subtle👈canvas.defaultcanvas.defaultcanvas.defaultcanvas.defaultAre additional changes needed?
page-header-bgwhen shipping this change. 🚢