Highlighted words in block editor does not change color
-
This is a difficult question to define, but here goes:
I’ve created a custom color palette in my child theme’s functions.php (base theme: Rife-free) and have set up the corresponding CSS styles. Everything works as expected on the frontend as well as in the WordPress blocks backend editor, except when a few words are highlighted in a paragraph. The colour of the words doesn’t change in the editor but the correct colour selection displays on the frontend.
Below is an example of the HTML when you inspect the highlighted words while in the blocks editor:
<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-custom-color">example text</mark>
Thank you in advance for any feedback or help steering me in the right direction.
- The topic ‘Highlighted words in block editor does not change color’ is closed to new replies.