浏览代码

Merge pull request #429 from Automattic/button-add-fancy-styles

Button 2: Add name for default image block styles, so it doesn't say 'null'
Laurel 6 年之前
父节点
当前提交
60df865005
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      button-2/assets/js/block-variations.js

+ 1 - 0
button-2/assets/js/block-variations.js

@@ -9,6 +9,7 @@
 
 wp.blocks.registerBlockStyle( 'core/image', {
 	isDefault: true,
+	name: 'default', // Class will be turned into '.is-style-default', though no styles needed.
 	label: 'Default'
 } );