Skip to content

Commit

Permalink
[Accessibility bug] set colour contrast ratio 4.5.1 (#1277)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jpg619 committed Sep 13, 2024
1 parent e3a4996 commit 13a7666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mdx/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function Code({className = '', prompt, children}) {
...getTokenProps({token, key}),
style:
getTokenProps({token, key}).className === 'token comment'
? {...getTokenProps({token, key}).style, color: '#747459'}
? {...getTokenProps({token, key}).style, color: '#747458'}
: getTokenProps({token, key}).style,
}}
/>
Expand Down

0 comments on commit 13a7666

Please sign in to comment.