Fix decimal letter spacing values (#1293)

This commit is contained in:
Niklas von Hertzen
2017-12-07 15:20:24 +08:00
parent 2c8c604f9a
commit 166cbba7c2
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,6 @@ export const parseLetterSpacing = (letterSpacing: string): number => {
if (letterSpacing === 'normal') {
return 0;
}
const value = parseInt(letterSpacing, 10);
const value = parseFloat(letterSpacing);
return isNaN(value) ? 0 : value;
};