{"id":"PSDS-DOC-0007-L1","document_id":"PSDS-DOC-0007","title":"Accordion","text":"# Accordion\n\nDocument ID: `PSDS-DOC-0007`\n\nAn accordion is a list of headers that hide or reveal additional content when selected.\n\n","record_type":"section","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/accordion.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/accordion.md#L1-L6","source_start_line":1,"source_end_line":6,"source_document_sha256":"67ddaa62815cc71a87974be4825b41ce180a98feb5f2ea78af76a22027b333ad","text_sha256":"2c2abdaaa4bbf5bb08492604a4fe793db431ae4830eac97555adaa086a876372","heading_path":["Accordion"],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-12-03","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"PSDS-DOC-0007-L7","document_id":"PSDS-DOC-0007","title":"Reference implementation","text":"### Reference implementation\n\nThese examples show markup, content and states. Map the ds- classes, asset paths and data attributes to the host design system. Implement interactive behaviour in the host and run the accessibility tests against the integrated result.\n\n``` html\n
Borderless
\n
\n
\n \n
\n
\n
\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n
\n
\n \n
\n
\n
\n Have your application reference and any supporting documents ready.\n
\n
\n
This is a list item
\n
Another list item
\n
\n
\n
\n \n
\n
\n
\n Review the information you have entered before sending your application.\n
\n
\n
\n \n
\n
\n
\n Use the reference number from your confirmation to check your progress.\n
\n
\n
\n \n
\n
\n
\n Contact the service team if you need help completing your application.\n
\n
\n
\n
Bordered
\n
\n
\n \n
\n
\n
\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n
\n
\n \n
\n
\n
\n Have your application reference and any supporting documents ready.\n
\n
\n
This is a list item
\n
Another list item
\n
\n
\n
\n \n
\n
\n
\n Review the information you have entered before sending your application.\n
\n
\n
\n \n
\n
\n
\n Use the reference number from your confirmation to check your progress.\n
\n
\n
\n \n
\n
\n
\n Contact the service team if you need help completing your application.\n
\n
\n
\n
Multiselectable
\n
\n
\n \n
\n
\n
\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n
\n
\n \n
\n
\n
\n Have your application reference and any supporting documents ready.\n
\n
\n
This is a list item
\n
Another list item
\n
\n
\n
\n \n
\n
\n
\n Review the information you have entered before sending your application.\n
\n
\n
\n \n
\n
\n
\n Use the reference number from your confirmation to check your progress.\n
\n
\n
\n \n
\n
\n
\n Contact the service team if you need help completing your application.\n
\n
\n
\n```\n\n","record_type":"section","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/accordion.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/accordion.md#L7-L184","source_start_line":7,"source_end_line":184,"source_document_sha256":"67ddaa62815cc71a87974be4825b41ce180a98feb5f2ea78af76a22027b333ad","text_sha256":"ab3847518547ac9ac0c4b31a55be0679d7fe204ff93a76e288cb37a197d1668b","heading_path":["Accordion","Reference implementation"],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-12-03","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"PSDS-DOC-0007-L185","document_id":"PSDS-DOC-0007","title":"Code examples","text":"### Code examples\n\n``` html\n
Borderless
\n
\n
\n \n
\n
\n
\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n
\n
\n \n
\n
\n
\n Have your application reference and any supporting documents ready.\n
\n
\n
This is a list item
\n
Another list item
\n
\n
\n
\n \n
\n
\n
\n Review the information you have entered before sending your application.\n
\n
\n
\n \n
\n
\n
\n Use the reference number from your confirmation to check your progress.\n
\n
\n
\n \n
\n
\n
\n Contact the service team if you need help completing your application.\n
\n
\n
\n\n
Bordered
\n\n
\n
\n \n
\n
\n
\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n
\n
\n \n
\n
\n
\n Have your application reference and any supporting documents ready.\n
\n
\n
This is a list item
\n
Another list item
\n
\n
\n
\n \n
\n
\n
\n Review the information you have entered before sending your application.\n
\n
\n
\n \n
\n
\n
\n Use the reference number from your confirmation to check your progress.\n
\n
\n
\n \n
\n
\n
\n Contact the service team if you need help completing your application.\n
\n
\n
\n\n
Multiselectable
\n\n
\n
\n \n
\n
\n
\n Check the eligibility questions before you start. You can return to the questions at any time.\n
\n
\n
\n \n
\n
\n
\n Have your application reference and any supporting documents ready.\n
\n
\n
This is a list item
\n
Another list item
\n
\n
\n
\n \n
\n
\n
\n Review the information you have entered before sending your application.\n
\n
\n
\n \n
\n
\n
\n Use the reference number from your confirmation to check your progress.\n
\n
\n
\n \n
\n
\n
\n Contact the service team if you need help completing your application.\n
\n
\n
\n```\n\n","record_type":"section","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/accordion.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/accordion.md#L185-L439","source_start_line":185,"source_end_line":439,"source_document_sha256":"67ddaa62815cc71a87974be4825b41ce180a98feb5f2ea78af76a22027b333ad","text_sha256":"ec545e7a5e0ea5f2bf02ec62fd92f8ffe6ae72b41122cee170fd736642f575db","heading_path":["Accordion","Code examples"],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-12-03","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"PSDS-DOC-0007-L440","document_id":"PSDS-DOC-0007","title":"Guidance","text":"## Guidance\n\n### When to use the accordion component\n\n- **If users will only need a few specific pieces of content within a page.**\n- **If you have only a small space to display a lot of content.**\n\n### When to consider something else\n\n- **If users need to see most or all of the information on a page.** Use well-formatted text instead.\n- **If there is not enough content to warrant condensing.** Accordions increase cognitive load and interaction cost because users have to make decisions about what headers to click on.\n\n### Usability guidance\n\n- **Make the entire header selectable.** Allow users to click anywhere in the header area to expand or collapse the content; a larger target is easier to manipulate.\n- **Give interactive elements enough space.** Make sure interactive elements within the collapsible region are far enough from the headers that users don’t accidentally trigger a collapse. (The exact distance depends on the device.)\n\n### Accessibility guidance\n\nTest the accordion component in your own project.\n\nThe design system tested the accordion component for accessibility. You should test your implementation, too.\n\n[Use accordion accessibility tests](#accessibility-tests)\n\n- **Code header areas in the accordion as buttons.** Using a `