From 1e7ef9ada58121d5283f6eb98e210df4d19e2985 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 24 Jun 2022 10:00:08 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Doesn=E2=80=99t=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schemas/json/theme.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 75e346e0982f5b..333326b6330f1b 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -909,11 +909,32 @@ } ] }, + "stylesElementsPropertiesComplete": { "type": "object", "properties": { "link": { - "$ref": "#/definitions/stylesPropertiesComplete" + "type": "object", + "anyOf": [ + { + "$ref": "#/definitions/stylesPropertiesComplete" + }, + { + "type": "object", + "properties": { + ":hover": { + "$ref": "#/definitions/stylesProperties" + }, + ":focus": { + "$ref": "#/definitions/stylesProperties" + }, + ":active": { + "$ref": "#/definitions/stylesProperties" + } + }, + "additionalProperties": false + } + ] }, "h1": { "$ref": "#/definitions/stylesPropertiesComplete" From 17720dd92aa526307460314b0510f1d221595f3d Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 24 Jun 2022 11:20:32 +0100 Subject: [PATCH 2/2] Allow pseudo in link --- schemas/json/theme.json | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 333326b6330f1b..f4c9a4082a93c4 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -915,21 +915,24 @@ "properties": { "link": { "type": "object", - "anyOf": [ + "allOf": [ { - "$ref": "#/definitions/stylesPropertiesComplete" + "$ref": "#/definitions/stylesProperties" }, { - "type": "object", "properties": { + "border": {}, + "color": {}, + "spacing": {}, + "typography": {}, ":hover": { - "$ref": "#/definitions/stylesProperties" + "$ref": "#/definitions/stylesPropertiesComplete" }, ":focus": { - "$ref": "#/definitions/stylesProperties" + "$ref": "#/definitions/stylesPropertiesComplete" }, ":active": { - "$ref": "#/definitions/stylesProperties" + "$ref": "#/definitions/stylesPropertiesComplete" } }, "additionalProperties": false