govCMS / govcms8_uikit_starter

GovCMS 8 UI-Kit Starter
10 stars 16 forks source link

Max width on <p> tag #55

Open OPCIT opened 5 years ago

OPCIT commented 5 years ago

Is there a reason the body content

tag has an out-of-the-box max-width?

.au-body p { max-width: 42em; }

invisigoth commented 5 years ago

Readability. The optimal line length for your body text is considered to be 50-60 characters per line, including spaces (“Typographie”, E. Ruder). For example, in LaTex 65 characters per line is considered optimal readability, used in books.

gordongrace commented 5 years ago

Further detail on the rationale (and option to override) is available at: https://designsystem.gov.au/components/body/rationale/

This is a value inherited from the Australian Government Design System by the theme, rather than imposed by the theme directly.

timcoxopc commented 5 years ago

We've noticed this does not apply to the <li> tag, which makes for some odd page layout out of the box if you have long list items. Is this a deliberate decision?