diff --git a/app/templates/components/components/alert/README.md b/app/templates/components/components/alert/README.md deleted file mode 100644 index 8e601db74..000000000 --- a/app/templates/components/components/alert/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Error message - -## Installation - -See the [main README quick start guide](https://github.com/alphagov/govuk-frontend#quick-start) for how to install this component. - -## Guidance and Examples - -Find out when to use the error message component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/error-message). - -## Component options - -Use options to customize the appearance, content and behavior of a component when using a macro, for example, changing the text. - -See [options table](https://design-system.service.gov.uk/components/error-message/#options-example-default) for details. \ No newline at end of file diff --git a/app/templates/components/components/alert/macro-options.json b/app/templates/components/components/alert/macro-options.json deleted file mode 100644 index eddcab0d2..000000000 --- a/app/templates/components/components/alert/macro-options.json +++ /dev/null @@ -1,37 +0,0 @@ -[ - { - "name": "text", - "type": "string", - "required": true, - "description": "If `html` is set, this is not required. Text to use within the error message. If `html` is provided, the `text` argument will be ignored." - }, - { - "name": "html", - "type": "string", - "required": true, - "description": "If `text` is set, this is not required. HTML to use within the error message. If `html` is provided, the `text` argument will be ignored." - }, - { - "name": "id", - "type": "string", - "required": false, - "description": "Id attribute to add to the error message span tag." - }, - { - "name": "classes", - "type": "string", - "required": false, - "description": "Classes to add to the error message span tag." - }, - { - "name": "attributes", - "type": "object", - "required": false, - "description": "HTML attributes (for example data attributes) to add to the error message span tag" - }, - { - "name": "visuallyHiddenText", - "type": "string", - "description": "A visually hidden prefix used before the error message. Defaults to \"Error\"." - } -] \ No newline at end of file diff --git a/app/templates/components/components/alert/macro.njk b/app/templates/components/components/alert/macro.njk deleted file mode 100644 index 65a977566..000000000 --- a/app/templates/components/components/alert/macro.njk +++ /dev/null @@ -1,3 +0,0 @@ -{% macro usaAlert(params) %} - {%- include "./template.njk" -%} -{% endmacro %} diff --git a/app/templates/components/components/alert/template.njk b/app/templates/components/components/alert/template.njk deleted file mode 100644 index d89405e64..000000000 --- a/app/templates/components/components/alert/template.njk +++ /dev/null @@ -1,18 +0,0 @@ -{%- if params.slim %} -
- {{params.text}} -
-- {{params.text | safe }} -
-Every message starts with a template. You can change it later. - + {% if current_user.has_permissions('manage_templates') %} You need a template before you can {% else %} @@ -36,11 +35,13 @@