Merge pull request #97 from aldreth/main
Fix clampGenerator when max and min are equal
This commit is contained in:
commit
a7d9cab9ce
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export const clampGenerator = tokens => {
|
||||||
|
|
||||||
return tokens.map(({name, min, max}) => {
|
return tokens.map(({name, min, max}) => {
|
||||||
if (min === max) {
|
if (min === max) {
|
||||||
return `${min / rootSize}rem`;
|
return {name, value:`${min / rootSize}rem`};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the min and max sizes to rems
|
// Convert the min and max sizes to rems
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue