- md5
- f8a4519b80d3a67b3a98494a83daf507
- sha1
- 7f909d770db813ec95bf0831bd767a56a3996559
- sha256
- aae6b329902ab895300b16b20c43f1db4a56232004fef19c9bcf5097ff1f91ec
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/navigation-submenu",
"title": "Submenu",
"category": "design",
"parent": [ "core/navigation" ],
"description": "Add a submenu to your navigation.",
"textdomain": "default",
"attributes": {
"label": {
"type": "string",
"role": "content"
},
"type": {
"type": "string"
},
"description": {
"type": "string"
},
"rel": {
"type": "string"
},
"id": {
"type": "number"
},
"opensInNewTab": {
"type": "boolean",
"default": false
},
"url": {
"type": "string",
"role": "content"
},
"title": {
"type": "string"
},
"kind": {
"type": "string"
},
"isTopLevelItem": {
"type": "boolean"
},
"isParentSubmenu": {
"type": "boolean",
"default": true
}
},
"providesContext": {
"core/isInsideSubmenu": "isParentSubmenu"
},
"usesContext": [
"textColor",
"customTextColor",
"backgroundColor",
"customBackgroundColor",
"overlayTextColor",
"customOverlayTextColor",
"overlayBackgroundColor",
"customOverlayBackgroundColor",
"fontSize",
"customFontSize",
"showSubmenuIcon",
"maxNestingLevel",
"openSubmenusOnClick",
"submenuVisibility",
"style"
],
"supports": {
"anchor": true,
"reusable": false,
"html": false,
"typography": {
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
"__experimentalDefaultControls": {
"fontSize": true
}
},
"shadow": {
"__experimentalSkipSerialization": true
},
"interactivity": {
"clientNavigation": true
}
},
"selectors": {
"shadow": ".wp-block-navigation-submenu > .wp-block-navigation__submenu-container"
},
"editorStyle": "wp-block-navigation-submenu-editor",
"style": "wp-block-navigation-submenu"
}
The same content is in 7 releases, WordPress 7.2-beta1 to 7.2-RC2. See them all, or every version of this file.