wp/wp-includes/blocks/button/block.json
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    24 		"url": {
    24 		"url": {
    25 			"type": "string",
    25 			"type": "string",
    26 			"source": "attribute",
    26 			"source": "attribute",
    27 			"selector": "a",
    27 			"selector": "a",
    28 			"attribute": "href",
    28 			"attribute": "href",
    29 			"__experimentalRole": "content"
    29 			"role": "content"
    30 		},
    30 		},
    31 		"title": {
    31 		"title": {
    32 			"type": "string",
    32 			"type": "string",
    33 			"source": "attribute",
    33 			"source": "attribute",
    34 			"selector": "a,button",
    34 			"selector": "a,button",
    35 			"attribute": "title",
    35 			"attribute": "title",
    36 			"__experimentalRole": "content"
    36 			"role": "content"
    37 		},
    37 		},
    38 		"text": {
    38 		"text": {
    39 			"type": "rich-text",
    39 			"type": "rich-text",
    40 			"source": "rich-text",
    40 			"source": "rich-text",
    41 			"selector": "a,button",
    41 			"selector": "a,button",
    42 			"__experimentalRole": "content"
    42 			"role": "content"
    43 		},
    43 		},
    44 		"linkTarget": {
    44 		"linkTarget": {
    45 			"type": "string",
    45 			"type": "string",
    46 			"source": "attribute",
    46 			"source": "attribute",
    47 			"selector": "a",
    47 			"selector": "a",
    48 			"attribute": "target",
    48 			"attribute": "target",
    49 			"__experimentalRole": "content"
    49 			"role": "content"
    50 		},
    50 		},
    51 		"rel": {
    51 		"rel": {
    52 			"type": "string",
    52 			"type": "string",
    53 			"source": "attribute",
    53 			"source": "attribute",
    54 			"selector": "a",
    54 			"selector": "a",
    55 			"attribute": "rel",
    55 			"attribute": "rel",
    56 			"__experimentalRole": "content"
    56 			"role": "content"
    57 		},
    57 		},
    58 		"placeholder": {
    58 		"placeholder": {
    59 			"type": "string"
    59 			"type": "string"
    60 		},
    60 		},
    61 		"backgroundColor": {
    61 		"backgroundColor": {
    83 				"background": true,
    83 				"background": true,
    84 				"text": true
    84 				"text": true
    85 			}
    85 			}
    86 		},
    86 		},
    87 		"typography": {
    87 		"typography": {
       
    88 			"__experimentalSkipSerialization": [
       
    89 				"fontSize",
       
    90 				"lineHeight",
       
    91 				"fontFamily",
       
    92 				"fontWeight",
       
    93 				"fontStyle",
       
    94 				"textTransform",
       
    95 				"textDecoration",
       
    96 				"letterSpacing"
       
    97 			],
    88 			"fontSize": true,
    98 			"fontSize": true,
    89 			"lineHeight": true,
    99 			"lineHeight": true,
    90 			"__experimentalFontFamily": true,
   100 			"__experimentalFontFamily": true,
    91 			"__experimentalFontWeight": true,
   101 			"__experimentalFontWeight": true,
    92 			"__experimentalFontStyle": true,
   102 			"__experimentalFontStyle": true,
    93 			"__experimentalTextTransform": true,
   103 			"__experimentalTextTransform": true,
    94 			"__experimentalTextDecoration": true,
   104 			"__experimentalTextDecoration": true,
    95 			"__experimentalLetterSpacing": true,
   105 			"__experimentalLetterSpacing": true,
       
   106 			"__experimentalWritingMode": true,
    96 			"__experimentalDefaultControls": {
   107 			"__experimentalDefaultControls": {
    97 				"fontSize": true
   108 				"fontSize": true
    98 			}
   109 			}
    99 		},
   110 		},
   100 		"reusable": false,
   111 		"reusable": false,
   119 				"radius": true,
   130 				"radius": true,
   120 				"style": true,
   131 				"style": true,
   121 				"width": true
   132 				"width": true
   122 			}
   133 			}
   123 		},
   134 		},
   124 		"__experimentalSelector": ".wp-block-button .wp-block-button__link",
       
   125 		"interactivity": {
   135 		"interactivity": {
   126 			"clientNavigation": true
   136 			"clientNavigation": true
   127 		}
   137 		}
   128 	},
   138 	},
   129 	"styles": [
   139 	"styles": [
   130 		{ "name": "fill", "label": "Fill", "isDefault": true },
   140 		{ "name": "fill", "label": "Fill", "isDefault": true },
   131 		{ "name": "outline", "label": "Outline" }
   141 		{ "name": "outline", "label": "Outline" }
   132 	],
   142 	],
   133 	"editorStyle": "wp-block-button-editor",
   143 	"editorStyle": "wp-block-button-editor",
   134 	"style": "wp-block-button"
   144 	"style": "wp-block-button",
       
   145 	"selectors": {
       
   146 		"root": ".wp-block-button .wp-block-button__link",
       
   147 		"typography": {
       
   148 			"writingMode": ".wp-block-button"
       
   149 		}
       
   150 	}
   135 }
   151 }