Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema support for styles.filter.duotone #41920

Merged
merged 4 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/reference-guides/theme-json-reference/theme-json-living.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,14 @@ Typography styles.

---

### filter

Filters to attach to the styles

| Property | Type | Props |
| --- | --- |--- |
| duotone | string | |

---

<!-- END TOKEN Autogenerated - DO NOT EDIT -->
12 changes: 12 additions & 0 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,17 @@
}
},
"additionalProperties": false
},
"filter": {
"description": "CSS and SVG filter styles.",
"type": "object",
"properties": {
"duotone": {
"description": "Sets the duotone filter.",
ajlende marked this conversation as resolved.
Show resolved Hide resolved
"type": "string"
}
},
"additionalProperties": false
}
}
},
Expand Down Expand Up @@ -1266,6 +1277,7 @@
"color": {},
"spacing": {},
"typography": {},
"filter": {},
"elements": {
"description": "Styles defined on a per-element basis using the element's selector.",
"$ref": "#/definitions/stylesElementsPropertiesComplete"
Expand Down