-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Dropdown block for use in Navigation
- Loading branch information
1 parent
23e3fc6
commit 91f4220
Showing
17 changed files
with
1,104 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"apiVersion": 2, | ||
"name": "core/dropdown", | ||
"title": "Dropdown", | ||
"category": "design", | ||
"parent": [ | ||
"core/navigation" | ||
], | ||
"description": "Add a submenu dropdown to your navigation.", | ||
"textdomain": "default", | ||
"attributes": { | ||
"label": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"rel": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "number" | ||
}, | ||
"opensInNewTab": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"url": { | ||
"type": "string" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"type": "string" | ||
}, | ||
"isTopLevelItem": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"usesContext": [ | ||
"textColor", | ||
"customTextColor", | ||
"backgroundColor", | ||
"customBackgroundColor", | ||
"overlayTextColor", | ||
"customOverlayTextColor", | ||
"overlayBackgroundColor", | ||
"customOverlayBackgroundColor", | ||
"fontSize", | ||
"customFontSize", | ||
"showSubmenuIcon", | ||
"style" | ||
], | ||
"supports": { | ||
"reusable": false, | ||
"html": false | ||
}, | ||
"editorStyle": "wp-block-dropdown-editor", | ||
"style": "wp-block-dropdown" | ||
} |
Oops, something went wrong.