Skip to content

Tokens reset once the tab is re-selected #208

@JamesIves

Description

@JamesIves

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions