Skip to content

Commit 76920fc

Browse files
committed
Update o2-new skin to solve contrasst issues
1 parent 2b861a4 commit 76920fc

2 files changed

Lines changed: 33 additions & 20 deletions

File tree

tokens/linter/contrastPairs.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ export const contrastPairs = [
9090
bg: ["buttonPrimaryBackgroundMedia"],
9191
minRatio: 4.5,
9292
},
93+
{
94+
fg: ["textButtonPrimaryNegative"],
95+
bg: ["buttonPrimaryBackgroundNegative"],
96+
minRatio: 4.5,
97+
},
9398
{
9499
fg: ["textButtonPrimaryInversePressed"],
95100
bg: [
@@ -114,6 +119,14 @@ export const contrastPairs = [
114119
],
115120
minRatio: 4.5,
116121
},
122+
{
123+
fg: ["textButtonPrimaryNegativePressed"],
124+
bg: [
125+
"buttonPrimaryBackgroundNegativeHover",
126+
"buttonPrimaryBackgroundNegativePressed",
127+
],
128+
minRatio: 4.5,
129+
},
117130
{
118131
fg: ["textButtonSecondary"],
119132
bg: [

tokens/o2-new.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -328,49 +328,49 @@
328328
"description": "beyondBlue70"
329329
},
330330
"buttonPrimaryBackgroundInverseHover": {
331-
"value": "{palette.beyondBlue30}",
331+
"value": "{palette.beyondBlue10}",
332332
"type": "color",
333-
"description": "beyondBlue30"
333+
"description": "beyondBlue10"
334334
},
335335
"buttonPrimaryBackgroundNegativeHover": {
336-
"value": "{palette.beyondBlue30}",
336+
"value": "{palette.beyondBlue10}",
337337
"type": "color",
338-
"description": "beyondBlue30"
338+
"description": "beyondBlue10"
339339
},
340340
"buttonPrimaryBackgroundBrandHover": {
341-
"value": "{palette.beyondBlue30}",
341+
"value": "{palette.beyondBlue10}",
342342
"type": "color",
343-
"description": "beyondBlue30"
343+
"description": "beyondBlue10"
344344
},
345345
"buttonPrimaryBackgroundMediaHover": {
346-
"value": "{palette.beyondBlue30}",
346+
"value": "{palette.beyondBlue10}",
347347
"type": "color",
348-
"description": "beyondBlue30"
348+
"description": "beyondBlue10"
349349
},
350350
"buttonPrimaryBackgroundPressed": {
351351
"value": "{palette.beyondBlue70}",
352352
"type": "color",
353353
"description": "beyondBlue70"
354354
},
355355
"buttonPrimaryBackgroundInversePressed": {
356-
"value": "{palette.beyondBlue30}",
356+
"value": "{palette.beyondBlue15}",
357357
"type": "color",
358-
"description": "beyondBlue30"
358+
"description": "beyondBlue15"
359359
},
360360
"buttonPrimaryBackgroundNegativePressed": {
361-
"value": "{palette.beyondBlue30}",
361+
"value": "{palette.beyondBlue15}",
362362
"type": "color",
363-
"description": "beyondBlue30"
363+
"description": "beyondBlue15"
364364
},
365365
"buttonPrimaryBackgroundBrandPressed": {
366-
"value": "{palette.beyondBlue30}",
366+
"value": "{palette.beyondBlue15}",
367367
"type": "color",
368-
"description": "beyondBlue30"
368+
"description": "beyondBlue15"
369369
},
370370
"buttonPrimaryBackgroundMediaPressed": {
371-
"value": "{palette.beyondBlue30}",
371+
"value": "{palette.beyondBlue15}",
372372
"type": "color",
373-
"description": "beyondBlue30"
373+
"description": "beyondBlue15"
374374
},
375375
"buttonSecondaryBackgroundBrand": {
376376
"value": "rgba({palette.white}, 0)",
@@ -1756,9 +1756,9 @@
17561756
"description": "beyondBlue55"
17571757
},
17581758
"buttonPrimaryBackgroundMediaHover": {
1759-
"value": "{palette.beyondBlue30}",
1759+
"value": "{palette.beyondBlue10}",
17601760
"type": "color",
1761-
"description": "beyondBlue30"
1761+
"description": "beyondBlue10"
17621762
},
17631763
"buttonPrimaryBackgroundPressed": {
17641764
"value": "{palette.beyondBlue55}",
@@ -1781,9 +1781,9 @@
17811781
"description": "beyondBlue55"
17821782
},
17831783
"buttonPrimaryBackgroundMediaPressed": {
1784-
"value": "{palette.beyondBlue30}",
1784+
"value": "{palette.beyondBlue15}",
17851785
"type": "color",
1786-
"description": "beyondBlue30"
1786+
"description": "beyondBlue15"
17871787
},
17881788
"buttonSecondaryBackgroundBrand": {
17891789
"value": "rgba({palette.white}, 0)",

0 commit comments

Comments
 (0)