Skip to content

Commit

Permalink
Merge pull request #3595 from alphagov/remove-deprecated-header-navig…
Browse files Browse the repository at this point in the history
…ation-class

Remove deprecated `.govuk-header__navigation--no-service-name` class
  • Loading branch information
querkmachine authored May 9, 2023
2 parents 1865177 + c9d8517 commit e90a395
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,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;
Expand Down

0 comments on commit e90a395

Please sign in to comment.