From fdaf57b5d4cd78787175fd9613b16eb311def8a2 Mon Sep 17 00:00:00 2001 From: Vanita Barrett Date: Tue, 16 Nov 2021 13:03:01 +0000 Subject: [PATCH] Remove default font styles from cookie banner Sass Removes the default font styles (setting the font and font-size) from the cookie banner Sass. This work was prompted by https://github.com/alphagov/govuk-design-system/issues/1886 With the default font styles present, it's very difficult to spot if you forget to add the relevant `govuk-body` styles to any `html` you pass into the component. We had missed this ourselves when we added the cookie banner to the design system. This change should only affect users who are passing `html` to the cookie banner. --- src/govuk/components/cookie-banner/_index.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/govuk/components/cookie-banner/_index.scss b/src/govuk/components/cookie-banner/_index.scss index f09287e487..95b84b1539 100644 --- a/src/govuk/components/cookie-banner/_index.scss +++ b/src/govuk/components/cookie-banner/_index.scss @@ -4,8 +4,6 @@ $border-bottom-width: govuk-spacing(2); .govuk-cookie-banner { - @include govuk-font($size: 19); - padding-top: govuk-spacing(4); // The component does not set bottom spacing. // The bottom spacing should be created by the items inside the component.