From 7d9d69543624907753227ba34071a5b10a1bb709 Mon Sep 17 00:00:00 2001 From: Oliver Byford Date: Wed, 20 May 2020 09:40:07 +0100 Subject: [PATCH] Add deprecation in #1807 to changelog --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d569094a5b..1eeb4231cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,24 @@ For example: @import "node_modules/govuk-frontend/govuk/components/header"; ``` + +### Deprecations + +#### Importing files from the core or overrides layers + +If you import specific files from the core or overrides layers, you should import the `base` file first: + +```scss +@import "node_modules/govuk-frontend/govuk/base"; + +@import "node_modules/govuk-frontend/core/typography"; +``` + +Importing files from the core or overrides layers without importing `base` will [no longer work as of GOV.UK Frontend v4.0](https://github.com/alphagov/govuk-frontend/issues/1800). + +[Pull request #1807: Warn if importing core, overrides without dependencies](https://github.com/alphagov/govuk-frontend/pull/1807). + + ### Fixes - [Pull request #1753: Make back link arrow consistent with breadcrumb component](https://github.com/alphagov/govuk-frontend/pull/1753)