From c369508761f6119a2d85acae6ce1a30445ec3bbc Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Sun, 30 Jul 2023 20:52:48 +0900 Subject: [PATCH] theme.json shcema: Don't allow css property except at the block level --- .../theme-json-reference/theme-json-living.md | 7 ------- schemas/json/theme.json | 18 +++++++++--------- 2 files changed, 9 insertions(+), 16 deletions(-) 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 627fee6071816..b2873eacaa072 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -299,13 +299,6 @@ Outline styles. | style | string, object | | | width | string, object | | ---- - -### css - -Sets custom CSS to apply styling not covered by other theme.json properties. - - --- ## customTemplates diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 10695f493c40d..15a02224b082d 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -1732,10 +1732,6 @@ } }, "additionalProperties": false - }, - "css": { - "description": "Sets custom CSS to apply styling not covered by other theme.json properties.", - "type": "string" } } }, @@ -1754,8 +1750,7 @@ "typography": {}, "filter": {}, "shadow": {}, - "outline": {}, - "css": {} + "outline": {} }, "additionalProperties": false } @@ -1779,7 +1774,6 @@ "outline": {}, "spacing": {}, "typography": {}, - "css": {}, ":hover": { "$ref": "#/definitions/stylesPropertiesComplete" }, @@ -2189,7 +2183,10 @@ "filter": {}, "shadow": {}, "outline": {}, - "css": {}, + "css": { + "description": "Sets custom CSS to apply styling not covered by other theme.json properties.", + "type": "string" + }, "elements": { "$ref": "#/definitions/stylesElementsPropertiesComplete" }, @@ -2278,7 +2275,10 @@ "filter": {}, "shadow": {}, "outline": {}, - "css": {}, + "css": { + "description": "Sets custom CSS to apply styling not covered by other theme.json properties.", + "type": "string" + }, "elements": { "description": "Styles defined on a per-element basis using the element's selector.", "$ref": "#/definitions/stylesElementsPropertiesComplete"