A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.
wait so initially when the guide was in light mode, the code was still in dark mode?
Yes, code blocks had been always rendered in prism's vs-dark
theme, now they are using vs-light
theme in light mode.
Enable light mode code in light mode
I see that CodeBlock.stories.tsx
isn't updated which is needed in the UI tests. Will update.
Enable light mode code in light mode
Pull request for issue #3253
If any of the below don't apply to this Pull Request, mark the checkbox as done.
Summary:
Make class component CodeBlock
render with prism's light theme in light mode.
I couldn't use context hook in the class so I passed the isDarkMode
as a prop from parent components.
I really need help testing this change as I'm not sure where to test these components below on website and possibly missed something.
There are 5 parent components use CodeBlock
and affected by this PR:
ProblemSolutions
QuizGeneratorModal
ProblemSubmissionPopup
SafeMarkdownRenderer
HTMLComponents
Enable light mode code in light mode
Enable light mode code in light mode
Enable light mode code in light mode
I noticed that Belarusian coders have 2 different flags in front of their ID from https://clist.by/coders/?country=BY.
A Google search shows that this might have historical reasons. I just wanted to confirm if this was a bug.