storybook-design-token
storybook-design-token copied to clipboard
Design tokens are not displayed in story-book if there is only a category name.
Version
storybook-design-token
: 2.6.0
Steps to Reproduce
Create basic storybook with next design-tokens
. Example:
:root {
/**
* @tokens Animations
* @presenter Animation
*/
--animation-rotate: rotate 1.2s infinite cubic-bezier(0.55, 0, 0.1, 1);
/**
* @tokens Colors
* @presenter Color
*/
--b100: hsl(240, 100%, 90%); /* Token Description Example @presenter Color */
--b200: hsl(240, 100%, 80%);
--b300: hsl(240, 100%, 70%);
/**
* @tokens Others
*/
--border-normal: 3px dashed red; /* Token Description Example @presenter BorderRadius */
}
Current Behavior
Animations
and Colors
sections displayed as expected, but not Others
.
Expected Behavior
Others
section should be displayed with appropriate @presenter BorderRadius
preview.
Hey, I'll look into it. Passing an empty presenter should help as a workaround.
@Sqrrl I am also running into same issue and passing an empty presenter doesn't work for me. Do you have an example?
Could you check v2.8.2? I've fixed an issue that might have been related.
@Sqrrl it does work as expected on v2.8.2. Thank you for your quick respons 🙌