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

fix applying typography tokens variable values #3226

Merged
merged 9 commits into from
Dec 23, 2024

Conversation

akshay-gupta7
Copy link
Contributor

@akshay-gupta7 akshay-gupta7 commented Dec 11, 2024

Why does this PR exist?

Closes #3215

What does this pull request do?

Addresses the concern where a typography token is applied with exported variables and the applied variable is not displayed in Figma.

Testing this change

  • Create a typography token
  • Export as variable
  • Apply the token on a text node
  • The corresponding variable of the applied token should be displayed in Figma

Additional Notes (if any)

@akshay-gupta7 akshay-gupta7 self-assigned this Dec 11, 2024
Copy link

changeset-bot bot commented Dec 11, 2024

🦋 Changeset detected

Latest commit: f868390

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tokens-studio/figma-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Dec 11, 2024

⤵️ 📦 ✨ The artifact was successfully created! Want to test it? Download it here 👀 🎁

@akshay-gupta7 akshay-gupta7 marked this pull request as ready for review December 20, 2024 08:52
Copy link
Contributor

github-actions bot commented Dec 20, 2024

Commit SHA:097bc4ddfb2e6ca82b48d4bc00d1a71cb4645055

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: fix-typography-tokens-variables-application 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 67.08 (0) 58.05 (0.2) 63.87 (0.01) 67.45 (0)
🟢 packages/tokens-studio-for-figma/src/plugin/applyTypographyTokenOnNode.ts 76.92 (-1.34) 78.26 (25.02) 100 (0) 75 (-1.19)

Copy link
Contributor

github-actions bot commented Dec 20, 2024

Commit SHA:097bc4ddfb2e6ca82b48d4bc00d1a71cb4645055
Current PR reduces the test coverage percentage by 1 for some tests

@akshay-gupta7 akshay-gupta7 requested a review from six7 December 20, 2024 09:07
Copy link
Collaborator

@six7 six7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changeset please 🙏

@akshay-gupta7 akshay-gupta7 requested a review from six7 December 23, 2024 10:31
@akshay-gupta7 akshay-gupta7 merged commit a60aa4d into main Dec 23, 2024
9 of 10 checks passed
@akshay-gupta7 akshay-gupta7 deleted the fix-typography-tokens-variables-application branch December 23, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Applying Typography tokens doesn't apply separate Variable values, but raw values.
2 participants