Commit b7f0107
authored
fix: overflow with long words (#1215)
This PR aims to solve this problem globally rather than just in the 1
instance spotted as I suspect this is happen frequently with
translations.
- Add `hyphen: auto` globally (with exceptions)
- Progresively enchance with `hyphen-limit-chars` to avoid over hyphenating (https://developer.mozilla.org/en-US/docs/Web/CSS/hyphenate-limit-chars)
- Soft hyphens `\u00AD` can be used by the translation team to encourage preferred hyphenations
(https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens)
- Excludes elements that commonly avoid hyphenation (https://meyerweb.com/eric/thoughts/2012/12/17/where-to-avoid-css-hyphenation/)1 parent b9481df commit b7f0107
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
65 | 83 | | |
66 | 84 | | |
67 | 85 | | |
| |||
91 | 109 | | |
92 | 110 | | |
93 | 111 | | |
94 | | - | |
95 | 112 | | |
96 | 113 | | |
97 | 114 | | |
| |||
120 | 137 | | |
121 | 138 | | |
122 | 139 | | |
123 | | - | |
| 140 | + | |
| 141 | + | |
124 | 142 | | |
0 commit comments