From e3aff9d4b1edeea55123341313161ef7d06741a1 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Tue, 16 Jul 2024 10:31:19 -0500 Subject: [PATCH 1/2] Add missing ref support for textAlign and textColumns --- schemas/json/theme.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 5b9e37ef7378a6..839bd3d5849251 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -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.", From e6cd4e43e6c174f385074a93e54aadb73fe1b69f Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Tue, 16 Jul 2024 10:34:32 -0500 Subject: [PATCH 2/2] Update the theme.json reference docs --- .../theme-json-reference/theme-json-living.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/theme-json-reference/theme-json-living.md b/docs/reference-guides/theme-json-reference/theme-json-living.md index 59a820a16697c9..2cc73e24396990 100644 --- a/docs/reference-guides/theme-json-reference/theme-json-living.md +++ b/docs/reference-guides/theme-json-reference/theme-json-living.md @@ -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 | |