Closed owenatgov closed 2 months ago
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.
Risks to users:
Risks to delivery:
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:
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:
govuk-font
and by extension govuk-typography-responsive
is automatically creating media queriesgovuk-font
also calls govuk-typography-common
, leading to unnecessary repeated CSS when it's called twiceThis 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.
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