Skip to content

Commit

Permalink
Replace govuk-tag--inactive with govuk-tag--grey in tests
Browse files Browse the repository at this point in the history
Class `govuk-tag--inactive` was replaced by `govuk-tag--grey` and
deprecated in PR #1711. This commit replaces references to it in our
tests, examples, and fixtures.
  • Loading branch information
lfdebrux committed Nov 4, 2021
1 parent b6f37a0 commit 29fc04f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

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 29fc04f

Please sign in to comment.