Fix clampGenerator when max and min are equal
This commit is contained in:
parent
ce2f92969e
commit
18a376fee3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue