figma2html icon indicating copy to clipboard operation
figma2html copied to clipboard

Option: No widows

Open sawyerclick opened this issue 10 months ago • 0 comments

Describe the problem

feature req. from Texas Tribune to have a way to prevent widows

Describe the proposed solution

Could look into like widont from journalize for inspo, but this may be a bit out of our scope?

My best guess: we send a separate script at build time that grabs either all text nodes or text nodes with a .widont class (can be set via our html attribute setters)

Alternatives considered

This is a niche ask and users could fine-tune graphics themselves, using the new Whole Variables mode where you can inject values and then further tweak the width/sizes of the parent

Importance

nice to have

Code of Conduct

  • [X] I agree to follow figma2html's Code of Conduct

sawyerclick avatar Sep 25 '23 17:09 sawyerclick