[fix] text-transform CSS from Figma TextCase#114
[fix] text-transform CSS from Figma TextCase#114andrewmilligan wants to merge 1 commit intothe-dataface:mainfrom
Conversation
The `styleProps` generator was converting [Figma's `TextCase` values](https://www.figma.com/plugin-docs/api/TextCase/) to CSS by lowercasing values other than `ORIGINAL`, resulting in invalid CSS values like `upper` (rather than `uppercase`). This fixes that conversion by adding a utility function to properly map `TextCase` values to CSS values.
|
|
I wrote this up as I was investigating what was causing #113 so I figured I would just put it in and if it's helpful, great! I'm happy to make any tweaks you'd like or for you to take it over and do what you will with it. Hope this isn't an annoyance to you all. Love the plugin — we're in the process of trying to adopt it more systematically on my team ❤️ |
|
I'm glad to hear its getting use, and thanks for the contribution! I'll check this PR out in the coming days. |
The
stylePropsgenerator was converting Figma'sTextCasevalues to CSS by lowercasing values other thanORIGINAL, resulting in invalid CSS values fortext-transformlikeupper(rather thanuppercase). This fixes that conversion by adding a utility function to properly mapTextCasevalues to CSS values.Find a simple reproduction here. This is a proposed fix for #113