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 Mar 2, 2024
1 parent 63acff0 commit 2c85d09
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 @@ -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

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

0 comments on commit 2c85d09

Please sign in to comment.