From f17f144af27493584f969252070959056e5171b8 Mon Sep 17 00:00:00 2001 From: Vanita Barrett Date: Wed, 22 Sep 2021 13:06:22 +0100 Subject: [PATCH] Remove accordion examples These examples were added to test a different combination of HTML elements in the accordion component. However, the element specifically pushes text in the accordion out of line and therefore requires additional styling if it's going to be used (vertical-align: top). We also don't think it's likely that a user would want to use inside the summary line. This commit removes the from the accordion examples. The existing examples still test the accordion when passing in HTML content, so that is still covered. --- app/views/full-page-examples/campaign-page/index.njk | 4 ++-- src/govuk/components/accordion/accordion.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/full-page-examples/campaign-page/index.njk b/app/views/full-page-examples/campaign-page/index.njk index f987b41506..ee39ba21c8 100644 --- a/app/views/full-page-examples/campaign-page/index.njk +++ b/app/views/full-page-examples/campaign-page/index.njk @@ -109,7 +109,7 @@ notes: >- }, expanded: true, content: { - html: "

This is the content for Staying for the1 web.

" + html: "

This is the content for Staying for the web.

" } }, { @@ -165,7 +165,7 @@ notes: >- text: "Providing assisted digital support" }, summary: { - html: "Helping people who don't have the skills or access to use a service.1" + html: "Helping people who don't have the skills or access to use a service." }, content: { html: "" diff --git a/src/govuk/components/accordion/accordion.yaml b/src/govuk/components/accordion/accordion.yaml index ea7c328fde..27befc912b 100644 --- a/src/govuk/components/accordion/accordion.yaml +++ b/src/govuk/components/accordion/accordion.yaml @@ -106,9 +106,9 @@ examples:
  • Example item 1
  • - heading: - text: Praesent faucibus leo feugiat libero pharetra lacinia. Aliquam aliquet ante vitae mollis vestibulum. + text: Praesent faucibus leo feugiat libero pharetra lacinia. Aliquam aliquet ante vitae mollis vestibulum. summary: - html: Maecenas nec est sapien1. Etiam varius luctus mauris non porttitor. + html: Maecenas nec est sapien. Etiam varius luctus mauris non porttitor. content: html: |