alphagov / govuk-design-system

One place for service teams to find styles, components and patterns for designing government services.
https://www.gov.uk/design-system
MIT License
499 stars 231 forks source link

Review and update guidance for new typography scale #2300

Closed owenatgov closed 2 months ago

owenatgov commented 2 years ago

What

Update our typography guidance in response to the new font scale work done as part of https://github.com/alphagov/govuk-design-system/issues/2289.

Why

So that our guidance accurately reflects what we ship and so that teams understand how the new typography scale works.

Epic lead

TBC

Who needs to work on this

Interaction designers, content designers, support from devs

Who needs to work on this

## Done When
- [ ] https://github.com/alphagov/govuk-design-system/issues/3018
- [ ] https://github.com/alphagov/govuk-design-system/issues/3305
- [ ] https://github.com/alphagov/govuk-frontend-docs/issues/421
christopherthomasdesign commented 1 year ago

Kick off, 2 Aug

We had a kick off meeting about how to go about this work, because it's a bit bigger than most of the other ones in this epic. We're probably going to make this its own epic, within #2289.

Here's what we discussed.

What’s in scope

What’s out of scope

Risks

Risks to users:

Risks to delivery:

Next steps and timelines

At this point, we think the typography work generally is likely to be finished late this year / early next. After v5, in v5.x, the first version will be behind a feature flag. The guidance needs to be ready for then.

Next steps and roles agreed in the meeting:

owenatgov commented 1 year ago

Our typography documentation came up again during https://github.com/alphagov/govuk-frontend/issues/3837.

It emerged that anecdotally, users don't understand that govuk-font isn't just a way to set the font-size and line-height relative to the scale value you're setting. The specific ways it's misunderstood:

This comment includes some examples of where this has happened.

A hypothesis on how to solve this would be to simply expose this dynamic in the documentation. Our spacing guidance has a great breakdown of the spacing scale, how responsive is different from static and the difference between govuk-responsive-[padding/margin] and govuk-spacing. Something similar explaining govuk-font and when you use govuk-typography-responsive (although there's a keenness to change this mixin's name) would help a lot.