@@ -90,6 +90,17 @@ If it is not available, we use Arial or the generic sans-serif instead.
90
90
| :---------------------------------- | :------------------------------------ |
91
91
| ` var(--ams-typography-font-family) ` | ` 'Amsterdam Sans', Arial, sans-serif ` |
92
92
93
+ ## Hyphenation
94
+
95
+ Words that do not fit on a single line will be split with a hyphen and continue on the next line.
96
+ This happens automatically, but only for words of 12 or more characters.
97
+ There must be at least 8 characters before the hyphen and 4 characters after it.
98
+ This rule helps keep the text readable and prevents strange hyphenations.
99
+
100
+ | CSS variable | Value |
101
+ | :-------------------------------------------- | :------- |
102
+ | ` var(--ams-typography-hyphenate-limit-chars) ` | ` 12 8 4 ` |
103
+
93
104
## Design
94
105
95
106
### Responsive
@@ -272,21 +283,3 @@ Exceptions:
272
283
Long lines of text are challenging to read.
273
284
Around 80 characters per line is the maximum.
274
285
In the 12-column [ grid] ( /docs/components-layout-grid--docs ) , paragraphs meet this when they occupy 8 columns or fewer.
275
-
276
- ### Word breaking
277
-
278
- The Dutch language has many long words, such as ‘gemeenteraadsverkiezingen’ (municipal elections).
279
- Ensure in your application that these words are hyphenated neatly and do not break out of their container or get hidden.
280
- One way to do this is with the following CSS snippet, combining ` hyphens ` and ` word-break ` :
281
-
282
- ``` css
283
- .class {
284
- hyphens : auto ;
285
- /* only hyphenate words longer than 12 chars, for browsers that support it */
286
- hyphenate-limit-chars : 12 ;
287
- /* break overflowing words for browsers that don’t support CSS hyphens */
288
- overflow-wrap : break-word ;
289
- }
290
- ```
291
-
292
- Further reading: [ Wrapping and breaking text on MDN] ( https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_text/Wrapping_breaking_text )
0 commit comments