Skip to content

Commit

Permalink
Fix paragraph indent typography token (#3242)
Browse files Browse the repository at this point in the history
* v1.22.22

* fix application of paragraph indent from typography token

* undo version commit

* add changeset
  • Loading branch information
akshay-gupta7 authored Jan 9, 2025
1 parent 62dced0 commit b08d2fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-geese-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tokens-studio/figma-plugin": patch
---

Fix application of paragraph Indent property via typography tokens
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function buildResolvedValueObject(resolvedToken: any, data: any) {
),
letterSpacing: formatValue(data.letterSpacing || resolvedToken?.rawValue?.letterSpacing),
paragraphSpacing: formatValue(data.paragraphSpacing || resolvedToken?.rawValue?.paragraphSpacing),
paragraphIndent: formatValue(data.paragraphIndent || resolvedToken?.rawValue?.paragraphIndent),
textCase: formatValue(data.textCase || resolvedToken?.rawValue?.textCase),
textDecoration: formatValue(data.textDecoration || resolvedToken?.rawValue?.textDecoration),
};
Expand All @@ -54,6 +55,9 @@ function buildValueObject(values: any, resolvedToken: any) {
paragraphSpacing: isPrimitiveValue(values.paragraphSpacing)
? String(values.paragraphSpacing)
: tokenValue.paragraphSpacing,
paragraphIndent: isPrimitiveValue(values.paragraphIndent)
? String(values.paragraphIndent)
: tokenValue.paragraphIndent,
textCase: isPrimitiveValue(values.textCase) ? String(values.textCase) : tokenValue.textCase,
textDecoration: isPrimitiveValue(values.textDecoration) ? String(values.textDecoration) : tokenValue.textDecoration,
};
Expand Down

0 comments on commit b08d2fd

Please sign in to comment.