Closed stepan662 closed 7 months ago
I'll need more info about icons - tested font awesome apporach - as it uses regular text component to render icons, but it's a bit different behavior, then I saw earlier. However I'm not sure how to address this issue - we might be checking the font of the text node, but then we need to know all possible icon fonts.
Leaving the last point for further research.
Hi @stepan662 , I think that one could be tricky...
You could always leave heavy lifting to the designer...
Here are some ideas:
You could add an ignore button.
You could ignore text layers that are prefixed or suffixed with an underscore or something like "icon_"
Yeah, thats what I was also thinking about - have some ignore button, the prefix thing, I'm not sure about - I was testing font awesome and it doesn't have any clear prefix to identify. We'll make some more rounds of user feedback, so we'll elaborate on that.
BTW, what icon library are you using @patrick-alpcot ?
We're using Fontawesome.
Regarding the second option, it wouldn't have anything to do with fontawesome specifically. I was actually thinking that the user (designer) would change the layer names in Figma themselves. It would be more of a general way to exclude text layers from the tolgee plugin. So, it would not be specifically tied to icon fonts only, but maybe also for numbers, dates, etc.
Here's a screen recording to explain the idea: https://alpcotpartners-my.sharepoint.com/:v:/r/personal/patrick_nel_alpcot_se/Documents/Shared%20Externally/Tolgee/Tolgee%20ignore%20text%20layers-1080p.mov?csf=1&web=1&e=O4RFp3
We'll discuss it also with our designer.