In October, Framer's Marketplace review took four of my templates down. One of the problems they flagged looked tiny: on phones, the text in some pills and price tags ran past the edge of the pill. A price like "€6,900 / week" spilled out of its card.
The cause was a setting I had turned on to make text look better.
The setup
In Framer, text styles have a Text Wrap option: default, balance or pretty. Balance evens out line lengths, and pretty avoids a single word stranded on the last line. Both map to the CSS text-wrap property, and both make headings and paragraphs look more polished.
So I had set pretty wrap on almost every text style, including the label and button styles. Those styles are used inside pills that size themselves to their text, which in Framer means auto width (in CSS terms, the pill shrinks to fit its content).
What went wrong
On desktop everything looked fine. On a narrow phone, where a pill had to wrap or squeeze, the text stopped fitting inside it.…