From 024812b49a01828b086d021685881f10b3defee6 Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Tue, 7 Jan 2020 09:58:16 +0000 Subject: [PATCH] Turn on compatibility mode for GOVUK Frontend Automatically fixes a load of known issues that arise when you use GOVUK Frontend at the same time as GOVUK Frontend Toolkit, GOVUK Template and GOVUK Elements. --- app/assets/stylesheets/govuk-frontend/_all.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/stylesheets/govuk-frontend/_all.scss b/app/assets/stylesheets/govuk-frontend/_all.scss index 9ecefd894..e91af0467 100644 --- a/app/assets/stylesheets/govuk-frontend/_all.scss +++ b/app/assets/stylesheets/govuk-frontend/_all.scss @@ -2,6 +2,13 @@ // Included to allow us to only include the components we need // All imports come from node_modules/govuk-frontend +// turn on compatibility mode for all legacy frameworks +// https://github.com/alphagov/govuk-frontend/blob/master/docs/installation/compatibility.md#turn-on-compatibility-mode +// to be removed when these frameworks are removed. +$govuk-compatibility-govukfrontendtoolkit: true; +$govuk-compatibility-govuktemplate: true; +$govuk-compatibility-govukelements: true; + // set asset URL root to match that of application $govuk-assets-path: "/static/";