Skip to content

Commit

Permalink
Remove deprecated .govuk-header__navigation--no-service-name class
Browse files Browse the repository at this point in the history
  • Loading branch information
querkmachine committed May 9, 2023
1 parent 3462066 commit bea5a3f
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 @@ -48,6 +48,20 @@ Use the classes starting with `.govuk-!-static-margin` and `.govuk-!-static-padd

This change was introduced in [pull request #3593: Remove deprecated static spacing classes](https://github.com/alphagov/govuk-frontend/pull/3593).

#### 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 @@ -248,12 +248,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 bea5a3f

Please sign in to comment.