Skip to content

Commit f51b006

Browse files
authoredMar 20, 2025··
Use default colors for high contrast contribution graph (#1197)
* update border color * Create spotty-peas-buy.md * github-actions[bot] Regenerated snapshots
1 parent 958a1e6 commit f51b006

14 files changed

+19
-45
lines changed
 

‎.changeset/spotty-peas-buy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/primitives": patch
3+
---
4+
5+
Use default colors for high contrast contribution graph

‎docs/storybook/stories/Size/Border.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const BorderRadius = () => {
133133
field: 'original',
134134
rowHeader: true,
135135
renderCell: row => {
136-
return <p>{row.value}</p>
136+
return <p>{row.original.$value}</p>
137137
},
138138
},
139139
]}
@@ -194,7 +194,7 @@ export const Outline = () => {
194194
field: 'original',
195195
rowHeader: true,
196196
renderCell: row => {
197-
return <p>{row.value}</p>
197+
return <p>{row.original.$value}</p>
198198
},
199199
},
200200
]}

‎docs/storybook/stories/Size/Size.stories.tsx

+12-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ export default {
1515
}
1616

1717
export const Base = () => {
18-
const data = getTokensByName(sizeTokens, 'base').map(token => {
19-
return {
20-
id: token.name,
21-
...token,
22-
}
23-
})
18+
const data = getTokensByName(sizeTokens, 'base')
19+
.map(token => {
20+
return {
21+
id: token.name,
22+
...token,
23+
}
24+
})
25+
.sort((a, b) => {
26+
const numA = parseInt(a.name.split('-').pop() || '0', 10)
27+
const numB = parseInt(b.name.split('-').pop() || '0', 10)
28+
return numA - numB
29+
})
2430

2531
return (
2632
<Table.Container>

‎src/tokens/component/contribution.json5

-37
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
scopes: ['bgColor'],
1313
},
1414
'org.primer.overrides': {
15-
'dark-high-contrast': '{base.color.neutral.3}',
16-
'light-high-contrast': '{base.color.neutral.3}',
1715
'dark-dimmed': '{base.color.neutral.5}',
1816
},
1917
},
@@ -92,13 +90,6 @@
9290
$value: '{base.color.white}',
9391
alpha: 0.05,
9492
},
95-
'dark-high-contrast': {
96-
$value: '{base.color.white}',
97-
alpha: 1,
98-
},
99-
'light-high-contrast': {
100-
alpha: 1,
101-
},
10293
},
10394
},
10495
},
@@ -121,13 +112,6 @@
121112
$value: '{base.color.white}',
122113
alpha: 0.05,
123114
},
124-
'dark-high-contrast': {
125-
$value: '{base.color.white}',
126-
alpha: 1,
127-
},
128-
'light-high-contrast': {
129-
alpha: 1,
130-
},
131115
},
132116
},
133117
},
@@ -150,13 +134,6 @@
150134
$value: '{base.color.white}',
151135
alpha: 0.05,
152136
},
153-
'dark-high-contrast': {
154-
$value: '{base.color.white}',
155-
alpha: 1,
156-
},
157-
'light-high-contrast': {
158-
alpha: 1,
159-
},
160137
},
161138
},
162139
},
@@ -179,13 +156,6 @@
179156
$value: '{base.color.white}',
180157
alpha: 0.05,
181158
},
182-
'dark-high-contrast': {
183-
$value: '{base.color.white}',
184-
alpha: 1,
185-
},
186-
'light-high-contrast': {
187-
alpha: 1,
188-
},
189159
},
190160
},
191161
},
@@ -208,13 +178,6 @@
208178
$value: '{base.color.white}',
209179
alpha: 0.05,
210180
},
211-
'dark-high-contrast': {
212-
$value: '{base.color.white}',
213-
alpha: 1,
214-
},
215-
'light-high-contrast': {
216-
alpha: 1,
217-
},
218181
},
219182
},
220183
},

0 commit comments

Comments
 (0)
Please sign in to comment.