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

Tokens reset once the tab is re-selected #208

Open
JamesIves opened this issue Feb 22, 2024 · 0 comments
Open

Tokens reset once the tab is re-selected #208

JamesIves opened this issue Feb 22, 2024 · 0 comments

Comments

@JamesIves
Copy link

I have setup the following that appears within a tab named Scale.

  /**
  * @tokens Scale
  * @presenter Spacing
  */
  --density-modifier: 1;
  --font-default-scale: 1;
  --font-accent-scale: 1;

If I modify these values, the changes are correctly reflected in Storybook. If I select a different tab, make changes, and then re-select the Scale tab the values are reset back to their default settings.

Is there a way to preserve the values across the different tabs until the Design Tokens tab is closed? I was under the impression that this is what options: {preserveCSSVars: true} does but it doesn't seem to do the trick.

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

No branches or pull requests

1 participant