Skip to content

Commit 13a7666

Browse files
authored
[Accessibility bug] set colour contrast ratio 4.5.1 (#1277)
This pull request includes a small change to the `src/mdx/code.js` file. The change corrects the color code used for comments in the `Code` component. * [`src/mdx/code.js`](diffhunk://#diff-f3f4e897983cba6337e020c78ef03c356c88f8868bcd19c465eb3c07e8b96625L123-R123): Adjusted the color code for comments from `#747459` to `#747458` in the `Code` component.
1 parent e3a4996 commit 13a7666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mdx/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function Code({className = '', prompt, children}) {
120120
...getTokenProps({token, key}),
121121
style:
122122
getTokenProps({token, key}).className === 'token comment'
123-
? {...getTokenProps({token, key}).style, color: '#747459'}
123+
? {...getTokenProps({token, key}).style, color: '#747458'}
124124
: getTokenProps({token, key}).style,
125125
}}
126126
/>

0 commit comments

Comments
 (0)