Skip to content

Commit 004acfe

Browse files
committed
Fix accessibility issue #9165 on color contrast ratio
1 parent 789d767 commit 004acfe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/theme.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import deepmerge from 'deepmerge'
44

55
export const NPM_RED = '#cb0000'
66

7+
export const NPM_LINK_RED = '#cf2b2b' // Asscessibility contrast ratio issue #9165
8+
9+
710
export const npmTheme = deepmerge(theme, {
811
colors: {
912
logoBg: NPM_RED,
@@ -12,7 +15,7 @@ export const npmTheme = deepmerge(theme, {
1215
light: {
1316
colors: {
1417
accent: {
15-
fg: NPM_RED,
18+
fg: NPM_LINK_RED,
1619
emphasis: NPM_RED,
1720
},
1821
},

0 commit comments

Comments
 (0)