Fix clampGenerator when max and min are equal

This commit is contained in:
Edward Andrews-Hodgson 2025-07-04 15:01:45 +01:00
parent ce2f92969e
commit 18a376fee3
No known key found for this signature in database

View file

@ -18,7 +18,7 @@ export const clampGenerator = tokens => {
return tokens.map(({name, min, max}) => {
if (min === max) {
return `${min / rootSize}rem`;
return {name, value:`${min / rootSize}rem`};
}
// Convert the min and max sizes to rems