Use tabular numbers for dashboard banner counts

We use tabular (not lining) figures everywhere else that we display counts, so that they don’t shift around as the AJAX updates the numbers.

There’s a good explanation of the difference here: https://www.fonts.com/content/learning/fontology/level-3/numbers/proportional-vs-tabular-figures
This commit is contained in:
Chris Hill-Scott
2020-04-29 13:36:13 +01:00
parent 5e953c22da
commit 84dbae6e39

View File

@@ -150,7 +150,7 @@
}
&-count {
@include govuk-font(36, $weight: bold);
@include govuk-font(36, $weight: bold, $tabular: true);
padding-right: 8px;
position: relative;
// remove the top of the extra line-height this introduces