If the night mode is active, even here on discuss and you see the coded text you will notice some text blue are not readable.
add_shortcode( 'note', 'sc_note' );
function sc_note( $atts, $content = null ) {
if ( current_user_can( 'publish_posts' ) )
return '<div class="note">'.$content.'</div>';
return '';
}
Can you tell me how I can fix this?
The issue is caused by this CSS applied by the Dark mode extension:
.hljs-meta .hljs-string, .hljs-regexp, .hljs-string {
color: #032f62;
}
This blue are not good for text in the code and dark mode, you need choose a more light blue.
I have the issue here.
For now I will use this useful message to customize the bad CSS