mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 05:33:02 -05:00
more fixes (#196)
This commit is contained in:
parent
53672d8b43
commit
b0670b875e
1 changed files with 1 additions and 3 deletions
|
@ -12,8 +12,6 @@ import { TypographyStyle } from '@ui/lib/types/shapes/textShape';
|
||||||
import { translateStyleName, translateStylePath } from '.';
|
import { translateStyleName, translateStylePath } from '.';
|
||||||
|
|
||||||
export const translateTextStyle = (figmaStyle: TextStyle): TypographyStyle => {
|
export const translateTextStyle = (figmaStyle: TextStyle): TypographyStyle => {
|
||||||
const name = (figmaStyle.remote ? 'Remote / ' : '') + figmaStyle.name;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: translateStyleName(figmaStyle),
|
name: translateStyleName(figmaStyle),
|
||||||
textStyle: {
|
textStyle: {
|
||||||
|
@ -28,7 +26,7 @@ export const translateTextStyle = (figmaStyle: TextStyle): TypographyStyle => {
|
||||||
},
|
},
|
||||||
typography: {
|
typography: {
|
||||||
path: translateStylePath(figmaStyle),
|
path: translateStylePath(figmaStyle),
|
||||||
name
|
name: translateStyleName(figmaStyle)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue