equal
deleted
inserted
replaced
1 { |
1 { |
|
2 "apiVersion": 2, |
2 "name": "core/button", |
3 "name": "core/button", |
|
4 "title": "Button", |
3 "category": "design", |
5 "category": "design", |
4 "parent": [ |
6 "parent": [ "core/buttons" ], |
5 "core/buttons" |
7 "description": "Prompt visitors to take action with a button-style link.", |
6 ], |
8 "keywords": [ "link" ], |
|
9 "textdomain": "default", |
7 "attributes": { |
10 "attributes": { |
8 "url": { |
11 "url": { |
9 "type": "string", |
12 "type": "string", |
10 "source": "attribute", |
13 "source": "attribute", |
11 "selector": "a", |
14 "selector": "a", |
35 "attribute": "rel" |
38 "attribute": "rel" |
36 }, |
39 }, |
37 "placeholder": { |
40 "placeholder": { |
38 "type": "string" |
41 "type": "string" |
39 }, |
42 }, |
40 "borderRadius": { |
|
41 "type": "number" |
|
42 }, |
|
43 "style": { |
|
44 "type": "object" |
|
45 }, |
|
46 "backgroundColor": { |
43 "backgroundColor": { |
47 "type": "string" |
44 "type": "string" |
48 }, |
45 }, |
49 "textColor": { |
46 "textColor": { |
50 "type": "string" |
47 "type": "string" |
51 }, |
48 }, |
52 "gradient": { |
49 "gradient": { |
53 "type": "string" |
50 "type": "string" |
|
51 }, |
|
52 "width": { |
|
53 "type": "number" |
54 } |
54 } |
55 }, |
55 }, |
56 "supports": { |
56 "supports": { |
57 "anchor": true, |
57 "anchor": true, |
58 "align": true, |
58 "align": true, |
59 "alignWide": false, |
59 "alignWide": false, |
|
60 "color": { |
|
61 "__experimentalSkipSerialization": true, |
|
62 "gradients": true |
|
63 }, |
|
64 "typography": { |
|
65 "fontSize": true, |
|
66 "__experimentalFontFamily": true |
|
67 }, |
60 "reusable": false, |
68 "reusable": false, |
61 "lightBlockWrapper": true |
69 "__experimentalBorder": { |
62 } |
70 "radius": true, |
|
71 "__experimentalSkipSerialization": true |
|
72 }, |
|
73 "__experimentalSelector": ".wp-block-button__link" |
|
74 }, |
|
75 "styles": [ |
|
76 { "name": "fill", "label": "Fill", "isDefault": true }, |
|
77 { "name": "outline", "label": "Outline" } |
|
78 ], |
|
79 "editorStyle": "wp-block-button-editor", |
|
80 "style": "wp-block-button" |
63 } |
81 } |