Skip to content

Commit d1a5c0d

Browse files
add support for building text with text case (text-transform) (only for css platforms)
1 parent a7bc8e3 commit d1a5c0d

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

externals/design-sdk

externals/reflect-core

packages/builder-web-core/widgets-native/html-text-element/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class Text extends TextChildWidget {
7373
"text-align": this.textAlign,
7474
"text-decoration": css.textDecoration(this.textStyle.decoration),
7575
"text-shadow": css.textShadow(this.textStyle.textShadow),
76+
"text-transform": this.textStyle.textTransform,
7677
// ------------------------------------------
7778
...textWH({ width: this.width, height: this.height }),
7879
};

packages/designto-token/token-text/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export function fromText(node: nodes.ReflectTextNode): RenderedText {
4747
color: node.primaryColor,
4848
lineHeight: node.lineHeight,
4949
letterSpacing: node.letterSpacing,
50+
textTransform: node.textCase,
5051
textShadow: node.shadows as TextShadowManifest[],
5152
}),
5253
...wh,

0 commit comments

Comments
 (0)