From 34e1eee364beb5af80b4b01b1bf5f8af2d29b03d Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Tue, 10 Dec 2019 09:51:09 +0000 Subject: [PATCH] Add font-smoothing as global style Making all links GOV.UK Frontend styled means some will sit in content that doesn't use the GOV.UK Frontend font styles yet. This applies the font-smoothing that comes with those styles to all text so links do not look out of place on browsers that support it. Note: font-smoothing was part of the GOV.UK Template styles which have now been removed: https://github.com/alphagov/govuk_template/blob/master/source/assets/stylesheets/_basic.scss#L68 --- app/assets/stylesheets/globals.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/assets/stylesheets/globals.scss b/app/assets/stylesheets/globals.scss index 369b452e7..b24b39ea4 100644 --- a/app/assets/stylesheets/globals.scss +++ b/app/assets/stylesheets/globals.scss @@ -5,6 +5,16 @@ width: device-width; } +// To be removed when all text uses the GOV.UK Frontend New Transport font styles. +// At present, some text gets these styles due to being in a GOV.UK Frontend component +// or a link. +// This ensures all text will have these styles applied, until it can be moved to use +// the GOV.UK Frontend font styles. +body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + b, strong { font-weight: 600;