Skip to content

Commit

Permalink
v8 bug fixes + enhancements for rollout (#843)
Browse files Browse the repository at this point in the history
* fix shadow

* fix avatar box-shadow value

* fix white, add black text

* add white/black tokens

* Create silver-jars-rescue.md

* github-actions[bot] Regenerated snapshots

* fix high contrast primary button

* github-actions[bot] Regenerated snapshots

---------

Co-authored-by: langermank <[email protected]>
  • Loading branch information
langermank and langermank authored Mar 21, 2024
1 parent 16d44b3 commit d43b576
Show file tree
Hide file tree
Showing 41 changed files with 107 additions and 44 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-jars-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/primitives": patch
---

v8 bug fixes + enhancements for rollout
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ export default {
},
}

const fgColors = [
'fgColor-default',
'fgColor-muted',
'fgColor-onEmphasis',
'fgColor-disabled',
'fgColor-link',
'fgColor-white',
]
const fgColors = ['fgColor-default', 'fgColor-muted', 'fgColor-onEmphasis', 'fgColor-disabled', 'fgColor-link']

export const Foreground = () => {
return (
Expand Down
12 changes: 12 additions & 0 deletions src/tokens/functional/color/dark/overrides/dark.dimmed.json5
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
},
},
},
fgColor: {
rest: {
$value: '#ffffff',
$type: 'color',
},
},
iconColor: {
rest: {
$value: '#ffffff',
$type: 'color',
},
},
},
invisible: {
iconColor: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,6 @@
$type: 'color',
},
},
bgColor: {
disabled: {
$value: '{base.color.green.5}',
$type: 'color',
mix: {
color: '{base.color.green.0}',
weight: 0.6,
},
},
},
borderColor: {
rest: {
$value: '{base.color.green.2}',
Expand Down
7 changes: 4 additions & 3 deletions src/tokens/functional/color/dark/patterns-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
alpha: 0.1,
},
borderColor: {
$value: '{borderColor.muted}',
$value: '{base.color.white}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -24,6 +24,7 @@
scopes: ['borderColor'],
},
},
alpha: 0.15,
},
},
avatarStack: {
Expand Down Expand Up @@ -932,7 +933,7 @@
scopes: ['fgColor'],
},
},
alpha: 0.8,
alpha: 0.4,
},
},
iconColor: {
Expand Down Expand Up @@ -1006,7 +1007,7 @@
},
},
mix: {
color: '{base.color.green.0}',
color: '{base.color.green.8}',
weight: 0.6,
},
},
Expand Down
38 changes: 37 additions & 1 deletion src/tokens/functional/color/dark/primitives-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
},
white: {
$value: '#ffffff',
$value: '{base.color.white}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -65,6 +65,18 @@
},
},
},
black: {
$value: '{base.color.black}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'semantic',
scopes: ['fgColor'],
},
},
},
disabled: {
$value: '{base.color.gray.4}',
$type: 'color',
Expand Down Expand Up @@ -339,6 +351,30 @@
},
},
},
white: {
$value: '{base.color.white}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'semantic',
scopes: ['bgColor'],
},
},
},
black: {
$value: '{base.color.black}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'semantic',
scopes: ['bgColor'],
},
},
},
disabled: {
$value: '{base.color.gray.7}',
$type: 'color',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@
},
},
// patterns
avatar: {
borderColor: {
$value: '{base.color.black}',
$type: 'color',
alpha: 0.9,
},
},
topicTag: {
borderColor: {
$value: '{borderColor.accent.emphasis}',
Expand Down Expand Up @@ -427,7 +434,7 @@
borderColor: {
$value: '{borderColor.muted}',
$type: 'color',
alpha: null
alpha: null,
},
},
}
3 changes: 2 additions & 1 deletion src/tokens/functional/color/light/patterns-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
},
borderColor: {
$value: '{borderColor.default}',
$value: '{base.color.black}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand All @@ -23,6 +23,7 @@
scopes: ['borderColor'],
},
},
alpha: 0.15,
},
},
avatarStack: {
Expand Down
38 changes: 37 additions & 1 deletion src/tokens/functional/color/light/primitives-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,19 @@
},
},
white: {
$value: '#ffffff',
$value: '{base.color.white}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'semantic',
scopes: ['fgColor'],
},
},
},
black: {
$value: '{base.color.black}',
$type: 'color',
$extensions: {
'org.primer.figma': {
Expand Down Expand Up @@ -335,6 +347,30 @@
},
},
},
white: {
$value: '{base.color.white}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'semantic',
scopes: ['bgColor'],
},
},
},
black: {
$value: '{base.color.black}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'semantic',
scopes: ['bgColor'],
},
},
},
disabled: {
$value: '{base.color.gray.1}',
$type: 'color',
Expand Down
9 changes: 0 additions & 9 deletions src/tokens/functional/shadow/dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,6 @@
spread: '0px',
inset: false,
},
{
color: '{base.color.black}',
alpha: 0.4,
offsetX: '0px',
offsetY: '1px',
blur: '3px',
spread: '0px',
inset: false,
},
],
$type: 'shadow',
$extensions: {
Expand Down
11 changes: 1 addition & 10 deletions src/tokens/functional/shadow/light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -167,22 +167,13 @@
$value: [
{
color: '{base.color.black}',
alpha: 0.06,
alpha: 0.04,
offsetX: '0px',
offsetY: '1px',
blur: '0px',
spread: '0px',
inset: false,
},
{
color: '{base.color.black}',
alpha: 0.08,
offsetX: '0px',
offsetY: '1px',
blur: '3px',
spread: '0px',
inset: false,
},
],
$type: 'shadow',
$extensions: {
Expand Down

0 comments on commit d43b576

Please sign in to comment.