Skip to content

Commit

Permalink
Theme JSON schema: Add defaultPresets property to shadow (#49204)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Mar 20, 2023
1 parent f1f2e31 commit 77bb6c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Settings related to shadows.

| Property | Type | Default | Props |
| --- | --- | --- |--- |
| defaultPresets | boolean | true | |
| presets | array | | name, shadow, slug |

---
Expand Down
8 changes: 7 additions & 1 deletion schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
"description": "Settings related to shadows.",
"type": "object",
"properties": {
"defaultPresets": {
"description": "Allow users to choose shadows from the default shadow presets.",
"type": "boolean",
"default": true
},
"presets": {
"description": "Shadow presets for the shadow picker.\nGenerates a single custom property (`--wp--preset--shadow--{slug}`) per preset value.",
"type": "array",
Expand All @@ -97,7 +102,8 @@
"additionalProperties": false
}
}
}
},
"additionalProperties": false
}
}
},
Expand Down

0 comments on commit 77bb6c8

Please sign in to comment.