JavaScript for WordPress Forums Gutenberg Development How to get a color class name Reply To: How to get a color class name

#47935
ericvalois
Participant

Thanks for the fast answer, but it doesn’t work.

My block is already set like you explained. My question is how to get the color name? Because the color attribute returns the color value, not the color’s name.
https://github.com/time-to-first-byte/ttfb-blocks/blob/dev/blocks/section/index.js#L120