From c9d851720f81c34170e8c67eb4f0f0d6947edec7 Mon Sep 17 00:00:00 2001 From: "beeps (Kim Grey)" Date: Tue, 9 May 2023 14:21:15 +0100 Subject: [PATCH] Remove deprecated `.govuk-header__navigation--no-service-name` class --- CHANGELOG.md | 14 ++++++++++++++ .../src/govuk/components/header/_index.scss | 6 ------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd903d8e6b..0f18315ce4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,20 @@ Use the `.govuk-header__service-name` class instead. This change was introduced in [pull request #3594: Remove deprecated `.govuk-header__link--service-name` class](https://github.com/alphagov/govuk-frontend/pull/3594). +#### Remove deprecated `.govuk-header__navigation--no-service-name` class + +We've removed the `.govuk-header__navigation--no-service-name` class that we deprecated in [GOV.UK Frontend v4.3.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.3.0). + +We no longer supply a dedicated class for headers with navigation but no service name. If you still need this feature, you can reproduce it in your own code using the `govuk-spacing` Sass mixin. + +```scss +.govuk-header__navigation { + padding-top: govuk-spacing(7); +} +``` + +This change was introduced in [pull request #3595: Remove deprecated `.govuk-header__navigation--no-service-name` class](https://github.com/alphagov/govuk-frontend/pull/3595). + #### Update the HTML for warning text We've removed the `.govuk-warning-text__assistive` class and its styles from GOV.UK Frontend. This class is unnecessary, as it duplicates the functionality of the `.govuk-visually-hidden` class already present in Frontend. diff --git a/packages/govuk-frontend/src/govuk/components/header/_index.scss b/packages/govuk-frontend/src/govuk/components/header/_index.scss index 0f384b2400..fb0642429f 100644 --- a/packages/govuk-frontend/src/govuk/components/header/_index.scss +++ b/packages/govuk-frontend/src/govuk/components/header/_index.scss @@ -245,12 +245,6 @@ } } - // The govuk-header__navigation--no-service-name class is deprecated and will - // be removed in the next major release. - .govuk-header__navigation--no-service-name { - padding-top: govuk-spacing(7); - } - .govuk-header__navigation-item { padding: govuk-spacing(2) 0; border-bottom: 1px solid $govuk-header-nav-item-border-color;