diff --git "a/documents.jsonl" "b/documents.jsonl" new file mode 100644 --- /dev/null +++ "b/documents.jsonl" @@ -0,0 +1,102 @@ +{"id":"PSDS-DOC-0098","document_id":"PSDS-DOC-0098","title":"Agent instructions","text":"# Agent instructions\n\nDocument ID: `PSDS-DOC-0098`\n\n## Scope and retrieval\n\nUse guidance/**/*.md as the document set. Use each named Markdown file as the guide for its topic. Where a topic has subguides, a file such as guidance/patterns/create-a-user-profile.md introduces the topic and the matching directory contains its subguides. Store the stable document ID and source commit. Resolve paths and anchors at that revision. Keep the H1 with every section retrieved from the same document. Use principle, component, pattern, template, utility and workflow as the document kinds, and use British English (en-GB). Use the README and this file for routing and governance.\n\n1. Classify the task by user goal, surface, variant and required behaviour. Retrieve the most specific guide, then follow relevant in-set links for dependencies.\n2. Record source IDs, revision, resolved paths and sections, test conditions, applicability and WCAG criteria where stated. Keep test procedures together with expected results. Keep complete fenced code blocks with their variant heading and any stated dependencies.\n3. Complete the [component semantics contract](guidance/templates/component-semantics-contract.md) for each behaviourally distinct variant with the host design system, visible and accessible names, semantics, focus, input methods, states, error recovery, data requirements and equivalent outputs. Prefer native elements when they satisfy the contract.\n4. Translate the HTML and styling examples into host components, routes, tokens and assets. Map state, event and focus handling explicitly. Treat an example’s styling or JavaScript dependency as part of the integration work.\n5. Run the relevant tests against the implemented journey. Record the build, variant, browser, input method, assistive technology and outcome. Label checks that are unrun, blocked or inapplicable. Report a pass only when the expected outcome was observed.\n\n## Import principle decisions\n\nRead the [governance map](guidance/principles/governance-map.json) when importing principles into a service governance system. Version 1 covers the shared-device reminder pilot. Resolve paths from the repository root at the revision being imported. Match records by stable ID, record the source commit and map the suggested role to a local decision owner. Keep local approvals and observed test results in the service’s records. An import creates guidance with verification pending. Revisit the local decision when its source or applicability changes.\n\n## Resolve a test and its evidence\n\nUse register titles to locate the source. Before implementing a requirement or assessing a result, read its full source section, including the procedure, expected outcome, applicability and surrounding setup. If an ID, path or anchor fails to resolve at the pinned commit, record the reference and revision, flag the gap to the owner and leave the assessment pending.\n\nFor example, follow the [reminder decision](guidance/principles/governance-map.json) to PSDS-REQ-0002. In the repository register, PSDS-TEST-0002 verifies that requirement. Open its [draft recovery procedure](guidance/principles/testing-techniques.md#psds-test-0002-verify-draft-recovery). The [pilot observations](pilots/save-draft/observations.json) record recovery after declining the reminder on build A and failure on build B. Each result belongs to that fixture and build. Record a fresh observation for an adopting service.\n\n## Procurement and delivery workflows\n\nFor a supplier response, retrieve the [vendor checklist](guidance/vendor-procurement/delivery-checklist.md) and [market profiles](guidance/vendor-procurement/jurisdiction-and-reporting.md). For local acceptance and management reporting, retrieve the [internal delivery workflow](guidance/internal-delivery/service-workflow.md). Use workflow as the document kind for these guides. Pin evidence to the assessed build. Draft tickets and report rows within the host permissions and route unresolved claims to the named reviewer.\n\n## Adapt a service brand\n\nChoose the core family and fallback order using [Font size and family](guidance/utilities/font-size-and-family.md#choose-the-family-and-fallback). Map brand colours to semantic roles and verify component states and Windows contrast themes using [Colour](guidance/utilities/example_colours.md#map-the-brand-palette-to-roles). Record the tested combinations in the host service.\n\n## Training and governance\n\n- Keep guide text, code examples and test procedures connected through stable IDs and the imported revision, retaining resolved paths and section headings. Create an evaluation split by guide or closely related family to avoid leakage from near-duplicate variants.\n- Treat examples as adapted guidance. Use the applicable version of the normative standard for conformance decisions. A component check alone cannot establish whole-service conformance.\n- Exclude service records, credentials, National Insurance numbers and identifying demographic data. Use clearly synthetic values in examples and fixtures.\n- Keep imported checklist procedures distinct from evidence collected against a host. Added checks marked as suggested are local verification guidance.\n- Retrieve external companion material only when its trigger applies. Retain its source identifier, version and licence when preparing a training corpus. Ask the relevant service owner to resolve conflicts between policy, support commitments and design decisions.\n\n## Companion retrieval\n\n| Retrieve when | Repository | Expected agent output |\n|---|---|---|\n| Different input or output modes, language switching, navigation or live feedback | [Inclusive Multimodal UX](https://github.com/Double-FW/Inclusive-Multimodal-UX) | Specify equivalent cues, actions and state across modalities. Use structural semantics and test the supported input and output paths. |\n| Research coverage, prioritisation or functional access needs | [Accessibility Demographics](https://github.com/Double-FW/Accessibility_Demographics) | Select outcome-based participant segments and document coverage gaps. Keep population estimates separate from evidence about this service. |\n| AI influences a public-service outcome | [EU AI Act accessibility, disability rights and delivery](https://github.com/Double-FW/EU-AI-Act-accessibility-disability-rights-and-delivery) | Identify the system role, applicable duties, oversight and evidence owners. Escalate rights-impacting or unresolved decisions to the service owner. |\n| The service operates across jurisdictions | [Global accessibility regulatory requirements](https://github.com/Double-FW/Global_Accessiblity_Regulatory_Requirements) | Map jurisdictions, service scope and evidence obligations. Verify applicability and current rules against primary sources. |\n| European public-sector web or mobile services, procurement or monitoring | [EU Web Accessibility Directive and EN 301 549](https://github.com/Double-FW/EU-Web-Accessibility-Directive_EN301549) | Map obligations to the relevant technical tests, evidence and reporting duties. Confirm the applicable edition and local requirements. |\n| Charts, maps or complex graphics convey information | [Accessible charts, graphs and maps](https://github.com/Double-FW/Accessible_Charts_Graphs_and_Maps) | Determine the visual insight, then provide equivalent summaries, values and interactions. Validate that all representations use the same data and filter state. |\n| Type tokens, font fallbacks or brand typography | [Accessible typography for UX and brand systems](https://github.com/Double-FW/Accessible-Typography-for-UX-and-Brand-Systems) | Check character distinction, script coverage, fallback metrics, line length and user overrides before setting tokens. Test with service content at the smallest and largest supported sizes. |\n| Conversational routing, assistance or an automated service entry point | [Accessible chatbots](https://github.com/Double-FW/Accessible-Chatbots) | Apply conversation semantics, status announcements, interruption recovery and a usable handoff to a person. |\n| Long forms, interruption, confirmation or task recovery | [Cognitive UX design](https://github.com/Double-FW/Cognitive-UX-Design) | Reduce recall demands with plain instructions, visible progress, review and recoverable state. Evaluate whether returning users can resume confidently. |\n| Confirmations, invitations, recovery or notifications delivered by email | [Accessible email design](https://github.com/Double-FW/Accessible-Email-Design) | Specify meaningful subject, text and links, accessible reading order and equivalent instructions on the service. Test the handoff in supported email clients. |\n| Personal attributes, disability information, identifiers or training evidence | [Data ethics and disability](https://github.com/Double-FW/Data_Ethics_and_Disability) | Record purpose, minimisation, access and retention. Use synthetic data for fixtures and keep disclosures, raw identifiers and live user records out of training. |\n\n## Stable identifiers\n\nResolve document, requirement and test IDs through the [repository register](guidance/identifier-register.json). It incorporates the [principles pilot register](guidance/principles/identifier-register.json). An expected outcome inherits the applicability and advisory status of its check. Record the local baseline before treating it as mandatory. Record the local adoption decision, imported Git commit, test ID, build and observed outcome. Resolve historical evidence at its recorded revision. Keep external criteria and versions separate.\n\nKeep identifiers through renames and clarifications. For materially different obligations or outcomes allocate a fresh identifier. Retain the retired source entry with a retirement note and successor ID. Requirements from the reminder pilot apply when the service adopts the decision. Ordinary examples remain part of their guide.\n\nRun `node scripts/principle-ids.mjs` from the repository root to regenerate the register. Then run `node scripts/repository-ids.mjs` to regenerate the repository register. Maintain test-to-requirement links in `guidance/test-requirements.json`. Resolve tests for a decision by looking up records whose verifies field matches its requirement IDs. Run both commands with `--check` to verify the published outputs. Allocate the next unused number for each kind and retain the ID in the source when moving text.\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"AGENTS.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/AGENTS.md#L1-L63","source_start_line":1,"source_end_line":63,"source_document_sha256":"9c705e03062245f0eb07a65ba74526b24ac74ecffd93ccf228f95b22d16151bd","text_sha256":"9c705e03062245f0eb07a65ba74526b24ac74ecffd93ccf228f95b22d16151bd","heading_path":[],"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-0097","document_id":"PSDS-DOC-0097","title":"Public service design system documentation","text":"# Public service design system documentation\n\nDocument ID: `PSDS-DOC-0097`\n\nDesign guidance and accessibility checks for public-service websites and applications. Each guide has a stable document ID. Resolve its path at the revision you are using. Component test pages are incorporated into the corresponding guides. The examples use synthetic content and British English.\n\n## Acknowledgements\n\nThe [U.S. Web Design System (USWDS)](https://designsystem.digital.gov/) provided the foundation for the component, pattern and utility guidance in this repository.\n\nThank you to the people at 18F and the U.S. Digital Service who created USWDS, and to the maintainers at the U.S. General Services Administration and the wider open-source community who have built, tested and documented it over the years. You can read more about the [project’s history](https://designsystem.digital.gov/about/) and the [USWDS community](https://designsystem.digital.gov/about/community/).\n\nDouble FW maintains this independent adaptation. We have adapted the examples for a wider public-service context and added accessibility testing and guidance for design, implementation and assurance.\n\n## Start here for agents\n\n1. Pin the repository commit and use the [agent instructions](AGENTS.md) to select the task and scope.\n2. Resolve the stable ID in the [repository identifier register](guidance/identifier-register.json). Open the recorded path and anchor at that same commit.\n3. Read the complete source section. For a component, follow the [component contract directory](guidance/templates/component-semantics-contract.md#component-contract-directory). For verification, retrieve the applicable test procedure, expected outcome and conditions.\n4. Record the observed result against the host build and environment. The [supplier-to-buyer pilot](guidance/vendor-procurement/delivery-checklist.md#executed-pilot--supplier-to-charity-handoff) shows how a result changes between builds.\n\n## From a decision to evidence\n\nFor a shared-phone application, the service owner records whether to offer an optional reminder. The designer and developer use the [component semantics contract](guidance/templates/component-semantics-contract.md) to agree how saving works and what feedback the person receives. QA follows the reminder decision to PSDS-TEST-0001 for delivery and PSDS-TEST-0002 for draft recovery. The adopting service records each result with its build, source commit and local decision.\n\n## Procurement and internal delivery\n\nSuppliers can use the [vendor checklist](guidance/vendor-procurement/delivery-checklist.md) and [jurisdiction profiles](guidance/vendor-procurement/jurisdiction-and-reporting.md) to prepare tender responses and maintain release evidence. Service owners can use the [internal workflow](guidance/internal-delivery/service-workflow.md) to assess the deployed journey and route sprint findings.\n\n## Adapt a service brand\n\nChoose the core family and fallback order using [Font size and family](guidance/utilities/font-size-and-family.md#choose-the-family-and-fallback). Map brand colours to semantic roles and verify component states and Windows contrast themes using [Colour](guidance/utilities/example_colours.md#map-the-brand-palette-to-roles). Record the tested combinations in the host service.\n\n## Find a guide\n\n### Which guide do I need?\n\n| When you need to… | Use this guide |\n|---|---|\n| Agree what a good service experience should deliver | [Design principles](guidance/principles/design-principles.md) |\n| Adopt or adapt a pattern for a service | [Using a design system](guidance/principles/using-a-design-system.md) |\n| Support someone under pressure or dealing with sensitive information | [Trauma-informed and cognitive design](guidance/principles/trauma-informed-and-cognitive-design.md) |\n| Assign responsibility for checks and handoffs | [Integrated accessibility](guidance/principles/integrated-accessibility.md) |\n| Choose journeys, conditions and priorities for testing | [Strategies in accessibility testing](guidance/principles/strategies-in-accessibility-testing.md) |\n| Run a check and interpret the result | [Testing techniques](guidance/principles/testing-techniques.md) |\n\n### Components, patterns and other guidance\n\n- [Components](guidance/components/overview.md)\n- [Patterns](guidance/patterns/intro.md) with guides for [creating a profile](guidance/patterns/create-a-user-profile.md), [completing a complex form](guidance/patterns/complete-a-complex-form.md) and [selecting a language](guidance/patterns/select-a-language.md)\n- [Utilities](guidance/utilities.md)\n- [Templates](guidance/templates/form-templates.md) and the [404 page](guidance/templates/404-page.md)\n\n## Use with a design or implementation agent\n\nStart with the user’s task and select the relevant guide. Use the guidance to specify expected behaviour, the code to understand structure, and the tests to verify a representative build. For automated retrieval or dataset assembly, use [AGENTS.md](AGENTS.md).\n\nThe examples depend on the host for routes, assets, tokens and interaction code where indicated. Verify the implementation in its service journey, including the applicable legal baseline and supported browsers, devices and assistive technologies.\n\n## Companion repositories\n\n| Retrieve when | Repository | Expected agent output |\n|---|---|---|\n| Different input or output modes, language switching, navigation or live feedback | [Inclusive Multimodal UX](https://github.com/Double-FW/Inclusive-Multimodal-UX) | Specify equivalent cues, actions and state across modalities. Use structural semantics and test the supported input and output paths. |\n| Research coverage, prioritisation or functional access needs | [Accessibility Demographics](https://github.com/Double-FW/Accessibility_Demographics) | Select outcome-based participant segments and document coverage gaps. Keep population estimates separate from evidence about this service. |\n| AI influences a public-service outcome | [EU AI Act accessibility, disability rights and delivery](https://github.com/Double-FW/EU-AI-Act-accessibility-disability-rights-and-delivery) | Identify the system role, applicable duties, oversight and evidence owners. Escalate rights-impacting or unresolved decisions to the service owner. |\n| The service operates across jurisdictions | [Global accessibility regulatory requirements](https://github.com/Double-FW/Global_Accessiblity_Regulatory_Requirements) | Map jurisdictions, service scope and evidence obligations. Verify applicability and current rules against primary sources. |\n| European public-sector web or mobile services, procurement or monitoring | [EU Web Accessibility Directive and EN 301 549](https://github.com/Double-FW/EU-Web-Accessibility-Directive_EN301549) | Map obligations to the relevant technical tests, evidence and reporting duties. Confirm the applicable edition and local requirements. |\n| Charts, maps or complex graphics convey information | [Accessible charts, graphs and maps](https://github.com/Double-FW/Accessible_Charts_Graphs_and_Maps) | Determine the visual insight, then provide equivalent summaries, values and interactions. Validate that all representations use the same data and filter state. |\n| Type tokens, font fallbacks or brand typography | [Accessible typography for UX and brand systems](https://github.com/Double-FW/Accessible-Typography-for-UX-and-Brand-Systems) | Check character distinction, script coverage, fallback metrics, line length and user overrides before setting tokens. Test with service content at the smallest and largest supported sizes. |\n| Conversational routing, assistance or an automated service entry point | [Accessible chatbots](https://github.com/Double-FW/Accessible-Chatbots) | Apply conversation semantics, status announcements, interruption recovery and a usable handoff to a person. |\n| Long forms, interruption, confirmation or task recovery | [Cognitive UX design](https://github.com/Double-FW/Cognitive-UX-Design) | Reduce recall demands with plain instructions, visible progress, review and recoverable state. Evaluate whether returning users can resume confidently. |\n| Confirmations, invitations, recovery or notifications delivered by email | [Accessible email design](https://github.com/Double-FW/Accessible-Email-Design) | Specify meaningful subject, text and links, accessible reading order and equivalent instructions on the service. Test the handoff in supported email clients. |\n| Personal attributes, disability information, identifiers or training evidence | [Data ethics and disability](https://github.com/Double-FW/Data_Ethics_and_Disability) | Record purpose, minimisation, access and retention. Use synthetic data for fixtures and keep disclosures, raw identifiers and live user records out of training. |\n\n## Licence\n\nSee [LICENSE](LICENSE) for the MIT licence covering Double FW’s original contributions. Material adapted from the U.S. Web Design System documentation retains its [CC0 1.0 Universal public-domain dedication](https://github.com/uswds/uswds-site/blob/main/LICENSE.md).\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"README.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/README.md#L1-L78","source_start_line":1,"source_end_line":78,"source_document_sha256":"8042a8f3ea543c420232e24bd58d7937c16178e4d8e545fd4415ed2453caab01","text_sha256":"8042a8f3ea543c420232e24bd58d7937c16178e4d8e545fd4415ed2453caab01","heading_path":[],"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","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### 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
\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
\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
\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### Code examples\n\n``` html\n

Borderless

\n
\n

\n \n Check eligibility\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 Get your documents ready\n \n

\n
\n

\n Have your application reference and any supporting documents ready.\n

\n \n
\n

\n \n Send your application\n \n

\n
\n

\n Review the information you have entered before sending your application.\n

\n
\n

\n \n Track your progress\n \n

\n
\n

\n Use the reference number from your confirmation to check your progress.\n

\n
\n

\n \n Ask for help\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 Check eligibility\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 Get your documents ready\n \n

\n
\n

\n Have your application reference and any supporting documents ready.\n

\n \n
\n

\n \n Send your application\n \n

\n
\n

\n Review the information you have entered before sending your application.\n

\n
\n

\n \n Track your progress\n \n

\n
\n

\n Use the reference number from your confirmation to check your progress.\n

\n
\n

\n \n Ask for help\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 Check eligibility\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 Get your documents ready\n \n

\n
\n

\n Have your application reference and any supporting documents ready.\n

\n \n
\n

\n \n Send your application\n \n

\n
\n

\n Review the information you have entered before sending your application.\n

\n
\n

\n \n Track your progress\n \n

\n
\n

\n Use the reference number from your confirmation to check your progress.\n

\n
\n

\n \n Ask for help\n \n

\n
\n

\n Contact the service team if you need help completing your application.\n

\n
\n
\n```\n\n## 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 `\n \n\n```\n\n### Code examples\n\n``` html\n\n```\n\n### Guidance\n\n#### When to use the default button group\n\n- **Actions have a contextual relationship.** For example, the default button group can be used when a form has both a primary and alternative action.\n- **Stepping through linear content.** Buttons in a button group can be used for directional navigation and actions (e.g., “Back,” “Next,” “Continue,” “Skip,” “Cancel.”).\n\n#### When to consider something else\n\n- **If actions are not related.** Consider how placement and alternative structure of unrelated actions can improve usability over placing all actions in a group.\n- **When mixing destructive and non-destructive actions.** This can lead to input mistakes.\n- **Linking to content.** Buttons in button groups should not be used when text links would be simpler and more contextually appropriate. Grouped buttons such as “Next” and “Previous” are acceptable when content is organised sequentially.\n\n#### Usability guidance\n\n- **Avoid burden of choice.** Try not to present the user with too many options.\n\n#### Accessibility guidance\n\nTest the button group component in your own project.\n\nThe design system tested the button group component for accessibility. You should test your implementation, too.\n\n[Use button group accessibility tests](#accessibility-tests)\n\n- **Convey relationship.** If not using a list element, give the parent element `role=\"group\"` in order to convey to screen readers that actions are part of a group. If using as part of a toolbar, use `role=\"toolbar\"`.\n\n#### Using the default button group\n\n- Buttons inside of a button group follow the same guidelines as the [button component](button.md).\n- Button groups support any style and size.\n- Because the button group uses `flexbox`, there are several ways to modify how the default button group is displayed.\n - The default button group will display as a column on smaller screen sizes. To override this behaviour and display buttons in a row for all screen sizes, use the [flex-row](../utilities/flex.md#flex-direction) utility.\n - On smaller screens, the first button in the source order will appear at the top of column. You can change this behaviour using the order utility. The [order](../utilities/flex.md#order) utility includes [responsive advanced settings](../utilities/flex.md#advanced-settings) that allow it to target specific screen sizes.\n - Instead of each button appearing on the left-hand side on larger screens (or if you used flex-row), you can use [flex-justify](../utilities/flex.md#flex-justify) to justify the buttons\n\n### Package\n\n- **Package usage:** `@forward \"ds-button-group\";`\n- **Dependencies:** `ds-button`\n\n## Segmented button group\n\nSegmented button groups display a set of discrete buttons in a row as a single element.\n\n### Reference implementation\n\n``` html\n\n\n\n\n\n\n\n
\n \n
\n\n```\n\n### Code examples\n\n``` html\n\n\n\n\n\n\n\n
\n \n
\n\n```\n\n### Guidance\n\n#### When to use the segmented button group\n\n- **Categorically related controls.** For example, segmented buttons can be used as a switch between different views.\n\n#### When to consider something else\n\n- **No clear relationship.** Consider how placement and alternative structure of unrelated controls can improve usability over placing all actions in a group.\n- **If there are more than three buttons.** Be mindful of how a long list of buttons might appear on small screens. An alternative type of control might be more suitable.\n\n#### Usability guidance\n\n- **Avoid ambiguity of current state.** Make sure current states are clearly communicated and understood.\n\n#### Accessibility guidance\n\nTest the button group component in your own project.\n\nThe design system tested the button group component for accessibility. You should test your implementation, too.\n\n[Use button group accessibility tests](#accessibility-tests)\n\n- **Convey relationship.** If not using a list element, give the parent element `role=\"group\"` in order to convey to screen readers that actions are part of a group. If using as part of a toolbar, use `role=\"toolbar\"`.\n- **Use `aria-label` to give the buttons a useful name.** Some contexts may require additional context provided to screen readers.\n- **Use the `\n\n\n\n\n\n\n

Secondary colour

\n\n\n\n\n\n\n\n

Accent cool colour

\n\n\n\n\n\n\n\n

Accent warm colour

\n\n\n\n\n\n\n\n

Base colour

\n\n\n\n\n\n\n\n

Outline

\n\n\n\n\n\n\n\n

Outline inverse

\n
\n \n \n \n \n \n \n \n
\n

Big button

\n\n\n\n\n```\n\n### Code examples\n\n``` html\n

Default

\n\n\n\n\n\n\n\n\n

Secondary colour

\n\n\n Hover\n\n\n Active\n\n\n\n Disabled\n\n\n aria-disabled\n\n\n Unstyled button\n\n\n

Accent cool colour

\n\n\n Hover\n\n\n Active\n\n\n\n Disabled\n\n\n aria-disabled\n\n\n Unstyled button\n\n\n

Accent warm colour

\n\n\n Hover\n\n\n Active\n\n\n\n Disabled\n\n\n aria-disabled\n\n\n Unstyled button\n\n\n

Base colour

\n\n\n\n\n\n\n\n\n

Outline

\n\n\n\n\n\n Disabled\n\n\n aria-disabled\n\n\n Unstyled button\n\n\n

Outline inverse

\n
\n \n Default\n \n \n Hover\n \n \n Active\n \n \n Focus\n \n \n Disabled\n \n \n aria-disabled\n \n \n Unstyled button\n \n
\n\n

Big button

\n\n\n\n\n```\n\n## Guidance\n\n### When to use the button component\n\n- **Important actions.** Use buttons for the most important actions you want users to take on your site, such as `Download`, `Sign up` or `Log out`.\n\n### When to consider something else\n\n- **Linking between a site’s pages.** Use regular links instead.\n- **If the action is less popular or less important.** Less popular or less important actions may be visually styled as links.\n\n### Usability guidance\n\n- **Use standard buttons for actions that go a next step.**\n- **Use outline buttons for actions that happen on the current page.**\n- **Give an important action a distinctive style.** Style the button most users should select in a way that distinguishes it from other buttons on the page. Try using the `ds-button--big` variant or the most visually distinct colour variant.\n- **Make sure buttons look selectable.** Use colour variations to distinguish static, hover, and active states.\n- **Avoid using too many buttons on a page.**\n- **Use sentence-case capitalisation for button labels.**\n- **Keep button text short.** Button text should be as short as possible with action words that clearly explain what will happen when the button is selected (for example, `Download`, `View`, or `Sign up`).\n- **Lead with a verb.** Make the first word of the button’s text a verb. For example, instead of `Complaint filing`, label the button `File a complaint`.\n- **Icons can be helpful.** Consider adding an icon to signal specific actions (`Download`, `Open in a new window`, etc).\n\n### Accessibility guidance\n\nTest the button component in your own project.\n\nThe design system tested the button component for accessibility. You should test your implementation, too.\n\n[Use button accessibility tests](#accessibility-tests)\n\n- **Buttons should display a visible focus state when users tab to them.**\n- **Use standard markup.** Avoid using `
` or `` tags to create buttons. Screen readers don’t automatically know either is a usable button.\n- **Screen readers handle buttons and links differently.** When styling links to look like buttons, remember that screen readers handle links slightly differently than they do buttons. Pressing the Space key triggers a button, but pressing the Enter key triggers a link.\n- `PSDS-REQ-0004` **Keep unavailable actions understandable.** Explain why an action is unavailable and how to make it available. A native `disabled` button is removed from the tab order. An `aria-disabled=\"true\"` button stays in the tab order, but your application must prevent activation by mouse, keyboard, and other input methods.\n\n### Using the button component\n\n- **Always set the type attribute.** Define the purpose and behaviour of a button with the `type` attribute. The `type` attribute can accept three values: `submit`, `button`, and `reset`. If no type attribute is defined, the button will behave as a `submit` button.\n- **Use the `disabled` or `aria-disabled` attributes to turn on disabled button styles.**\n- **Add button styles to links.** To use a button style on a link, add the `ds-button` class to your link. Add an additional button variant class to access variant styles.\n- **Disabled styles do not replace disabled behaviour.** The native `disabled` attribute prevents activation of a `\n \n
\n \n \n \n \n \n\n

Medium footer

\n\n

Slim footer

\n\n```\n\n### Code examples\n\n``` html\n

Big footer

\n\n\n\n

Medium footer

\n\n\n\n

Slim footer

\n\n\n```\n\n## Guidance\n\n### When to use the footer component\n\n- **Big footer:** Use the big footer when you want to replicate your site’s navigation scheme in the footer and offer newsletter signups.\n- **Medium footer:** Use the medium footer when you want to offer only a few footer links (for disclaimers, terms of service, etc.), social media icons, and contact information.\n- **Slim footer:** Use the slim footer when you only want to offer a few footer links and nothing else.\n\n### When to consider something else\n\n- **Medium and slim footers:** Use the big footer when your footer has more than five links.\n\n### Usability guidance\n\n- **Curate your footer.** Footer links should point to popular content that might answer a visitor’s remaining questions. Links to disclaimers and legal content sometimes need to be in the footer, but try to minimise “disclaimer bloat” wherever possible.\n- **The footer doesn’t need to mirror the header.** Link grouping in the footer does not have to mirror link grouping in top level header navigation (especially if the navigation offers many more links than the footer can).\n- **Include newsletter signup.** Include the newsletter signup if one of your website’s goals is getting visitors to sign up for a newsletter.\n- **Avoid stale social media accounts.** Link only to social media your service provider updates frequently or uses to communicate with customers.\n- **Limit contact information to email and phone.** Important contact information should be limited to general email or phone numbers, which should be clickable links to dial from a mobile phone. Physical addresses should live on contact pages users can navigate to from the accordion links.\n\n### Accessibility guidance\n\nTest the footer component in your own project.\n\nThe design system tested the footer component for accessibility. You should test your implementation, too.\n\n[Use footer accessibility tests](#accessibility-tests)\n\n- **Use tab focus.** Code the navigation so that pressing the tab key moves focus from link to link in the navigation, even when the navigation has collapsed into an accordion.\n- **Use accessible accordions.** On small screens: when collapsed into an accordion, the navigation should also meet the accessibility requirements outlined in the “Accordion” section.\n\n### Using the footer component\n\n#### Footer settings\n\n| Variable | Description |\n|-------------------------------|------------------------------------|\n| ` $theme-footer-font-family ` | Font family of the footer. |\n| ` $theme-footer-max-width ` | Maximum width of footer container. |\n\n#### Footer variants\n\n| Variant | Description |\n|--------------------|-------------------------------------------------------------|\n| `.ds-footer--big` | A multi-column footer that expands and collapses on mobile. |\n| `.ds-footer--slim` | A compact version of the footer. |\n\n## Package\n\n- **Package usage:** `@forward \"ds-footer\";`\n- **Dependencies:** `service-design-system-fonts`, `ds-layout-grid`, `ds-input`, `ds-form`, `ds-label`, `ds-list`, `ds-button`, `ds-icon`\n\n## Component semantics contract\n\nVersion 1.0 for web services. **Task:** Find help at the end of the page. Source: PSDS-DOC-0022 at `ab8621e2e9326e5ca323046429fa7aa69f5dbf0a`.\n\nUse the page footer landmark with named link groups. In a collapsible footer, use labelled disclosure buttons.\n\n| Trigger | Expected experience | Verification |\n|---|---|---|\n| Navigate to the footer | Contact and support links have meaningful names in reading order. | Exercise this scenario in the host service and compare the observed result. |\n| Expand a collapsed group | Expose the group links in place, update expanded state and keep focus on the opener. | Repeat the journey through this state and record any difference. |\n\nUse these component checks alongside the two scenarios:\n\n- [PSDS-TEST-0209](#psds-test-0209) — Screen reader focus follows logical content order.\n- [PSDS-TEST-0210](#psds-test-0210) — In the big footer variant, the screen reader announces the button role.\n\nRecord the chosen variant, local decisions and build evidence using the [contract template](../templates/component-semantics-contract.md#copy-into-the-service-specification).\n\n## Accessibility tests\n\nRun these checks on a representative page using the component. Include each supported variant and record the observed result and test environment.\n\n### General tests\n\n- `PSDS-TEST-0196` `PSDS-REQ-0222` **In the big footer variant, the email input field announces its purpose.** When you navigate to the email address input field in the big footer variant, you hear that the input expects the user’s email address. Additionally, the input field has the `autocomplete=\"email\"` attribute.\n\n WCAG [1.3.5 Identify input purpose](https://www.w3.org/TR/WCAG21/#identify-input-purpose)\n\n- `PSDS-TEST-0197` `PSDS-REQ-0223` **Footer font meets colour contrast requirements.** When you use a colour contrast checker to view the footer, contrast between the font colour and background colour is at least 4.5:1.\n\n WCAG [1.4.3 Contrast (Minimum)](https://www.w3.org/TR/WCAG21/#contrast-minimum)\n\n- `PSDS-TEST-0198` `PSDS-REQ-0224` **Footer icons meet colour contrast requirements.** When you use a colour contrast checker to view the footer, contrast between the icons and adjacent colours is at least 3:1.\n\n WCAG [1.4.11 Non-text contrast](https://www.w3.org/TR/WCAG21/#non-text-contrast)\n\n- `PSDS-TEST-0199` `PSDS-REQ-0225` **Links provide direct location description.** You can read the text of any link in the footer to understand where the link will take you.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [2.4.4 Link purpose (in context)](https://www.w3.org/TR/WCAG21/#link-purpose-in-context)\n\n- `PSDS-TEST-0200` `PSDS-REQ-0226` **Form field instructions are visible in the big footer variant.** When viewing a form field in the big footer, instructions for entering text are visible.\n\n WCAG [3.3.2 Labels or instructions](https://www.w3.org/TR/WCAG21/#labels-or-instructions)\n\n### Zoom magnification tests\n\n#### How to test with zoom magnification\n\n1. Navigate to a page on your website where the footer component is used.\n2. Enlarge the view of your screen to 200%.\n3. Once zoomed, use a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nUse one of the following methods to control screen magnification in your browser:\n\n1. **Windows OS**: Click `ctrl` while using the scroll wheel on your mouse until you see \"200%\" appear in the top right of your screen. Or, click `ctrl` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `ctrl` + `0`.)\n2. **Mac OS**: Click `command` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `command` + `0`.)\n3. **Browser settings**: Customise your browser settings to display pages at 200%.\n\n- `PSDS-TEST-0201` `PSDS-REQ-0227` **Footer remains visible and functional when screen is magnified.** When you zoom in to 200%, you can still see footer text and it doesn’t overlap with or get cut off by any other content.\n\n WCAG [1.4.4 Resize text](https://www.w3.org/TR/WCAG21/#resize-text)\n\n- `PSDS-TEST-0202` `PSDS-REQ-0228` **Footer elements are visible and functional when screen is magnified.** When you zoom in to 400%, footer links and elements are stacked and visible. No left-to-right scrolling is required.\n\n WCAG [1.4.10 Reflow](https://www.w3.org/TR/WCAG21/#reflow)\n\n### Keyboard navigation tests\n\n#### How to test with keyboard navigation\n\n1. Navigate to a page on your website where the footer component is used.\n2. Using only your keyboard, press `tab` to navigate forward or `shift` + `tab` to navigate backwards until focus is on the footer.\n3. Use the testing checklist to make sure all functionality works with keyboard navigation.\n\n------------------------------------------------------------------------\n\nFor instruction for using keyboard navigation, use this resource from WebAIM.\n\n- `PSDS-TEST-0203` `PSDS-REQ-0229` **Keyboard navigates through all elements in the footer.** When you navigate through the footer with a keyboard, you can interact with every element inside the footer.\n\n WCAG [2.1.1 Keyboard](https://www.w3.org/TR/WCAG21/#keyboard)\n\n- `PSDS-TEST-0204` `PSDS-REQ-0230` **Footer does not trap keyboard focus.** When you navigate with a keyboard, you can easily move into and out of the footer.\n\n WCAG [2.1.2 No keyboard trap](https://www.w3.org/TR/WCAG21/#no-keyboard-trap)\n\n- `PSDS-TEST-0205` `PSDS-REQ-0231` **Focus indicator is clearly visible.** When you use a keyboard to focus on footer elements, there will be a visible outline or other clear indication of focus.\n\n WCAG [2.4.7 Focus visible](https://www.w3.org/TR/WCAG21/#focus-visible)\n\n### Screen reader tests\n\n#### How to test with screen readers\n\n1. Navigate to a page on your website where the footer component is used.\n2. Open a dedicated screen reading app or your operating system screen reader.\n3. Test with both a keyboard and a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nInstructions for setting up the screen reader on your operating system:\n\n1. Voiceover for Mac: Getting started guide\n2. Narrator for Windows: Complete guide to Narrator\n\n- `PSDS-TEST-0206` `PSDS-REQ-0232` **Screen reader announces image alt text.** When you navigate through the footer using a screen reader, you hear descriptions for the logos and other meaningful images.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.1.1 Non-text content](https://www.w3.org/TR/WCAG21/#non-text-content)\n\n- `PSDS-TEST-0207` `PSDS-REQ-0233` **Screen reader announces footer navigation and region.** When using a screen reader to navigate the footer, you hear “footer navigation” when focusing on the link list and “footer” when focusing on the outer region of the component.\n\n WCAG [1.3.1 Info and relationships](https://www.w3.org/TR/WCAG21/#info-and-relationships)\n\n- `PSDS-TEST-0208` `PSDS-REQ-0234` **In the big footer variant, screen reader announces cue to enter email.** When using a screen reader to access the sign up form field in the big footer, you hear a prompt to enter your email address.\n\n WCAG [1.3.1 Info and relationships](https://www.w3.org/TR/WCAG21/#info-and-relationships)\n\n- `PSDS-TEST-0209` `PSDS-REQ-0235` **Screen reader focus follows logical content order.** When you navigate through the footer with a screen reader, you hear the content announced in the same order that it appears on the page.\n\n WCAG [1.3.2 Meaningful sequence](https://www.w3.org/TR/WCAG21/#meaningful-sequence)\n\n- `PSDS-TEST-0210` `PSDS-REQ-0236` **In the big footer variant, the screen reader announces the button role.** When using a screen reader in the footer to access a sign up form, the button label announces as “button”.\n\n WCAG [4.1.2 Name, role, value](https://www.w3.org/TR/WCAG21/#name-role-value)\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/footer.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/footer.md#L1-L869","source_start_line":1,"source_end_line":869,"source_document_sha256":"df64f35f9c17ddb3a1fdd93e5ac1512dedf200f4f4ffc41995ad81eaaac62b8e","text_sha256":"df64f35f9c17ddb3a1fdd93e5ac1512dedf200f4f4ffc41995ad81eaaac62b8e","heading_path":[],"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-0023","document_id":"PSDS-DOC-0023","title":"Form","text":"# Form\n\nDocument ID: `PSDS-DOC-0023`\n\nA form allows users to enter information into a page.\n\n**Note:** If you are a building a form with multiple controls, also consider the accessibility guidelines on the “Form Templates” page.\n\n## Accessibility guidance\n\n- **Don’t control element order with CSS.** Display form controls in the same order in the HTML as they appear on screen. Don’t use CSS to rearrange the form controls. Screen readers narrate form elements in the order they appear in the HTML.\n- **Align validation with inputs.** Visually align validation messages with the input fields so people using screen magnifiers can read them quickly.\n- **Use proper markup.** Group each set of thematically related controls in a fieldset element. Use the legend element to offer a label within each one. The fieldset and legend elements make it easier for those who use screen readers to navigate the form.\n- **Use legends.** Use a single legend for fieldset (this is required). One common use of the fieldset and legend elements is a question with radio-button options for answers. The question text and radio buttons are wrapped in a fieldset, with the question itself being inside the legend tag.\n- **Embed multiple fieldsets and legends for more complex forms.**\n- **Use simple vertical layouts.** Keep your form blocks in a vertical pattern. This approach is ideal, from an accessibility standpoint, because of limited vision that makes it hard to scan from right to left.\n\n## Disabled states for components in forms\n\n- **Avoid disabled states, especially for text inputs.** Disabled states have low colour contrast, do not offer meaningful feedback to screen reader users, and keyboard navigators can’t focus on them. These states can also be generally confusing to users. Instead, keep form elements enabled. Offer contextual helper text, tooltips, [helpful error messages](https://www.w3.org/WAI/WCAG22/Understanding/error-suggestion.html) and inline validation to help people correct mistakes and move through the form.\n\n- **If you *must* use disabled states, follow best practices.** Some disabled states can prevent errors by telling users that a system is loading or processing (for example, to prevent multiple form submissions). In specific cases, such as an unavailable date in appointment scheduling, a disabled state may be helpful to show users that an option exists but is currently unavailable.\n\n When using disabled states, be very clear:\n\n - Explain why an element is disabled, using helper text or tooltips\n - Use inline validation to minimise errors in real time\n - Support screen reader users and keyboard navigators by using aria-disabled=true instead of the disabled attribute to indicate the presence of a disabled element\n - Use JavaScript to programmatically disable the element to prevent clicks\n\n For more detail, you can read the design system’s 2023 literature review on disabled states.\n\n## Identifying required fields\n\n- **Show whether a field is required or optional.** Mark required fields as required by using a red asterisk (\\*).\n- **Use text descriptions.** Combine red asterisks (\\*) with a text description at the top of the form instructing the user of its meaning.\n *Example:* “A red asterisk (\\*) indicates a required field.”\n- `PSDS-REQ-0008` **Use the `required` attribute.** Add the `required` attribute to your form elements to indicate that a field must be filled out before submitting the form.\n- **Mark optional fields as \"optional.\"** Label optional fields with the word “optional” placed in parentheses.\n *Example:* (optional)\n- **Let users know if there is an error.** Use a message or [alert](alert.md) to notify the user if a field that is required was not completed, and indicate which field was not completed. Additionally, include an error notification in the page title (`title` element) for screen readers.\n- ***Note:** One-field forms are the exception and do not need to be marked with a required label or symbol.*\n\n### Form settings\n\n| Variable | Description |\n|-----------------------------|--------------------------|\n| ` $theme-form-font-family ` | Font family of the form. |\n\n## Design and governance extensions\n\n- Reduce recall demands with plain instructions, visible progress, review and recoverable state. Evaluate whether returning users can resume confidently. [Cognitive UX design](https://github.com/Double-FW/Cognitive-UX-Design)\n\n## Component semantics contract\n\nVersion 1.0 for web services. **Task:** Submit a service application. Source: PSDS-DOC-0023 at `ab8621e2e9326e5ca323046429fa7aa69f5dbf0a`.\n\nUse labelled fields, legends for related questions and a named submit action. Associate help and errors with the relevant fields.\n\n| Trigger | Expected experience | Verification |\n|---|---|---|\n| Submit incomplete answers | Retain valid input and lead the person to an error summary or affected field. | Exercise this scenario in the host service and compare the observed result. |\n| Correct and resubmit | Clear resolved errors and present confirmation when submission succeeds. | Repeat the journey through this state and record any difference. |\n\nUse these component checks alongside the two scenarios:\n\n- [PSDS-TEST-0212](#psds-test-0212) — Complete the form using only a keyboard and restore it after a validation error. Logical focus order and previously entered valid values remain available.\n- [PSDS-TEST-0213](#psds-test-0213) — Verify labels, hint text and required states with a screen reader, including any control groups.\n\nRecord the chosen variant, local decisions and build evidence using the [contract template](../templates/component-semantics-contract.md#copy-into-the-service-specification).\n\n## Accessibility tests\n\nThese are suggested checks for the integrated design.\n\n1. `PSDS-TEST-0211` Submit the form empty and with two invalid fields. A visible summary links to each field and the individual messages are associated with the inputs.\n2. `PSDS-TEST-0212` Complete the form using only a keyboard and restore it after a validation error. Logical focus order and previously entered valid values remain available.\n3. `PSDS-TEST-0213` Verify labels, hint text and required states with a screen reader, including any control groups.\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/form.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/form.md#L1-L78","source_start_line":1,"source_end_line":78,"source_document_sha256":"85f9832f8fbf2544d5ec79eef2612d2630cfb21e9cba74595f1af31d3c7c28b2","text_sha256":"85f9832f8fbf2544d5ec79eef2612d2630cfb21e9cba74595f1af31d3c7c28b2","heading_path":[],"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-0024","document_id":"PSDS-DOC-0024","title":"Header","text":"# Header\n\nDocument ID: `PSDS-DOC-0024`\n\nA header helps users identify where they are and provides a quick, organised way to reach the main sections of a website.\n\n## When to use a header component\n\n- **Most websites require header navigation.** Most websites require some form of navigation to help users find the information they need. While a horizontal navigation bar is just one option for navigation design, it is one of the most visible and familiar ways of helping users navigate a site.\n\n## Header usability\n\n- **List all important website sections as links in the horizontal navigation.**\n- **Dropdown menus help preview lower-level content.** For large websites, use dropdown menus to help users preview lower-level content. If lower-level sections are closely related and users will need to quickly jump between them, consider using a side navigation instead of — or in addition to — a dropdown.\n- **Use short, clear link labels.** Don’t use jargon or unfamiliar terms.\n- **Left-justify.** Left-justified link labels are more easily scannable.\n- **Present links in priority order.** Higher-demand links should appear farther to the left, and lower-demand links should appear farther to the right.\n- **Avoid org-structure navigation.** Don’t model your navigation after your service provider’s org structure. Instead, structure it according to the tasks and information your users most frequently need to access.\n- **Highlight the current section.** Show users where they are within the site by highlighting the current section.\n- **Always research your navigation.** Conduct research with your users, and base decisions about your site’s information architecture and navigation structure on your findings. Continue researching to confirm that updates meet your users’ needs.\n\n## Header accessibility\n\nTest the header component in your own project.\n\nThe design system tested the header component for accessibility. You should test your implementation, too.\n\n[Use header accessibility tests](#accessibility-tests)\n\n- **Add a skip navigation link before the header.** Include skip navigation links to allow those using screen readers to bypass long navigation lists. Make sure you include an `id` at the beginning of your main content and that it matches the skip navigation link. Find more information on skip navigation links at WebAIM.\n- **Ensure your horizontal navigation is keyboard compatible.** Test to make sure users can use `Tab` to navigate and `Space` (or `Enter`) to open pages.\n- **Include tab focus for all top-level navigation navigation items.** This feature will allow keyboard-reliant users to easily navigate interactive items.\n- **Avoid using hover to expand dropdown lists.** Hover is difficult for some users and won't work on touch screens. Dropdowns should expand on click or with keyboard navigation.\n- **Add context by labelling your nav element.** If your page has more than one `nav` element, use the `aria-label` attribute to help assistive technology users understand the purpose of the navigation.\n- **Use list elements for your navigation links.** This helps screen reader users navigate header content.\n- **Add alt text to your logo image.** If you’re using a logo that’s an image rather than text, make sure you include alternative text for screen readers.\n- **Don't use an H1 for your logo.** If you’re using a logo that’s text, use an `em`, not an `h1`, unless it’s the homepage. Find more information here: http://csswizardry.com/2010/10/your-logo-is-an-image-not-a-h1/.\n\n## Implementation\n\n### Header settings\n\n| Variable | Description |\n|-----------------------------------|-----------------------------------------------------------------------------------------|\n| ` $theme-header-font-family ` | Font family of the header. |\n| ` $theme-header-logo-text-width ` | Width of the logo text area at desktop width as a percentage of the total header width. |\n| ` $theme-header-max-width ` | Maximum width of the header. |\n| ` $theme-header-min-width ` | Breakpoint at which the non-mobile header is shown. |\n\n### Header variants\n\n| Variant | Description |\n|------------------------|-----------------------------|\n| `.ds-header--basic` | Display a simple header. |\n| `.ds-header--megamenu` | Display a megamenu. |\n| `.ds-header--extended` | Display an extended header. |\n\n**Note:** We recommend loading `service-design-system-init.js` when using banner, header, or modal components to assist in preventing flashes of unstyled content (FOUC) as well as cumulative layout shift (CLS). This small JavaScript file (less than 1 KB minified) helps the browser know if the design system JavaScript library is loading properly.\n\nTo add `service-design-system-init` to your site, simply copy `service-design-system-init.js` into your site assets from either the `service-design-system-core/src/js` package or the `dist/js` directory in the downloadable package. Then, reference the file in the `` of your HTML files. Alternatively, you can inline its contents directly into a `\n```\n\n## Guidance\n\n### When to use the icon component\n\n- **Draw attention to actions.** Icons, when paired with text, grab attention and show actions to take. Make sure each icon directly relates to any text it accompanies.\n- **Help readers find key information.** Use icons as scannable, easy-to-understand visual cues for key information, like a phone number or email address.\n- **Enhance an actionable target.** Icons make great touch or click targets. Use an icon for common actions, like opening a menu or sharing an article.\n\n### When to consider something else\n\n- **Meaning is ambiguous.** Use icons only in a common or conventional way. Icon utility hinges on people quickly recognising what each icon means. If you suspect that an icon’s intent isn’t perfectly clear, consider removing it or adding accompanying text.\n- **Compensating for page structure.** Don’t rely on an icon to help draw attention to something important that’s otherwise hard to find. Icons don’t fix unclear page hierarchy or confusing content organisation.\n- **You need illustrative artwork.** Icons have a specific, functional meaning. Avoid using icons for illustrative purposes. For example, don’t use the “visibility” eye icon () to illustrate an actual eye. If you want to enhance the appearance of your content or visually explain a concept, use an illustration instead of an icon.\n\n### Usability guidance\n\n- **Combine icons with text.** Only a few icons are consistently understood across the digital-using public of the world, among them home (), print (), and search (). Combine icons with text to improve clarity, and test your icons for recognition and memorability with your particular audience.\n- `PSDS-REQ-0010` **Be consistent with icon meaning.** Icons used more than once in an application or site must be used to represent the same thing, and have the same text description in every instance. For example, if an icon of a blank piece of paper means “new document” on most screens, choose a different icon to communicate “reformat document.” Consistency helps people with some cognitive disabilities, helps people who might be distracted or scanning, and creates a better user experience for all.\n- **Combine interactive icons with other components.** If the icon is part of an interactive element, it should be implemented within another functional component. For example, make an icon part of a button or list.\n\n### Accessibility guidance\n\nTest the icon component in your own project.\n\nThe design system tested the icon component for accessibility. You should test your implementation, too.\n\n[Use icon accessibility tests](#accessibility-tests)\n\n- **Hide decorative icons from screen readers.** Icons are decorative if they don’t provide meaningful information to the user. Usually, decorative icons are accompanied by text. Announcing a decorative icon is redundant and can be annoying. Use the `aria-hidden=\"true\"` and `role=\"img\"`, as in the following code:\n\n ``` html\n \n \n \n \n service-design-system' Social channel two account\n \n ```\n\n- **Provide descriptive text if a standalone icon has meaning or provides functionality.** If an icon provides information or functionality that people cannot understand from accompanying text, you need to make the icon perceivable to people who use screen readers. Remove the `aria-hidden=\"true\"` attribute and add an `aria-labelledby` attribute with a value that matches the `id` of a `` element added inside the SVG, as in the following code:\n\n ``` html\n <a href=\"/example\">\n <svg aria-labelledby=\"social-channel-two-title\" role=\"img\">\n <title id=\"social-channel-two-title\">service-design-system' Social channel two account\n \n \n \n ```\n\n- **Check for good colour contrast.** Make sure that the icon has a minimum contrast ratio of 3:1 against its background. See the design system colour and accessibility page as well as [WCAG 2.1 Techniques: Ensuring that a contrast ratio of 3:1 is provided for icons](https://www.w3.org/WAI/WCAG21/Techniques/general/G207.html) for more information.\n\n- **Place icons inside links.** If icons accompany a text link, place the icon inside the link to prevent screen readers from announcing the link twice.\n\n### Using the icon component\n\n- **Check the licence for your icon set.** The examples reference icons supplied by the host service. If you use Google Material Icons from USWDS, Apache 2.0 permits modification and redistribution. When redistributing them, include the licence, retain the applicable notices and mark any files you changed. If you choose another icon set, follow its licence terms. See the [USWDS licence and attribution details](https://github.com/uswds/uswds/blob/develop/LICENSE.md) and the [Apache 2.0 redistribution terms](https://www.apache.org/licenses/LICENSE-2.0#redistribution).\n- **Active icons are found in `dist/img/ds-icons`.** The icons in this directory will be packaged into an SVG sprite. The complete set of available icons are located in two directories: `dist/img/material-icons` and `dist/img/service-design-system-icons`. Copy icons into a `ds-icons` directory within your project images directory, and rebuild the SVG sprite using the design system-compile.\n- **Using colour in icons.** Icons use `currentColor`, so the colour of the icon will be the text colour of its parent element. Change colours with the [colour utility](../utilities/colour.md).\n- **Relative to font size.** By default, icons will scale with font size. If you want to specify an icon size, use one of the component’s size variants.\n- **Icon names are identifiers.** To use an icon, simply change the identifier after the pound sign in the sprite path to that icon’s name. For example, to use the `accessibility_new` icon, the path will be ``, or to use the `info` icon, the path will be ``.\n\n#### Icon settings\n\n*This component has no settings.*\n\n#### Icon variants\n\n| Variant | Description |\n|--------------------|---------------------------|\n| `.ds-icon--size-3` | `3 unit` x `3 unit` icon. |\n| `.ds-icon--size-4` | `4 unit` x `4 unit` icon. |\n| `.ds-icon--size-5` | `5 unit` x `5 unit` icon. |\n| `.ds-icon--size-6` | `6 unit` x `6 unit` icon. |\n| `.ds-icon--size-7` | `7 unit` x `7 unit` icon. |\n| `.ds-icon--size-8` | `8 unit` x `8 unit` icon. |\n| `.ds-icon--size-9` | `9 unit` x `9 unit` icon. |\n\n## Package\n\n- **Package usage:** `@forward \"ds-icon\";`\n- **Dependencies:** `service-design-system-core`\n\n## Open-source icon sets\n\nChoose a set that covers the actions, status indicators and navigation cues used by the host. Review individual asset licence terms before redistributing files. These links identify optional dependencies.\n\n- [Tabler Icons](https://github.com/tabler/tabler-icons)\n- [Lucide](https://github.com/lucide-icons/lucide)\n- [Phosphor Icons](https://github.com/phosphor-icons/core)\n\nUse an accompanying text label for controls when space permits. Mark a redundant SVG as decorative with aria-hidden=\"true\". Give an icon-only control its accessible name on the button or link.\n\n## Component semantics contract\n\nVersion 1.0 for web services. **Task:** Recognise an action represented by an icon. Source: PSDS-DOC-0026 at `ab8621e2e9326e5ca323046429fa7aa69f5dbf0a`.\n\nA decorative icon is hidden from assistive technology. An icon-only action uses a native control named for the action.\n\n| Trigger | Expected experience | Verification |\n|---|---|---|\n| Navigate to an icon-only control | Its role and purpose are available without interpreting its shape. | Exercise this scenario in the host service and compare the observed result. |\n| Activate the control | The named action runs through keyboard, pointer or touch and feedback identifies its result. | Repeat the journey through this state and record any difference. |\n\nUse these component checks alongside the two scenarios:\n\n- [PSDS-TEST-0250](#psds-test-0250) — Focus indicators are clearly visible on interactive icons.\n- [PSDS-TEST-0251](#psds-test-0251) — Icons provide a text alternative for screen readers when needed.\n\nRecord the chosen variant, local decisions and build evidence using the [contract template](../templates/component-semantics-contract.md#copy-into-the-service-specification).\n\n## Accessibility tests\n\nRun these checks on a representative page using the component. Include each supported variant and record the observed result and test environment.\n\n### General tests\n\n- `PSDS-TEST-0247` `PSDS-REQ-0270` **Colour is not the only method used to convey icon information.** When you view an icon paired with text, the text, and never colour alone, conveys the icon’s meaning.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.4.1 Use of colour](https://www.w3.org/TR/WCAG21/#use-of-color)\n\n- `PSDS-TEST-0248` `PSDS-REQ-0271` **Icons meet colour contrast requirements.** When you view the icon on a page and use ANDI or a colour contrast analyzer to look at the hex colours, contrast between the icon and background is at least 3:1.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.4.11 Non-text contrast](https://www.w3.org/TR/WCAG21/#non-text-contrast)\n\n- `PSDS-TEST-0249` `PSDS-REQ-0272` **Each icon has a consistent meaning across pages.** When you use a screen reader or view the page, the icon’s meaning, and the way it is announced, are the same across all pages.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [3.2.4 Consistent identification](https://www.w3.org/TR/WCAG21/#consistent-identification)\n\n### Keyboard navigation tests\n\n#### How to test with keyboard navigation\n\n1. Navigate to a page on your website where the icon component is used.\n2. Using only your keyboard, press `tab` to navigate forward or `shift` + `tab` to navigate backwards until focus is on the icon.\n3. Use the testing checklist to make sure all functionality works with keyboard navigation.\n\n------------------------------------------------------------------------\n\nFor instruction for using keyboard navigation, use this resource from WebAIM.\n\n- `PSDS-TEST-0250` `PSDS-REQ-0273` **Focus indicators are clearly visible on interactive icons.** When you use a keyboard to tab into an interactive icon, you see an indicator around the icon.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [2.4.7 Focus visible](https://www.w3.org/TR/WCAG21/#focus-visible)\n\n### Screen reader tests\n\n#### How to test with screen readers\n\n1. Navigate to a page on your website where the icon component is used.\n2. Open a dedicated screen reading app or your operating system screen reader.\n3. Test with both a keyboard and a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nInstructions for setting up the screen reader on your operating system:\n\n1. Voiceover for Mac: Getting started guide\n2. Narrator for Windows: Complete guide to Narrator\n\n- `PSDS-TEST-0251` `PSDS-REQ-0274` **Icons provide a text alternative for screen readers when needed.** When you use a screen reader and navigate to a non-decorative icon, you hear an appropriate description of the icon. If the icon is purely decorative, you should not hear a description.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.1.1 Non-text content](https://www.w3.org/TR/WCAG21/#non-text-content)\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/icon.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/icon.md#L1-L11436","source_start_line":1,"source_end_line":11436,"source_document_sha256":"dff7fbacd89ce477184bd016ee68a6a5c0ffafd7ddc80839135a44e8281de402","text_sha256":"dff7fbacd89ce477184bd016ee68a6a5c0ffafd7ddc80839135a44e8281de402","heading_path":[],"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-0027","document_id":"PSDS-DOC-0027","title":"Identifier","text":"# Identifier\n\nDocument ID: `PSDS-DOC-0027`\n\nThe identifier communicates a site’s parent service provider and displays service provider links required by public service laws and policies.\n\n## About the identifier component\n\n**Note:** Identifier is a core component along with the [banner](banner.md) component. We recommend using both core components on most sites. Together, they are the most recognisable and standardised design elements of a public service site.\n\n### 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

Default

\n
\n
\n
\n
\n \"<Parent\n
\n
\n

service.example.org

\n

\n An official website of the\n <Parent service provider>\n

\n
\n
\n
\n \n
\n
\n
\n Looking for service provider information and services?\n
\n Visit the service team\n
\n
\n
\n

Default (Spanish)

\n
\n
\n
\n
\n \"<Parent\n
\n
\n

service.example.org

\n

\n Un sitio web oficial de <Parent service provider>\n

\n
\n
\n
\n \n
\n
\n
\n ¿Necesita información y servicios del servicio?\n
\n Visite el directorio del servicio en español\n
\n
\n
\n

Multiple parents and logos

\n
\n
\n
\n
\n \"<Parent \"<Other\n
\n
\n

service.example.org

\n

\n An official website of the\n <Parent service provider> and the\n <Other service provider>\n

\n
\n
\n
\n \n
\n
\n
\n Looking for service provider information and services?\n
\n Visit the service team\n
\n
\n
\n

Multiple parents and logos (Spanish)

\n
\n
\n
\n
\n \"<Parent \"<Other\n
\n
\n

service.example.org

\n

\n Un sitio web oficial de <Parent service provider> y\n <Other service provider>\n

\n
\n
\n
\n \n
\n
\n
\n ¿Necesita información y servicios del servicio?\n
\n Visite el directorio del servicio en español\n
\n
\n
\n

No logos

\n
\n
\n
\n
\n

service.example.org

\n

\n An official website of the\n <Parent service provider>\n

\n
\n
\n
\n \n
\n
\n
\n Looking for service provider information and services?\n
\n Visit the service team\n
\n
\n
\n

Service funding statement

\n
\n
\n
\n
\n \"<Parent\n
\n
\n

service.example.org

\n

\n An official website of the\n <Parent service provider> . Produced and published at\n taxpayer expense.\n

\n
\n
\n
\n \n
\n
\n
\n Looking for service provider information and services?\n
\n Visit the service team\n
\n
\n
\n

Service funding statement (Spanish)

\n
\n
\n
\n
\n \"<Parent\n
\n
\n

service.example.org

\n

\n Un sitio web oficial de <Parent service provider> .\n Producido y publicado con dinero de los contribuyentes de impuestos.\n

\n
\n
\n
\n \n
\n
\n
\n ¿Necesita información y servicios del servicio?\n
\n Visite el directorio del servicio en español\n
\n
\n
\n```\n\n### Code examples\n\n``` html\n

Default

\n\n \n\n

Default (Spanish)

\n\n \n\n

Multiple parents and logos

\n\n
\n\n

Multiple parents and logos (Spanish)

\n\n \n\n

No logos

\n\n
\n\n

Service funding statement

\n\n \n\n

Service funding statement (Spanish)

\n\n \n```\n\n## Guidance\n\n### When to use the identifier component\n\n- **To identify the highest-level service provider associated with a site or service.** The identifier is a complement to the design system [banner](banner.md). Use the identifier to tell users what parent service provider is responsible for your website. Consider the parent service provider the highest-level service provider associated with a site or service. If your site is the primary site associated with a service provider, you can still use the identifier.\n- **To display links required by public service laws and policies.** The identifier includes links required on all public service sites.\n\n### When to consider something else\n\n- **Any time it would be misleading.** The identifier should be used to reduce confusion. Avoid using the identifier on any site meant only for testing or otherwise not meant to be identified as an official public service website.\n- **Redundant content.** Don’t add the identifier without removing any duplicate links from your existing site footer. Favour the common links and content in the identifier over any equivalent content in your site footer.\n\n### Usability guidance\n\n- **Use the identifier component for required links.** If your site already includes the service-required links in its site footer, remove them in favour of the links in the identifier. This assures that site visitors find the required links in a consistent location from site to site.\n- **Consider the parent service provider the highest-level service provider associated with a site or service.** In some cases, your site may not have a parent service provider. If your site is the primary site for your service provider, use your service provider name in place of \\[Parent service provider\\]. For example, “\\[service service.example.org\\] An official website of \\[service provider\\].”\n- **Display the parent service provider logo, not the product logo.** The identifier is meant to identify a website’s parent service provider as a complement to the site footer. Site-specific logos, like a product logo, should be in the site footer, not the identifier. You may omit the logo in the identifier if it is redundant with the service provider logo in your site’s footer.\n- **Display multiple parents and logos in hierarchical order.** If a site has more than one parent service provider, you may display a reference and a logo for each parent in hierarchical order, highest first. For example, “An official website of \\[Grandparent Department\\] and \\[Parent service provider\\]”.\n- **Avoid distraction.** The identifier appears on every page of your site. Choose background colours that fit with your site theme and avoid colour combinations that draw excessive attention to the identifier.\n- **Keep the text up-to-date.** Use the most current version of the identifier.\n\n### Accessibility guidance\n\nTest the identifier component in your own project.\n\nThe design system tested the identifier component for accessibility. You should test your implementation, too.\n\n[Use identifier accessibility tests](#accessibility-tests)\n\n- **Use proper landmarks for each identifier section.** Each identifier section should be either a `section` or a `nav`, and include an appropriate `aria-label` property.\n- **Add an `alt` attribute to each logo image.** Use `[Agency shortname] logo` as the alt text for each logo image you add.\n- **Use `image` role for any SVG images.** Use `role=\"img\"` with any SVG logo image.\n\n### Using the identifier component\n\n- **Except where noted, use the entire component without deletions or additions.** With rare exceptions, if you use the identifier, include the entire identifier. That is, don’t delete sections or required links or change any link text beyond the customisations mentioned in the implementation section.\n- **Use a background colour darker than that of the footer.** Anchor the identifier to the bottom of the page and distinguish it from other site content by adding a background colour that is darker than the footer. Use primary or base family background colours of grade `80` or higher, or `black`.\n- **Use an SVG logo if possible.** Ensure the logo is high resolution. We recommend using the SVG version of any logo if you have one. Otherwise, use an image that’s at least 120 pixels tall.\n- **Use logos intended for dark backgrounds if possible.** The identifier has a dark background. If your service provider has a version of its logo intended for dark backgrounds, use that version.\n- **Update the required links to point to the proper URLs.** The identifier includes links required of any public service website, and these links are specific to a department, service provider, or website. We’ve linked each section below to the guidance on service.example.org to provide further context.\n - **About \\[Official parent service provider acronym\\]:** Update the link text to include the parent service provider’s official acronym. Link to the “About” page of your parent service provider’s principal website. If your site includes multiple parents, include only the organisation highest in the hierarchy in this link.\n\n Example: https://www.the service service.example.org/about-us\n\n - **Accessibility statement:** Link to your website or service’s accessibility statement, or to your parent service provider’s accessibility statement if your website or service does not have its own.\n\n Example: https://www.the service service.example.org/accessibility\n\n - **Information requests:** Link to a page that includes information about how the public can request information under the applicable requirements on your parent service provider’s principal website.\n\n Example: https://www.the service service.example.org/reference/freedom-of-information-act-information requests\n\n - **Service transparency data:** Link to the “Equal Employment Opportunity Data Posted Pursuant to the service transparency policy” page on your parent service provider’s principal website.\n\n Example: https://www.the service service.example.org/reference/civil-rights-programmes/notification-and-public service-employee-antidiscrimination-and-retaliation-act-of-2002\n\n - **Oversight and complaints:** Link to your parent service provider’s Oversight and complaints.\n\n Example: https://www.service.example.org\n\n - **Performance reports:** Link to a “Budget and Performance” page that includes the parent service provider’s strategic plan among other financial and performance documentation.\n\n Example: https://www.the service service.example.org/about-the service team/newsroom/budget-and-performance\n\n - **Privacy policy:** Link to the “Privacy” page most specific to your website. For example, if both your product website and your parent service provider’s principal website have privacy pages, link to your product website’s privacy page here.\n\n Example: https://www.the service service.example.org/privacy-policy\n- **Use the Spanish version for Spanish-language sites.** If you have an official Spanish-language website, use the Spanish version of the identifier.\n- **Duplicate the logo element if using multiple logos.** If you’re using multiple logos, duplicate the `ds-identifier__logo` element and link the image to your image source.\n- **If applicable, include any Service funding statement after the standard text.** If the organisation must provide a taxpayer expense disclaimer, include it following the “Official website” text, as a separate sentence. For example, “An official website of \\[Department\\]. Produced and published at taxpayer expense.”\n\n#### Identifier settings\n\n| Variable | Description |\n|---------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` $theme-identifier-background-color ` | The background colour of the identifier. Use a colour of **grade 80 or higher**, darker than the section that precedes it. |\n| ` $theme-identifier-font-family ` | The font family of the identifier. |\n| ` $theme-identifier-identity-domain-color ` | The colour of your domain text in the identifier masthead. This should be **grade 20-30** in the same family as the `$theme-identifier-background-color`. |\n| ` $theme-identifier-max-width ` | The maximum width of the content within the identifier. Use the same max-width as your site footer. |\n| ` $theme-identifier-primary-link-color ` | The colour of the links in the masthead section. `Default` uses either the standard or reverse link colour set with `$theme-link-color` and `$theme-link-reverse-color`. |\n| ` $theme-identifier-secondary-link-color ` | The colour of the links in the required links section. This should be **grade 20-30** in a `gray` family. |\n\n#### Identifier variants\n\n*This component has no variants.*\n\n## Package\n\n- **Package usage:** `@forward \"ds-identifier\";`\n- **Dependencies:** `service-design-system-fonts`, `service-design-system-core`\n\n## Component semantics contract\n\nVersion 1.0 for web services. **Task:** Check the organisation responsible for a service. Source: PSDS-DOC-0027 at `ab8621e2e9326e5ca323046429fa7aa69f5dbf0a`.\n\nUse a labelled identifier region containing operator text and descriptive links. Give a meaningful logo an appropriate alternative.\n\n| Trigger | Expected experience | Verification |\n|---|---|---|\n| Find the region | The person can identify the service provider from text or assistive technology. | Exercise this scenario in the host service and compare the observed result. |\n| Follow the provider link | Its accessible name predicts the organisation or information at the destination. | Repeat the journey through this state and record any difference. |\n\nUse these component checks alongside the two scenarios:\n\n- [PSDS-TEST-0266](#psds-test-0266) — Screen reader announces descriptive text for logos.\n- [PSDS-TEST-0267](#psds-test-0267) — Screen reader announces identifier region.\n\nRecord the chosen variant, local decisions and build evidence using the [contract template](../templates/component-semantics-contract.md#copy-into-the-service-specification).\n\n## Accessibility tests\n\nRun these checks on a representative page using the component. Include each supported variant and record the observed result and test environment.\n\n### General tests\n\n- `PSDS-TEST-0252` `PSDS-REQ-0275` **Colour alone is not used to convey information.** When viewing the identifier, you never have to rely on colour alone to understand information.\n\n WCAG [1.4.1 Use of colour](https://www.w3.org/TR/WCAG21/#use-of-color)\n\n- `PSDS-TEST-0253` `PSDS-REQ-0276` **Identifier text meets colour contrast requirements.** When you use a colour contrast checker to view the identifier, contrast between the text colour and background colour is at least 4.5:1.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.4.3 Contrast (Minimum)](https://www.w3.org/TR/WCAG21/#contrast-minimum)\n\n- `PSDS-TEST-0254` `PSDS-REQ-0277` **Identifier icons meets colour contrast requirements.** When you use a colour contrast checker to view the identifier, contrast between the icon and adjacent colours is at least 3:1.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.4.11 Non-text contrast](https://www.w3.org/TR/WCAG21/#non-text-contrast)\n\n- `PSDS-TEST-0255` `PSDS-REQ-0278` **Links provide direct location description.** You can read the text of any link in the identifier to understand where the link will take you.\n\n WCAG [2.4.4 Link purpose (in context)](https://www.w3.org/TR/WCAG21/#link-purpose-in-context)\n\n- `PSDS-TEST-0256` `PSDS-REQ-0279` **Identifier appears consistently.** The identifier appears in the same location on every page of your public service website.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [3.2.3 Consistent navigation](https://www.w3.org/TR/WCAG21/#consistent-navigation)\n\n- `PSDS-TEST-0257` `PSDS-REQ-0280` **Icon identifies external links.** An external link in the identifier will have an icon next to it that indicates the user will be taken away from the current site.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [3.2.4 Consistent identification](https://www.w3.org/TR/WCAG21/#consistent-identification)\n\n### Zoom magnification tests\n\n#### How to test with zoom magnification\n\n1. Navigate to a page on your website where the identifier component is used.\n2. Enlarge the view of your screen to 200%.\n3. Once zoomed, use a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nUse one of the following methods to control screen magnification in your browser:\n\n1. **Windows OS**: Click `ctrl` while using the scroll wheel on your mouse until you see \"200%\" appear in the top right of your screen. Or, click `ctrl` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `ctrl` + `0`.)\n2. **Mac OS**: Click `command` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `command` + `0`.)\n3. **Browser settings**: Customise your browser settings to display pages at 200%.\n\n- `PSDS-TEST-0258` `PSDS-REQ-0281` **Text can be resized without loss of information.** When you zoom in to 200%, text remains readable and visible within the identifier.\n\n WCAG [1.4.4 Resize text](https://www.w3.org/TR/WCAG21/#resize-text)\n\n- `PSDS-TEST-0259` `PSDS-REQ-0282` **Identifier links are visible and functional when screen is magnified.** When you zoom in to 400%, identifier links are stacked and visible. No left-to-right scrolling is required.\n\n WCAG [1.4.10 Reflow](https://www.w3.org/TR/WCAG21/#reflow)\n\n### Keyboard navigation tests\n\n#### How to test with keyboard navigation\n\n1. Navigate to a page on your website where the identifier component is used.\n2. Using only your keyboard, press `tab` to navigate forward or `shift` + `tab` to navigate backwards until focus is on the identifier.\n3. Use the testing checklist to make sure all functionality works with keyboard navigation.\n\n------------------------------------------------------------------------\n\nFor instruction for using keyboard navigation, use this resource from WebAIM.\n\n- `PSDS-TEST-0260` `PSDS-REQ-0283` **Keyboard navigates through links in logical order.** When tabbing through the identifier, you can access the links in a logical reading order.\n\n WCAG [1.3.2 Meaningful sequence](https://www.w3.org/TR/WCAG21/#meaningful-sequence)\n\n- `PSDS-TEST-0261` `PSDS-REQ-0284` **Keyboard navigates through all elements in identifier.** When you navigate through the identifer with a keyboard, you can interact with every element inside the identifier.\n\n WCAG [2.1.1 Keyboard](https://www.w3.org/TR/WCAG21/#keyboard)\n\n- `PSDS-TEST-0262` `PSDS-REQ-0285` **Identifier does not trap keyboard focus.** When you navigate with a keyboard, you can easily move into and out of the identifier.\n\n WCAG [2.1.2 No keyboard trap](https://www.w3.org/TR/WCAG21/#no-keyboard-trap)\n\n- `PSDS-TEST-0263` `PSDS-REQ-0286` **Focus follows logical content order.** When you tab through the identifier with a keyboard, the focus stays in order of the content as intended.\n\n WCAG [2.4.3 Focus order](https://www.w3.org/TR/WCAG21/#focus-order)\n\n- `PSDS-TEST-0264` `PSDS-REQ-0287` **Focus indicator is clearly visible.** When you use a keyboard to focus on identifier elements, you will see a visible outline or other clear indication of focus.\n\n WCAG [2.4.7 Focus visible](https://www.w3.org/TR/WCAG21/#focus-visible)\n\n- `PSDS-TEST-0265` `PSDS-REQ-0288` **Tabbing alone does not activate a link or other element.** When you move around in the identifier with a keyboard, you have to take specific action to activate any interactive elements.\n\n WCAG [3.2.1 On Focus](https://www.w3.org/TR/WCAG21/#on-focus)\n\n### Screen reader tests\n\n#### How to test with screen readers\n\n1. Navigate to a page on your website where the identifier component is used.\n2. Open a dedicated screen reading app or your operating system screen reader.\n3. Test with both a keyboard and a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nInstructions for setting up the screen reader on your operating system:\n\n1. Voiceover for Mac: Getting started guide\n2. Narrator for Windows: Complete guide to Narrator\n\n- `PSDS-TEST-0266` `PSDS-REQ-0289` **Screen reader announces descriptive text for logos.** When you use a screen reader on an identifier, the screen reader announces descriptive text for logos present in the identifier.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.1.1 Non-text content](https://www.w3.org/TR/WCAG21/#non-text-content)\n\n- `PSDS-TEST-0267` `PSDS-REQ-0290` **Screen reader announces identifier region.** When using a screen reader, you will hear “Region identifier” or “service provider identifer” when you reach the identifier region on the page.\n\n WCAG [1.3.1 Info and relationships](https://www.w3.org/TR/WCAG21/#info-and-relationships)\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/identifier.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/identifier.md#L1-L1242","source_start_line":1,"source_end_line":1242,"source_document_sha256":"af974fa7e8a1b1d1d50eae62910880e6ece4fcf265d8156d907ab7b84597e2e6","text_sha256":"af974fa7e8a1b1d1d50eae62910880e6ece4fcf265d8156d907ab7b84597e2e6","heading_path":[],"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-0028","document_id":"PSDS-DOC-0028","title":"In-page navigation","text":"# In-page navigation\n\nDocument ID: `PSDS-DOC-0028`\n\nThe in-page navigation allows navigation to specific sections on a lengthy content page\n\n## About the in-page navigation component\n\nIn-page navigation helps users understand the contents of a page and navigate to the section they need to read. This component is most suited for lengthy pages. The component is displayed alongside the main content in a sticky container that remains fixed when the user scrolls. When a user clicks an item on the in-page navigation, the page smoothly scrolls to the target section.\n\nThe design system in-page navigation component generates its content automatically, based on the content of the `main` element of the page. It utilises the Intersection Observer API which provides a performant, future-proof way of assuring that the navigation highlights the current section visible in the viewport.\n\n### 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\n \"An\n \n\n Demo\n\n In-page navigation\n\n \n```\n\n### Code examples\n\n``` html\n
\n \n
\n

Sample in-page navigation page

\n

Lorem ipsum dolor

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

Consectetuer adipiscing elit

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

Nullam sit amet enim

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

Vivamus pharetra posuere sapien

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

Suspendisse id velit

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

Orci magna rhoncus neque

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

Aliquam erat volutpat: velit vitae ligula volutpat

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

Vitae ligula

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n

\n Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo,\n ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio\n lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula\n volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla\n facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra\n gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.\n Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien. Lorem ipsum dolor sit amet,\n consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida,\n orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit\n amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam\n erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus\n pharetra posuere sapien. Lorem ipsum dolor sit amet, consectetuer\n adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna\n rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim.\n Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat\n volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra\n posuere sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id\n pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit\n vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit.\n Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Lorem ipsum\n dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed\n pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non\n turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat\n condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla\n libero. Vivamus pharetra posuere sapien.\n

\n
\n
\n```\n\n## Guidance\n\n### When to use the in-page navigation component\n\n- **Long pages.** In-page navigation can offer a substantial improvement to user experience for pages that include three or more distinct content sections or content that exceeds three or more viewport heights.\n\n### When to consider something else\n\n- **Short pages.** For pages that require little or no scrolling, in-page navigation is not necessary.\n- **Unstructured content.** Pages that lack heading-based hierarchical structures cannot use the in-page navigation component.\n- **Infinite scrolling.** For pages that feature infinite scrolling, in-page navigation is neither a practical nor feasible feature.\n\n### Usability guidance\n\n- **Display the in-page navigation to the side of the main content.** Visually, place the in-page navigation component after the main content in the language’s natural reading order. For example, for a left-to-right language like English, this component goes to the right of the main content.\n\n- **Make it stand out.** Site visitors should be able to quickly and easily distinguish in-page navigation from other landmarks on the page. Include borders and well-defined link active states to clearly convey the utility and purpose of the section. Define a consistent width for the in-page navigation component that is sufficiently wide and does not change based on text length.\n\n- **Use language that matches section headings.** The text of the links displayed within the in-page navigation `aside` should match the heading text of the target sections. By default, the component scans the page for `h2` and `h3` elements within the `main` element, automatically creates the in-page navigation block, and dynamically inserts the text to match the section headings.\n\n- **Don’t include the page `h1` in the navigation.** Each page should have a single `h1` to describe its contents. It would be redundant to include this heading level in the in-page navigation.\n\n- **In-page navigation heading.** Inform users that they will scroll down on the same page by including in-page navigation under a descriptive title such as “On this page,” “In this article,” or “Table of contents.”\n\n### Accessibility guidance\n\nTest the in-page navigation component in your own project.\n\nThe design system tested the in-page navigation component for accessibility. You should test your implementation, too.\n\n[Use in-page navigation accessibility tests](#accessibility-tests)\n\n- **Allow keyboard navigation.** Users should be able to navigate between items by using the `Tab` key. They should also be able to activate a link when pressing `Enter` on their keyboard. Users should be able to activate hover and focus states with both a mouse and a keyboard.\n\n- **Keyboard users should access the in-page navigation before the main content.** When a user tabs through a page that contains the in-page navigation component, they should find the in-page navigation *before* the `main` content. Since the in-page navigation appears after the main content in the reading order, this may seem like a tab-order error. However, tabbing through the entire page before getting to in-page navigation links is not logical, creates confusion, and diminishes the user experience.\n\n- **Set focus state on section target for keyboard users.** When keyboard users follow an in-page anchor link set the focus state to the link target when the user presses the `Enter` key. When mouse users follow an in-page anchor link the focus should remain on the selected link.\n\n### Using the in-page navigation component\n\nImplementing the in-page navigation component requires a few additions and adjustments to your page’s markup.\n\n- `PSDS-REQ-0011` A wrapper `div` with the class `ds-in-page-nav-container` must surround the `main` element of your page.\n\n- `PSDS-REQ-0012` A new sibling `aside` with the class `ds-in-page-nav` must precede the `main` element.\n\n The following is an example of the minimum markup your page would need to implement the in-page navigation component:\n\n ``` html\n
\n \n
\n [ Page content ]\n
\n
\n ```\n\n- `PSDS-REQ-0013` **Initialisation properties.** You can customise how the component builds during initialisation by adding any of the following properties to the `ds-in-page-nav` element. These properties must be set *before* the component is initialized.\n\n- **Custom main content region selector.** The main content selector property (`data-main-content-selector`) allows you to define which element the component will look in to pull its list of headings. Set the property’s value to the `class` or `id` of your page’s main content region (for example, `data-main-content-selector=\".main-content\"` or `data-main-content-selector=\"#main-content\"`). By default, the component will pull headings from the `
` element.\n\n- **Custom heading selector.** The heading selector property (`data-heading-elements`) allows you to list which heading levels you would like the component to pull into the component link list. By default, the component will include `h2` and `h3` headings.\n\n- **Root margin.** The root margin property (`data-root-margin`) is a string that allows you to define the observable area. This set of values grows or shrinks the observable area from each side of the root element’s bounding box before computing intersections. It can accept values similar to the CSS margin property, and can be percentages. By default, the in-page navigation component is set to `0px 0px 0px 0px`.\n\n- **Threshold.** The threshold property (`data-threshold`) determines how much of the observable section must be present in the observed area before the nav’s item is set to current. The default is `1`, which means 100% of the observables must be in the observed section. You can set `data-threshold` to any integer between 0 and 1.\n\n#### In-page navigation initialisation properties\n\n| Property | Description | Default |\n|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------|\n| `data-heading-elements` | The list of header levels that should be included in the link list. | `h2 h3` |\n| `data-main-content-selector` | The element the component pulls headers from. | `
` |\n| `data-title-heading-level` | The heading level of the navigation title header. | `h4` |\n| `data-title-text` | The text of the navigation title header. | “On this page” |\n| `data-scroll-offset` | Number of pixels scroll should offset from the top of the parent element. | 0 |\n| `data-root-margin` | Observable margin around the observed root used for calculating the current active section. Use values similar to CSS margin. | `0px 0px 0px 0px` |\n| `data-threshold` | Percentage of the scrolling section that must be in the observed area before the current section is triggered. Use a value between 0 and 1. | 1 |\n| `data-minimum-heading-count` | The minimum number of headings needed in the content region for the component to build on the page. If the content region does not meet this minimum heading count, the component will not initialize. | `2` |\n\n#### In-page navigation settings\n\n| Variable | Description |\n|-----------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` $theme-in-page-nav-background-color ` | Background colour of the in-page navigation block. `Default` uses body background colour set in `$theme-body-background-color`. |\n| ` $theme-in-page-nav-background-padding ` | Padding of the in-page navigation block. |\n| ` $theme-in-page-nav-background-radius ` | The border radius of the in-page navigation block. |\n| ` $theme-in-page-nav-bar-color ` | Colour of the bar representing the active state of a link in the in-page navigation. `Default` uses the default link settings calculated from your background color. |\n| ` $theme-in-page-nav-bar-width ` | Width of the colored bar representing the active state of a link in the in-page navigation. |\n| ` $theme-in-page-nav-font-family ` | Font family of the in-page navigation. |\n| ` $theme-in-page-nav-link-color ` | The colour of the link in the in-page navigation. `Default` uses the default link settings calculated from your background color. |\n| ` $theme-in-page-nav-main-content-max-width ` | Maximum width of the main element. |\n| ` $theme-in-page-nav-margin-left ` | Margin to the left of in-page navigation. |\n| ` $theme-in-page-nav-margin-top ` | Margin above in-page navigation. |\n| ` $theme-in-page-nav-top ` | Distance from top of page to top of navigation when the sticky position is engaged on scroll. |\n\n#### In-page navigation variants\n\n*This component has no variants.*\n\n## Package\n\n- **Package usage:** `@forward \"ds-in-page-navigation\";`\n\n## Design and governance extensions\n\n- Specify equivalent cues, actions and state across modalities. Use structural semantics and test the supported input and output paths. [Inclusive Multimodal UX](https://github.com/Double-FW/Inclusive-Multimodal-UX)\n\n## Component semantics contract\n\nVersion 1.0 for web services. **Task:** Jump to a section of long guidance. Source: PSDS-DOC-0028 at `ab8621e2e9326e5ca323046429fa7aa69f5dbf0a`.\n\nUse a named navigation landmark with fragment links to uniquely identified sections. Match the link wording to each heading.\n\n| Trigger | Expected experience | Verification |\n|---|---|---|\n| Activate a section link | The matching heading is visible and the reading position reaches the section. | Exercise this scenario in the host service and compare the observed result. |\n| Continue navigating | Reading and keyboard navigation continue from the destination in logical order. | Repeat the journey through this state and record any difference. |\n\nUse these component checks alongside the two scenarios:\n\n- [PSDS-TEST-0280](#psds-test-0280) — Screen reader provides clear description of links.\n- [PSDS-TEST-0281](#psds-test-0281) — Link text provides direct location description.\n\nRecord the chosen variant, local decisions and build evidence using the [contract template](../templates/component-semantics-contract.md#copy-into-the-service-specification).\n\n## Accessibility tests\n\nRun these checks on a representative page using the component. Include each supported variant and record the observed result and test environment.\n\n### General tests\n\n- `PSDS-TEST-0268` `PSDS-REQ-0291` **In-page navigation adjusts on mobile.** When you rotate between portrait mode and landscape mode on a mobile device, in-page navigation is not restricted to a single view.\n\n WCAG [1.3.4 Orientation](https://www.w3.org/TR/WCAG21/#orientation)\n\n- `PSDS-TEST-0269` `PSDS-REQ-0292` **Colour is not the only method used to convey in-page navigation link states.** When you view the in-page navigation links, you can read text to understand what page you are on. There may also be underlining missing to indicate you are on the current page.\n\n WCAG [1.4.1 Use of colour](https://www.w3.org/TR/WCAG21/#use-of-color)\n\n- `PSDS-TEST-0270` `PSDS-REQ-0293` **In-page navigation text and background meet colour contrast requirements.** When you use a colour contrast checker to view the in-page navigation, contrast between the text and background colours is at least 4.5:1.\n\n WCAG [1.4.3 Contrast (Minimum)](https://www.w3.org/TR/WCAG21/#contrast-minimum)\n\n- `PSDS-TEST-0271` `PSDS-REQ-0294` **Navigation links clearly indicate location on the website.** When you view the in-page navigation, there is distinct styling that gives clear visual indication of where you are on the page. When using a screen reader, you will hear “current” as the indicator for location.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [2.4.8 Location](https://www.w3.org/TR/WCAG21/#location)\n\n### Zoom magnification tests\n\n#### How to test with zoom magnification\n\n1. Navigate to a page on your website where the in-page navigation component is used.\n2. Enlarge the view of your screen to 200%.\n3. Once zoomed, use a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nUse one of the following methods to control screen magnification in your browser:\n\n1. **Windows OS**: Click `ctrl` while using the scroll wheel on your mouse until you see \"200%\" appear in the top right of your screen. Or, click `ctrl` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `ctrl` + `0`.)\n2. **Mac OS**: Click `command` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `command` + `0`.)\n3. **Browser settings**: Customise your browser settings to display pages at 200%.\n\n- `PSDS-TEST-0272` `PSDS-REQ-0295` **In-page navigation text and links are visible and functional when screen is magnified.** When you zoom in to 200%, in-page links are still readable and legible and properly sized.\n\n WCAG [1.4.4 Resize text](https://www.w3.org/TR/WCAG21/#resize-text)\n\n### Keyboard navigation tests\n\n#### How to test with keyboard navigation\n\n1. Navigate to a page on your website where the in-page navigation component is used.\n2. Using only your keyboard, press `tab` to navigate forward or `shift` + `tab` to navigate backwards until focus is on the in-page navigation.\n3. Use the testing checklist to make sure all functionality works with keyboard navigation.\n\n------------------------------------------------------------------------\n\nFor instruction for using keyboard navigation, use this resource from WebAIM.\n\n- `PSDS-TEST-0273` `PSDS-REQ-0296` **Keyboard can access all in-page navigation links.** When you navigate through the in-page navigation with a keyboard, you can interact with every link inside it.\n\n WCAG [2.1.1 Keyboard](https://www.w3.org/TR/WCAG21/#keyboard)\n\n- `PSDS-TEST-0274` `PSDS-REQ-0297` **In-page navigation content does not trap keyboard focus.** When you tab through in-page navigation links with a keyboard, you can easily move into and out to get to other content.\n\n WCAG [2.1.2 No keyboard trap](https://www.w3.org/TR/WCAG21/#no-keyboard-trap)\n\n- `PSDS-TEST-0275` `PSDS-REQ-0298` **Focus follows logical content order.** When you tab through the in-page navigation with a keyboard, the focus on the links moves in logical order in relation to the other links there.\n\n WCAG [2.4.3 Focus order](https://www.w3.org/TR/WCAG21/#focus-order)\n\n- `PSDS-TEST-0276` `PSDS-REQ-0299` **Focus indicator is clearly visible for in-page navigation.** When you use a keyboard to tab into the in-page navigation, there will be a visible outline or other clear indication of focus on links.\n\n WCAG [2.4.7 Focus visible](https://www.w3.org/TR/WCAG21/#focus-visible)\n\n- `PSDS-TEST-0277` `PSDS-REQ-0300` **Heading order is the same as displayed on the page.** When you use the keyboard to access in-page navigation, headings are nested appropriately and match the header order as they appear on the page.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [2.4.6 Headings and labels](https://www.w3.org/TR/WCAG21/#headings-and-labels)\n\n### Screen reader tests\n\n#### How to test with screen readers\n\n1. Navigate to a page on your website where the in-page navigation component is used.\n2. Open a dedicated screen reading app or your operating system screen reader.\n3. Test with both a keyboard and a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nInstructions for setting up the screen reader on your operating system:\n\n1. Voiceover for Mac: Getting started guide\n2. Narrator for Windows: Complete guide to Narrator\n\n- `PSDS-TEST-0278` `PSDS-REQ-0301` **Screen reader announces in-page navigation region.** When using a screen reader to access the in-page navigation, you hear “complementary navigation region” or “complementary landmark”, identifying the navigation pane.\n\n WCAG [1.3.1 Info and relationships](https://www.w3.org/TR/WCAG21/#info-and-relationships)\n\n- `PSDS-TEST-0279` `PSDS-REQ-0302` **Screen reader announces links in logical order.** When you use a screen reader and reach in-page navigation links, they will be announced in the order that matches the order of content on the page.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [1.3.2 Meaningful sequence](https://www.w3.org/TR/WCAG21/#meaningful-sequence)\n\n- `PSDS-TEST-0280` `PSDS-REQ-0303` **Screen reader provides clear description of links.** When you navigate to the in-page navigation with a screen reader, link titles are read aloud and match the text seen on screen.\n\n WCAG [2.4.4 Link purpose (in context)](https://www.w3.org/TR/WCAG21/#link-purpose-in-context)\n\n- `PSDS-TEST-0281` `PSDS-REQ-0304` **Link text provides direct location description.** You can read the text of any link in the in-page navigation to understand where the link will take you.\n\n **This can only be tested in your implementation of the component.** Be sure to test this in your project.\n\n WCAG [2.4.9 Link Purpose (link only)](https://www.w3.org/TR/WCAG21/#link-purpose-link-only)\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/in-page-navigation.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/in-page-navigation.md#L1-L819","source_start_line":1,"source_end_line":819,"source_document_sha256":"5f3c54360d758a19abd3f425900c3db34cd66eba73dcab82009bd654a4813113","text_sha256":"5f3c54360d758a19abd3f425900c3db34cd66eba73dcab82009bd654a4813113","heading_path":[],"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-0029","document_id":"PSDS-DOC-0029","title":"Input mask","text":"# Input mask\n\nDocument ID: `PSDS-DOC-0029`\n\nAn input mask is a string expression that constrains input to support valid input values.\n\n### 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

Social Security Number Input Mask

\n
\n \n
For example, 123 45 6789
\n \n
\n

US Telephone Number Input Mask

\n
\n \n
For example, 123-456-7890
\n \n
\n

9 Digit US ZIP Code Input Mask

\n
\n \n
For example, 12345-6789
\n \n
\n

Alphanumeric Input Mask

\n
\n \n
For example, A1B 2C3
\n \n
\n```\n\n### Code examples\n\n``` html\n

Social Security Number Input Mask

\n\n
\n \n
For example, 123 45 6789
\n \n\n\n

US Telephone Number Input Mask

\n\n
\n \n
For example, 123-456-7890
\n \n\n\n

9 Digit US ZIP Code Input Mask

\n\n
\n \n
For example, 12345-6789
\n \n\n\n

Alphanumeric Input Mask

\n\n
\n \n
For example, A1B 2C3
\n \n\n```\n\n## Guidance\n\n### When to use the input mask component\n\n- **Common input patterns.** In fields with a specific expected format like Social Security Number or ZIP code, an input mask allows you to constrain and shape the information being entered into that format, without impairing the user’s ability to copy/paste or correct mistyping.\n\n### When to consider something else\n\n- **When the input requires a free-form field.** When there isn’t a common input pattern to use, input masking is not appropriate.\n- **When the pattern is too complicated to allow for a valid input mask.** A pattern like email, with many possible scenarios for input, is not a good candidate for masking. Allow the user to enter their email address (or other complicated data) and have your validation library confirm before form submission.\n\n### Usability guidance\n\n- **Wait to validate.** Only show error validation messages or stylings after a user has interacted with a particular field.\n\n### Accessibility guidance\n\nTest the input mask component in your own project.\n\nThe design system tested the input mask component for accessibility. You should test your implementation, too.\n\n[Use input mask accessibility tests](#accessibility-tests)\n\n- **Include a label.** Make sure each form control includes a `label` with a `for` attribute related to the `id` of the `input` element it labels.\n- **Use helpful hint text.** Make sure any hint text helps users understand what they need to input.\n- **Customization.** As you customise, make sure you follow accessibility guidelines for form templates and the [accessibility guidelines for form controls](form.md).\n\n### Using the input mask component\n\n`PSDS-REQ-0014` The examples in the Preview section, above, are common input masks, but you can adapt the code to meet the needs of your project. In order to extend the functionality of the input mask, you must include a `placeholder` attribute as the visible input mask, using the underscore `_` to represent a character the user should enter. You may use punctuation literals like `[space]`, `-`, `/`, or `(` to help format your mask, but these literals will not be included in the final submitted value. You also need a related `pattern` attribute on the `input` element, its value expressed as a regular expression that describes the intended format of the input data. Additionally, if the expected input is numeric, make sure to add the `inputmode=\"numeric\"` attribute and setting so the numeric keypad is displayed. For example, an `input` with an input mask of three groups of three numerals, separated with spaces might have the following properties:\n\n placeholder=\"___ ___ ___\"\n pattern=\"\\d\\d\\d \\d\\d\\d \\d\\d\\d\"\n inputmode=\"numeric\"\n\n### The input mask and alphanumeric characters\n\nInput mask examples include an alphanumeric version which can be customised to meet your needs. To implement an alphanumeric input mask, you will need to add the attribute `data-charset` to the input tag. Similar to the `pattern` attribute, include a number sign `#` for each number and an `A` for each required letter. We recommend changing inputmode to `text` so the full keyboard is available to your user.\n\nIf your input mask calls for a pattern such as *1A2 B3C*, you would implement that by adding the following attributes and character formatting to your input element:\n\n placeholder=\"___ ___\"\n pattern=\"\\w\\d\\w \\d\\w\\d\"\n data-charset=\"A#A #A#\"\n\n#### Input mask settings\n\n*This component has no settings.*\n\n#### Input mask variants\n\n*This component has no variants.*\n\n## Package\n\n- **Package usage:** `@forward \"ds-input-mask\";`\n\n## Component semantics contract\n\nVersion 1.0 for web services. **Task:** Enter a formatted reference number. Source: PSDS-DOC-0029 at `ab8621e2e9326e5ca323046429fa7aa69f5dbf0a`.\n\nUse a labelled text input with a persistent format example. Keep its accessible value consistent with the displayed entry.\n\n| Trigger | Expected experience | Verification |\n|---|---|---|\n| Type, paste or edit in the middle | The mask accepts supported formats and permits correction without trapping or unexpectedly moving the caret. | Exercise this scenario in the host service and compare the observed result. |\n| Submit an incomplete value | Preserve the entry and explain the missing or invalid part in text. | Repeat the journey through this state and record any difference. |\n\nUse these component checks alongside the two scenarios:\n\n- [PSDS-TEST-0289](#psds-test-0289) — Screen readers announce the field’s purpose.\n- [PSDS-TEST-0290](#psds-test-0290) — Instructions and hint text are read by a screen reader.\n\nRecord the chosen variant, local decisions and build evidence using the [contract template](../templates/component-semantics-contract.md#copy-into-the-service-specification).\n\n## Accessibility tests\n\nRun these checks on a representative page using the component. Include each supported variant and record the observed result and test environment.\n\n### General tests\n\n- `PSDS-TEST-0282` `PSDS-REQ-0305` **Input mask heading is clear and descriptive.** When you view the input mask, the headings and hint text are clear and concise.\n\n WCAG [2.4.6 Headings and labels](https://www.w3.org/TR/WCAG21/#headings-and-labels)\n\n### Zoom magnification tests\n\n#### How to test with zoom magnification\n\n1. Navigate to a page on your website where the input mask component is used.\n2. Enlarge the view of your screen to 200%.\n3. Once zoomed, use a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nUse one of the following methods to control screen magnification in your browser:\n\n1. **Windows OS**: Click `ctrl` while using the scroll wheel on your mouse until you see \"200%\" appear in the top right of your screen. Or, click `ctrl` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `ctrl` + `0`.)\n2. **Mac OS**: Click `command` + `+` until you see \"200%\" appear in the top right of your screen. (To reset the zoom to the original value, click `command` + `0`.)\n3. **Browser settings**: Customise your browser settings to display pages at 200%.\n\n- `PSDS-TEST-0283` `PSDS-REQ-0306` **Input mask remains visible and functional when screen is magnified.** When you zoom in to 200%, the input mask is still readable, legible, usable and properly sized.\n\n WCAG [1.4.4 Resize text](https://www.w3.org/TR/WCAG21/#resize-text)\n\n### Keyboard navigation tests\n\n#### How to test with keyboard navigation\n\n1. Navigate to a page on your website where the input mask component is used.\n2. Using only your keyboard, press `tab` to navigate forward or `shift` + `tab` to navigate backwards until focus is on the input mask.\n3. Use the testing checklist to make sure all functionality works with keyboard navigation.\n\n------------------------------------------------------------------------\n\nFor instruction for using keyboard navigation, use this resource from WebAIM.\n\n- `PSDS-TEST-0284` `PSDS-REQ-0307` **The input mask is operable using only a keyboard.** Using only a keyboard, you can navigate to the input mask, type in it, and navigate away from it.\n\n WCAG [2.1.1 Keyboard](https://www.w3.org/TR/WCAG21/#keyboard)\n\n- `PSDS-TEST-0285` `PSDS-REQ-0308` **Input mask does not trap focus.** When you navigate with a keyboard, you can easily move into and out of the input mask.\n\n WCAG [2.1.2 No keyboard trap](https://www.w3.org/TR/WCAG21/#no-keyboard-trap)\n\n- `PSDS-TEST-0286` `PSDS-REQ-0309` **Tabbing into the input mask doesn’t trigger a change of context.** When using a keyboard to access the input mask, there is no change until you activate it with the enter key or spacebar. For example, entering text doesn’t cause the focus to jump to the next field.\n\n WCAG [3.2.1 On Focus](https://www.w3.org/TR/WCAG21/#on-focus)\n\n### Screen reader tests\n\n#### How to test with screen readers\n\n1. Navigate to a page on your website where the input mask component is used.\n2. Open a dedicated screen reading app or your operating system screen reader.\n3. Test with both a keyboard and a mouse to complete the tests in the checklist.\n\n------------------------------------------------------------------------\n\nInstructions for setting up the screen reader on your operating system:\n\n1. Voiceover for Mac: Getting started guide\n2. Narrator for Windows: Complete guide to Narrator\n\n- `PSDS-TEST-0287` `PSDS-REQ-0310` **Screen reader announces field purpose.** When using a screen reader to access the input mask field, you hear the field label, text related to the field, and whether or not the field is required.\n\n WCAG [1.3.1 Info and relationships](https://www.w3.org/TR/WCAG21/#info-and-relationships)\n\n- `PSDS-TEST-0288` `PSDS-REQ-0311` **Clear feedback is provided.** When you type into the input mask and make a mistake, you receive clear instructions about how to fix your mistake. This feedback should be shown on the page and announced through screen readers.\n\n WCAG [3.3.3 Error suggestion](https://www.w3.org/TR/WCAG21/#error-suggestion)\n\n- `PSDS-TEST-0289` `PSDS-REQ-0312` **Screen readers announce the field’s purpose.** When using a screen reader, you hear the purpose of the input mask field. For example, you hear “Enter your this country telephone number.”\n\n WCAG [1.3.5 Identify input purpose](https://www.w3.org/TR/WCAG21/#identify-input-purpose)\n\n- `PSDS-TEST-0290` `PSDS-REQ-0313` **Instructions and hint text are read by a screen reader.** When you access an input mask with a screen reader, the instructions, example, and hint text are announced. You can also hear if the field is required.\n\n WCAG [3.3.2 Labels or instructions](https://www.w3.org/TR/WCAG21/#labels-or-instructions)\n","record_type":"full_document","source_repository":"Double-FW/Public_Service_Design_System_Documentation","source_path":"guidance/components/input-mask.md","source_commit":"b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70","source_url":"https://github.com/Double-FW/Public_Service_Design_System_Documentation/blob/b9b9bd4df59e514c7987971fd9c0fbcc2d4ebe70/guidance/components/input-mask.md#L1-L266","source_start_line":1,"source_end_line":266,"source_document_sha256":"ebe26b2655edb108541aef08d4e95fe3a2f4dbdbc14258a4de3ee0e9d2ecbf8f","text_sha256":"ebe26b2655edb108541aef08d4e95fe3a2f4dbdbc14258a4de3ee0e9d2ecbf8f","heading_path":[],"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-0030","document_id":"PSDS-DOC-0030","title":"Input prefix/suffix","text":"# Input prefix/suffix\n\nDocument ID: `PSDS-DOC-0030`\n\nUse input prefixes and suffixes to show symbols or abbreviations that help users enter the right type of information in a form’s text input.\n\n### 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
\n \n
\n
\n \n \n \n
\n \n
\n \n
\n
\n \n \n \n
\n \n
\n
\n
\n \n
\n \n
lbs.
\n
\n
\n```\n\n### Code examples\n\n``` html\n
\n \n
\n
\n \n \n \n
\n \n
\n