tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

feat: add hyphens

Open fratzinger opened this issue 1 year ago • 3 comments

In german language we have many long words. We concat cohesive words without whitespaces. It's pretty easy to have words with 15+ characters. The german language also has strict rules how to hyphenate based on syllables, so the https://tailwindcss.com/docs/word-break does not help at all for normal language.

So the hyphens rule comes in pretty handy: https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens

It's pretty straight forward addition, that's requested by a few people:

  • https://github.com/tailwindlabs/tailwindcss/discussions/7286
  • https://github.com/tailwindlabs/tailwindcss/discussions/2243
  • https://github.com/tailwindlabs/tailwindcss/discussions/8508
  • https://github.com/tailwindlabs/tailwindcss/discussions/1846
  • https://github.com/tailwindlabs/tailwindcss/discussions/3985

fratzinger avatar Dec 14 '22 09:12 fratzinger

LGTM :+1:

https://caniuse.com/?search=hyphens The core support looks like it's done, but per-nonenglish-language support is only on Firefox.

Danielduel avatar Dec 14 '22 19:12 Danielduel

Thanks! The much bigger project here is the documentation. If anyone wants to put together a PR for that against our v3.3 branch in the docs repo that will make it faster to merge this. Challenge is always coming up with nice visual examples that teach the feature well.

adamwathan avatar Dec 17 '22 11:12 adamwathan

Thanks for the quick reaction.

I've started but am not able to get the right version of the dependency to work on the docs properly. What's the insiders version of tailwindcss of this branch? How do I get this up and running so it can be reviewed? Unfortunately, I haven't found a contribution guide which describes the workflow. Guidance is highly appreciated, so I'm able to make a PR against the v3.3 branch in the docs repo. 👍

fratzinger avatar Dec 17 '22 12:12 fratzinger

Just gonna merge this for now, I'll get the docs ready before the real v3.3 release some time in March. Thanks!

adamwathan avatar Feb 07 '23 02:02 adamwathan