Adding default border radius to a block style?
-
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "my-blocks/link-wrapper", "version": "0.1.0", "title": "Link wrapper", "category": "design", "icon": "admin-links", "description": "Wraps any block into a link block.", "example": {}, "supports": { "html": false, "__experimentalBorder": { "color": false, "radius": true, "style": false, "width": false, "__experimentalDefaultControls": { "color": false, "radius": true, "style": false, "width": false } } }, "textdomain": "my-blocks", "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css", "viewScript": "file:./view.js", "attributes": { "link": { "type": "string", "default": "" }, "style": { "type": "object", "default": { "__experimentalBorder": { "radius": "2.5rem", "__experimentalDefaultControls": { "radius": "2.5rem" } } } } } }
I have a code like this in my block.json. Why is my default style not applicable to the block?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding default border radius to a block style?’ is closed to new replies.