Skip to content

Commit

Permalink
Fix missing ref support for textAlign and textColumns in theme.json s…
Browse files Browse the repository at this point in the history
…chema (#63625)

* Add missing ref support for textAlign and textColumns

* Update the theme.json reference docs

Co-authored-by: ajlende <ajlende@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jeryj <jeryj@git.wordpress.org>
  • Loading branch information
4 people authored Jul 23, 2024
1 parent 5c1d6bb commit 401b604
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ Typography styles.
| fontWeight | string, object | |
| letterSpacing | string, object | |
| lineHeight | string, object | |
| textAlign | string | |
| textColumns | string | |
| textAlign | string, object | |
| textColumns | string, object | |
| textDecoration | string, object | |
| writingMode | string, object | |
| textTransform | string, object | |
Expand Down
18 changes: 16 additions & 2 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1678,11 +1678,25 @@
},
"textAlign": {
"description": "Sets the `text-align` CSS property.",
"type": "string"
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/refComplete"
}
]
},
"textColumns": {
"description": "Sets the `column-count` CSS property.",
"type": "string"
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/refComplete"
}
]
},
"textDecoration": {
"description": "Sets the `text-decoration` CSS property.",
Expand Down

0 comments on commit 401b604

Please sign in to comment.