JavaScript for WordPress › Forums › Gutenberg Development › How to get a color class name › Reply To: How to get a color class name
May 25, 2018 at 3:23 pm
#47935
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