From 2c85d090111c8b33d9e0231a4b8dd4cdc451a79c 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 2c66b227acf04a..2d3ac287f15397 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -316,13 +316,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 814e97ba80128f..3e7fb8a821c8e4 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -1811,10 +1811,6 @@ } }, "additionalProperties": false - }, - "css": { - "description": "Sets custom CSS to apply styling not covered by other theme.json properties.", - "type": "string" } } }, @@ -1833,8 +1829,7 @@ "typography": {}, "filter": {}, "shadow": {}, - "outline": {}, - "css": {} + "outline": {} }, "additionalProperties": false } @@ -1858,7 +1853,6 @@ "outline": {}, "spacing": {}, "typography": {}, - "css": {}, ":hover": { "$ref": "#/definitions/stylesPropertiesComplete" }, @@ -2268,7 +2262,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" }, @@ -2357,7 +2354,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"