-
-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Labels
Description
Describe the bug
When a token's resolved value is exactly 0 (zero), the plugin's tooltip fails to display the numeric value next to the alias. Instead of showing "0", the space remains blank/empty. This is misleading as it can suggest that the token has no value or is broken, whereas the value is valid and correctly stored (as confirmed by checking the "Edit Token" modal where "0" is visible).
This issue occurs for:
- Direct references to other tokens with a value of 0.
- Math operations that resolve to 0.
To Reproduce
Steps to reproduce the behavior:
- Create a numeric token (e.g., dimension or spacing) with a value of
0. - Create a second token that references the first (e.g.,
{spacing.none}). - Hover over the second token in the plugin UI to trigger the tooltip.
- See error: The tooltip shows the alias reference but displays nothing for the resolved value.
Expected behavior
The tooltip should explicitly display the number 0 as the resolved value. It should not treat zero as a null or empty string for display purposes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
📥 Triage
