From 77bb6c8f541d9c5097cf4865e478e04f69b20f7b Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Tue, 21 Mar 2023 05:23:43 +0900 Subject: [PATCH] Theme JSON schema: Add defaultPresets property to shadow (#49204) --- .../theme-json-reference/theme-json-living.md | 1 + schemas/json/theme.json | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/theme-json-reference/theme-json-living.md b/docs/reference-guides/theme-json-reference/theme-json-living.md index c7bb892103e00..2342fc0656221 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -60,6 +60,7 @@ Settings related to shadows. | Property | Type | Default | Props | | --- | --- | --- |--- | +| defaultPresets | boolean | true | | | presets | array | | name, shadow, slug | --- diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 2914c548a2905..7d76be637ab83 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -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", @@ -97,7 +102,8 @@ "additionalProperties": false } } - } + }, + "additionalProperties": false } } },