Add support for ‘alignnone’ to Gutenberg block align controls?


I know how to add or remove support for align left, right, center, wide, and full to a Gutenberg block, but I’m wondering does anyone know how to add support for align-none?

The challenge I’m running into is if someone clicks align-anything, there’s no indication on how to revert to the default null state. I figured out that if you click ‘align center’ and then click it again, it removes data-align:center from the block in the editor, but the control icon still looks like it’s set to align center. It’s not the best UI.

Michelle 4 years 2020-03-25T12:51:01-05:00 0 Answers 117 views 0

Leave an answer