Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bilalbhojani24
Copy link
Contributor

@bilalbhojani24 bilalbhojani24 commented Aug 25, 2023

Problem:-
I was trying multiple theme's provided by library from HLJS or Prism, but no styles were following WCAG colour contrast. Apart from A11YLight and A11YDark, I couldn't find any which supports highlighting on functionsNames, variables, classNames of Java, CSharp etch

Solution:-
I have planned to create a new theme on the top of one-light theme which fixes WCAG colour contrast issue.

Sandbox link : https://codesandbox.io/p/sandbox/syntax-highlighter-theme-wcag-compatible-forked-f3j9kw?file=%2Fsrc%2Fcomponents%2FCodeblock%2FoneLightWCAG.ts%3A8%2C28

@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.97%. Comparing base (6990564) to head (e9be178).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #534   +/-   ##
=======================================
  Coverage   95.97%   95.97%           
=======================================
  Files          11       11           
  Lines         323      323           
  Branches      123      123           
=======================================
  Hits          310      310           
  Misses         12       12           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@simmerer simmerer merged commit 9268130 into react-syntax-highlighter:master Oct 16, 2024
@markAtAthena
Copy link

Was this unintentionally removed in the release?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants