Skip to content

Commit

Permalink
theme.json shcema: Don't allow css property except at the block level
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jul 30, 2023
1 parent 6e4bc84 commit 62e3e13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,6 @@ Outline styles.
| style | string, object | |
| width | string, object | |

---

### css

Sets custom CSS to apply styling not covered by other theme.json properties.


---
## customTemplates

Expand Down
18 changes: 9 additions & 9 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,10 +1674,6 @@
}
},
"additionalProperties": false
},
"css": {
"description": "Sets custom CSS to apply styling not covered by other theme.json properties.",
"type": "string"
}
}
},
Expand All @@ -1696,8 +1692,7 @@
"typography": {},
"filter": {},
"shadow": {},
"outline": {},
"css": {}
"outline": {}
},
"additionalProperties": false
}
Expand All @@ -1721,7 +1716,6 @@
"outline": {},
"spacing": {},
"typography": {},
"css": {},
":hover": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
Expand Down Expand Up @@ -2131,7 +2125,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"
},
Expand Down Expand Up @@ -2233,7 +2230,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"
Expand Down

0 comments on commit 62e3e13

Please sign in to comment.