最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Add support for 'alignnone' to Gutenberg block align controls?

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论