Closed Rastopyr closed 2 years ago
Thanks, from the Rocket Validator reports we can see that the dark mode has more contrast issues than the light mode, and those seem to come from the code blocks:
https://rocketvalidator.com/s/f03eb39f-688a-43ec-a208-8a36701421c4/v/19494694
LGTM but I'm not sure if instead of using colors.white
this should go through a theme like the other colors.
@jaimeiniesta you mean pass it through theme
decorator?
i just saw how white colors used in other color blocks, like here: https://github.com/elixirschool/school_house/blob/c6cd9be6aaa1b4bf2d4843b3d45bbbd7e5ec527f/assets/tailwind.config.js#L164
It used withiout decoration by theme.
I was curious why this regressed, and it looks like that happened in a pr a couple months ago here
It looks like it was even merged without the suggestion here 😬
https://github.com/elixirschool/school_house/pull/188#pullrequestreview-903961593
In dark theme some code in snippets is unreadable. It's usualy relate to some bash scripts.
Example of unreadable snippet:
I guess, with white color of text this snippets read much more comfortable.
So as i can check, it shouldn't affect any other usage of 'code' snippets.