kollapsminoriteten/wp-includes/blocks/button/block.json

152 lines
3.1 KiB
JSON
Raw Normal View History

2020-09-15 14:29:22 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2020-09-15 14:29:22 +02:00
"name": "core/button",
2021-07-23 11:58:50 +02:00
"title": "Button",
2020-09-15 14:29:22 +02:00
"category": "design",
2021-07-23 11:58:50 +02:00
"parent": [ "core/buttons" ],
"description": "Prompt visitors to take action with a button-style link.",
"keywords": [ "link" ],
"textdomain": "default",
2020-09-15 14:29:22 +02:00
"attributes": {
2023-12-07 09:44:11 +01:00
"tagName": {
"type": "string",
"enum": [ "a", "button" ],
"default": "a"
},
"type": {
"type": "string",
"default": "button"
},
2023-04-26 17:39:43 +02:00
"textAlign": {
"type": "string"
},
2020-09-15 14:29:22 +02:00
"url": {
"type": "string",
"source": "attribute",
"selector": "a",
2023-09-26 10:33:34 +02:00
"attribute": "href",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"title": {
"type": "string",
"source": "attribute",
2023-12-07 09:44:11 +01:00
"selector": "a,button",
2023-09-26 10:33:34 +02:00
"attribute": "title",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"text": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
"source": "rich-text",
2023-12-07 09:44:11 +01:00
"selector": "a,button",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"linkTarget": {
"type": "string",
"source": "attribute",
"selector": "a",
2023-09-26 10:33:34 +02:00
"attribute": "target",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"rel": {
"type": "string",
"source": "attribute",
"selector": "a",
2023-09-26 10:33:34 +02:00
"attribute": "rel",
2025-02-28 08:42:11 +01:00
"role": "content"
2020-09-15 14:29:22 +02:00
},
"placeholder": {
"type": "string"
},
"backgroundColor": {
"type": "string"
},
"textColor": {
"type": "string"
},
"gradient": {
"type": "string"
2021-04-27 08:32:47 +02:00
},
"width": {
"type": "number"
2020-09-15 14:29:22 +02:00
}
},
"supports": {
"anchor": true,
2025-02-28 08:42:11 +01:00
"splitting": true,
2023-04-26 17:39:43 +02:00
"align": false,
2020-09-15 14:29:22 +02:00
"alignWide": false,
2021-07-23 11:58:50 +02:00
"color": {
"__experimentalSkipSerialization": true,
2022-06-16 14:03:35 +02:00
"gradients": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
2021-07-23 11:58:50 +02:00
},
"typography": {
2025-04-25 12:30:07 +02:00
"__experimentalSkipSerialization": [
"fontSize",
"lineHeight",
"fontFamily",
"fontWeight",
"fontStyle",
"textTransform",
"textDecoration",
"letterSpacing"
],
2021-07-23 11:58:50 +02:00
"fontSize": true,
2022-12-15 17:47:31 +01:00
"lineHeight": true,
2022-04-02 10:26:41 +02:00
"__experimentalFontFamily": true,
2022-12-15 17:47:31 +01:00
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
2025-02-28 08:42:11 +01:00
"__experimentalWritingMode": true,
2022-04-02 10:26:41 +02:00
"__experimentalDefaultControls": {
"fontSize": true
}
2021-07-23 11:58:50 +02:00
},
2020-09-15 14:29:22 +02:00
"reusable": false,
2024-04-17 11:32:24 +02:00
"shadow": {
"__experimentalSkipSerialization": true
},
2022-04-02 10:26:41 +02:00
"spacing": {
"__experimentalSkipSerialization": true,
"padding": [ "horizontal", "vertical" ],
"__experimentalDefaultControls": {
"padding": true
}
},
2021-07-23 11:58:50 +02:00
"__experimentalBorder": {
2023-09-26 10:33:34 +02:00
"color": true,
2021-07-23 11:58:50 +02:00
"radius": true,
2023-09-26 10:33:34 +02:00
"style": true,
"width": true,
2022-06-16 14:03:35 +02:00
"__experimentalSkipSerialization": true,
"__experimentalDefaultControls": {
2023-09-26 10:33:34 +02:00
"color": true,
"radius": true,
"style": true,
"width": true
2022-06-16 14:03:35 +02:00
}
2021-07-23 11:58:50 +02:00
},
2024-04-17 11:32:24 +02:00
"interactivity": {
"clientNavigation": true
}
2021-04-27 08:32:47 +02:00
},
2021-07-23 11:58:50 +02:00
"styles": [
{ "name": "fill", "label": "Fill", "isDefault": true },
{ "name": "outline", "label": "Outline" }
],
2021-04-27 08:32:47 +02:00
"editorStyle": "wp-block-button-editor",
2025-04-25 12:30:07 +02:00
"style": "wp-block-button",
"selectors": {
"root": ".wp-block-button .wp-block-button__link",
"typography": {
"writingMode": ".wp-block-button"
}
}
2020-09-15 14:29:22 +02:00
}