diff --git a/app/assets/stylesheets/components/_error-message.scss b/app/assets/stylesheets/components/_error-message.scss deleted file mode 100644 index ea7263917..000000000 --- a/app/assets/stylesheets/components/_error-message.scss +++ /dev/null @@ -1,10 +0,0 @@ -@import "govuk_publishing_components/individual_component_support"; -@import "helpers/variables"; - -.app-c-error-message { - display: block; - margin-bottom: govuk-spacing(3); - clear: both; - color: $govuk-error-colour; - @include govuk-font(19, $weight: bold); -} diff --git a/app/views/components/_error_message.html.erb b/app/views/components/_error_message.html.erb deleted file mode 100644 index afa8b7614..000000000 --- a/app/views/components/_error_message.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<% add_app_component_stylesheet("error-message") %> -<% id ||= false %> - - id="<%= id %>" - <% end %> -> - <%= text %> - diff --git a/app/views/components/docs/error_message.yml b/app/views/components/docs/error_message.yml deleted file mode 100644 index 7b0bc9a58..000000000 --- a/app/views/components/docs/error_message.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Form error message -description: Component to show a red error message - used for form validation. Use inside a label or legend. -accessibility_criteria: | - - have a text contrast ratio higher than 4.5:1 against the background colour to meet [WCAG AA](https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast) -examples: - default: - data: - text: 'Descriptive error message' - outside_label_or_legend: - description: 'Used if the error message is not inside a label or legend, for example with `aria-describedby`' - data: - id: 'unique-error-id' - text: 'Descriptive error message' diff --git a/config/initializers/dartsass.rb b/config/initializers/dartsass.rb index 16ee521ff..8dfe080c6 100644 --- a/config/initializers/dartsass.rb +++ b/config/initializers/dartsass.rb @@ -4,7 +4,6 @@ "components/_banner.scss" => "components/_banner.css", "components/_contents-list-with-body.scss" => "components/_contents-list-with-body.css", "components/_download-link.scss" => "components/_download-link.css", - "components/_error-message.scss" => "components/_error-message.css", "components/_figure.scss" => "components/_figure.css", "components/_important-metadata.scss" => "components/_important-metadata.css", "components/_published-dates.scss" => "components/_published-dates.css",