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

Alias from two different files is not displayed #10

Closed
bendobos opened this issue Mar 30, 2020 · 3 comments
Closed

Alias from two different files is not displayed #10

bendobos opened this issue Mar 30, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@bendobos
Copy link
Contributor

bendobos commented Mar 30, 2020

Hi there! I noticed the following behavior:

Have two different css files, for example:

/* file1.css */

/**
 * @tokens Colors 1
 * @presenter Color
 */
 --gray-300: #DDDDDD;
 --gray-400: #AAAAAA;
 --gray-500: #777777;
/**
 * @tokens Colors 2
 * @presenter Color
 */

/* file2.css */
--gray-default: var(--gray-300);

--another-var: #BADA55;

In Storybook, --gray-default is not shown at all, while --another-var is shown. --gray-default is also not displayed as an alias.
When I move everything in one file, the aliases are detected as expected.
Having the same value for @tokens in both files shows the same behavior.

@Sqrrl
Copy link
Collaborator

Sqrrl commented Mar 30, 2020

Thanks. Will look into that.

@bendobos
Copy link
Contributor Author

bendobos commented Mar 30, 2020

Fixed a typo in my example.

@Sqrrl Sqrrl added the bug Something isn't working label Apr 3, 2020
@Sqrrl
Copy link
Collaborator

Sqrrl commented Apr 3, 2020

Fixed with v0.7.1

@Sqrrl Sqrrl closed this as completed Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants