diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e9019122c..06f7343848 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * Use component wrapper on summary list component ([PR #4529](https://github.com/alphagov/govuk_publishing_components/pull/4529)) * Use component wrapper on translation nav component ([PR #4530](https://github.com/alphagov/govuk_publishing_components/pull/4530)) * Use component wrapper on warning text component ([PR #4351](https://github.com/alphagov/govuk_publishing_components/pull/4531)) +* Remove govspeak advisory component ([PR #4349](https://github.com/alphagov/govuk_publishing_components/pull/4349)) ## 47.0.0 diff --git a/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss b/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss index a8b06394ec..88ab2b54d4 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss @@ -1,6 +1,5 @@ @import "govuk_publishing_components/individual_component_support"; -@import "govspeak/advisory"; @import "govspeak/attachment"; @import "govspeak/button"; @import "govspeak/call-to-action"; diff --git a/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss b/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss deleted file mode 100644 index eeb123bee9..0000000000 --- a/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +++ /dev/null @@ -1,36 +0,0 @@ -$info-background: #d5e8f3; -$high-alert-border: #cc0000; - -.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items. -.gem-c-govspeak { - .advisory { - background-image: url("govuk_publishing_components/icon-important.svg"); - background-repeat: no-repeat; - background-size: 30px 30px; - background-position: 98% center; - background-color: $info-background; - line-height: 1.3em; - margin: 0 0 1em; - padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3); - text-align: left; - - p { - margin: 0 .75em 0 0; - min-height: 1.75em; - padding-right: 3em; - } - - strong { - font-weight: 400; - } - - &.high-alert { - background-color: govuk-colour("light-grey"); - border: 1px solid $high-alert-border; - } - - @include govuk-media-query($until: tablet) { - margin: 0 0 1em; - } - } -} diff --git a/app/views/govuk_publishing_components/components/docs/govspeak.yml b/app/views/govuk_publishing_components/components/docs/govspeak.yml index 57f560b6e1..b3cb738c1a 100644 --- a/app/views/govuk_publishing_components/components/docs/govspeak.yml +++ b/app/views/govuk_publishing_components/components/docs/govspeak.yml @@ -842,12 +842,6 @@ examples: The water in the mouth of a blue whale weighs more than its body.

- advisory: - data: - block: | -

- This is a very important message or warning -

form_download: data: block: |