Skip to content

Commit

Permalink
fix: design token logic breaks auto height for empty containers (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaoste authored Dec 20, 2023
1 parent 9e6092f commit 901bf67
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const getDesignTokenRegistration = (breakpointValue: string) => {
resolvedValue += `${tokenValue} `;
});

return resolvedValue;
// Not trimming would end up with a trailing space that breaks the check in `calculateNodeDefaultHeight`
return resolvedValue.trim();
};

// Using this because export const StringTemplateRegex = /\${(.*?)\}/g doesn't work
Expand Down

0 comments on commit 901bf67

Please sign in to comment.