Skip to content

Commit

Permalink
Merge pull request #2417 from alphagov/ldeb-remove-govuk-tag--inactive
Browse files Browse the repository at this point in the history
Remove deprecated `govuk-tag--inactive` class
  • Loading branch information
lfdebrux authored Nov 8, 2021
2 parents b6f37a0 + 5d2fa1e commit 0c4485b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ If you’re calling `iff` from your own Sass, you should use [Sass's native `if`

This change was introduced in [pull request #2409: Remove deprecated `iff` Sass function](https://github.com/alphagov/govuk-frontend/pull/2409).

#### Remove deprecated `govuk-tag--inactive` class

We've removed the `govuk-tag--inactive` class which we deprecated in [GOV.UK Frontend v3.6.0](https://github.com/alphagov/govuk-frontend/releases/tag/v3.6.0).

Replace any use of this class with the `govuk-tag--grey` class.

This change was introduced in [pull request #2417: Remove deprecated `govuk-tag--inactive class`](https://github.com/alphagov/govuk-frontend/pull/2417).

### Fixes

We’ve made fixes to GOV.UK Frontend in the following pull requests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Phase banner with dependant components renders the tag component classes 1`] = `
<strong class="govuk-tag govuk-phase-banner__content__tag govuk-tag--inactive">
<strong class="govuk-tag govuk-phase-banner__content__tag govuk-tag--grey">
alpha
</strong>
`;
Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/phase-banner/phase-banner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ examples:
data:
text: This is a new service – your feedback will help us to improve it
tag:
classes: govuk-tag--inactive
classes: govuk-tag--grey
text: alpha

5 changes: 0 additions & 5 deletions src/govuk/components/tag/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
}
}

// Deprecated. We'll remove this class in a future release. Use `.govuk-tag--grey` instead.
.govuk-tag--inactive {
background-color: govuk-colour("dark-grey", $legacy: "grey-1");
}

.govuk-tag--grey {
color: govuk-shade(govuk-colour("dark-grey", $legacy: "grey-1"), 30);
background: govuk-tint(govuk-colour("dark-grey", $legacy: "grey-1"), 90);
Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/tag/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ examples:
- name: inactive
data:
text: alpha
classes: govuk-tag--inactive
classes: govuk-tag--grey
- name: grey
data:
text: Grey
Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/tag/template.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Tag', () => {
const $ = render('tag', examples.inactive)

const $component = $('.govuk-tag')
expect($component.hasClass('govuk-tag--inactive')).toBeTruthy()
expect($component.hasClass('govuk-tag--grey')).toBeTruthy()
})
})

Expand Down

0 comments on commit 0c4485b

Please sign in to comment.