Skip to content

Commit

Permalink
Rename lineHeightPx into lineHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Sep 7, 2020
1 parent 128f2f7 commit 8f9de7b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/lib/figmaStyles/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ describe('figmaStyles.', () => {
fontVariant: 'normal',
fontWeight: 400,
letterSpacing: 2,
lineHeightPx: 30,
lineHeight: 30,
textAlign: 'left',
textDecoration: 'underline',
textTransform: 'capitalize',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/figmaStyles/textStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ const createTextStyle = (textNode: Figma.Style & Figma.Text): FigmaExport.TextSt
fontFamily,
fontWeight,
fontSize,
lineHeightPx,
letterSpacing,
lineHeight: lineHeightPx,
fontStyle: italic ? 'italic' : 'normal',
fontVariant: translateFontVariant(textCase),
textTransform: translateTextTransform(textCase),
Expand Down
2 changes: 1 addition & 1 deletion packages/output-styles-as-sass/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const mockText = (visible = true): Style => ({
fontVariant: 'normal',
fontWeight: 100,
letterSpacing: 10,
lineHeightPx: 12,
lineHeight: 12,
textAlign: 'left',
textDecoration: 'none',
textTransform: 'uppercase',
Expand Down
2 changes: 1 addition & 1 deletion packages/output-styles-as-sass/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export = ({
"font-variant": ${style.style.fontVariant},
"font-weight": ${style.style.fontWeight},
"letter-spacing": ${style.style.letterSpacing}px,
"line-height": ${style.style.lineHeightPx}px,
"line-height": ${style.style.lineHeight}px,
"text-align": ${style.style.textAlign},
"text-decoration": ${style.style.textDecoration},
"text-transform": ${style.style.textTransform},
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/styles/TextStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type TextStyle = {
/** Font size in px */
fontSize: number;
/** Line height in px */
lineHeightPx: number;
lineHeight: number;
/** Space between characters in px */
letterSpacing: number;

Expand Down

0 comments on commit 8f9de7b

Please sign in to comment.