Skip to content

Commit

Permalink
Update Theme JSON $schema to account for pseudo selector support (#…
Browse files Browse the repository at this point in the history
…41936)

* Doesn’t work

* Allow pseudo in link
  • Loading branch information
getdave authored Jun 24, 2022
1 parent 3e2e60f commit 2121638
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -909,11 +909,35 @@
}
]
},

"stylesElementsPropertiesComplete": {
"type": "object",
"properties": {
"link": {
"$ref": "#/definitions/stylesPropertiesComplete"
"type": "object",
"allOf": [
{
"$ref": "#/definitions/stylesProperties"
},
{
"properties": {
"border": {},
"color": {},
"spacing": {},
"typography": {},
":hover": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":focus": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":active": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
},
"additionalProperties": false
}
]
},
"h1": {
"$ref": "#/definitions/stylesPropertiesComplete"
Expand Down

0 comments on commit 2121638

Please sign in to comment.