EnlighterJS / Plugin.Gutenberg

:pencil: Official EnlighterJS Plugin for WordPress Gutenberg Editor
Mozilla Public License 2.0
21 stars 1 forks source link

Code block is badly styled in Gutenberg when using Twenty Twenty with dark background set. #23

Closed blueset closed 4 years ago

blueset commented 4 years ago
  1. Code text is white on white background when not focused. image
  2. Code text is not monospaced even when focused. image

This happens when using Twenty Twenty with the theme background set to a dark color.

AndiDittrich commented 4 years ago

I assume that everything works as expected when using another theme/non-darkmode ?

blueset commented 4 years ago

Yes, I just tested with a bright background on Twenty Twenty, and everything works just fine.

blueset commented 4 years ago

As for the font, it is still not using a monospaced one even when the background color is changed.

AndiDittrich commented 4 years ago

then this issue is related to the TwentyTwenty editor styles and not the Gutenberg plugin.

i'm sorry for this but i'm unable to address the issue in a generic way. you can add some additional editor styles which are overriding the theme styles and restoring the default appearance (or a darkmode)