gutenberg-section-block icon indicating copy to clipboard operation
gutenberg-section-block copied to clipboard

Add background-color class on edit view?

Open pinksharpii opened this issue 6 years ago • 1 comments

I modified the plugin on my end to exclude the text color since the client will only be able to make the background 3 different colors - blue, white, or black. In my css, if the section has "has-black-background-color" as a class, I give it white text. This works on the front end. But there's no way in the edit view to target that section because it's not being given the "has-black-background-color" class during the edit phase. Is it possible to add the background color class while in the admin?

pinksharpii avatar Mar 14 '19 21:03 pinksharpii

@pinksharpii hmm.. I guess it should be possible. Will take a look.

marcusig avatar Mar 15 '19 07:03 marcusig