` focusable](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8090208/)\n- [Using the `aria-current` attribute](https://tink.uk/using-the-aria-current-attribute/)\n- [High Contrast-friendly dropshadow](https://codepen.io/dpersing/details/vJERyv)\n- [Button has non-empty accessible name (97a4e1)](https://www.w3.org/WAI/standards-guidelines/act/rules/97a4e1/proposed/)\n- [Link has non-empty accessible name (c487ae)](https://www.w3.org/WAI/standards-guidelines/act/rules/c487ae/proposed/)\n- [Element with aria-hidden has no content in sequential focus navigation (6cfa84)](https://www.w3.org/WAI/standards-guidelines/act/rules/6cfa84/proposed/)\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"Site Menus.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/Site%20Menus.md","source_start_line":1,"source_end_line":114,"source_document_sha256":"c4c6f10abed2b6d3a5474f441e6e54b0618cf3e5cf5922e1e0dfc912fd54fd59","text_sha256":"c4c6f10abed2b6d3a5474f441e6e54b0618cf3e5cf5922e1e0dfc912fd54fd59","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-support-escalation-and-handoffs","title":"Support, Escalation and Handoffs","text":"---\ntitle: \"Support, Escalation and Handoffs\"\ndescription: \"Help people reach support, know who owns the next step and recover if a transfer fails.\"\n---\n\n# Support, Escalation and Handoffs\n\n## Contents\n\n- [Introduction](#introduction)\n- [Recommended markup](#recommended-markup)\n- [Recommended layout](#recommended-layout)\n- [Recommended behaviour](#recommended-behaviour)\n- [Build this pattern](#build-this-pattern)\n- [Testing Approach and ACT Scripts](#testing-approach-and-act-scripts)\n- [Sources](#sources)\n\n## Introduction\n\nGive people a way to ask for help without repeating the barrier that stopped them. A link to support is only the first step. Check whether the person can reach a usable channel, explain the problem and get a response.\n\n## Recommended markup\n\nUse descriptive links for support destinations and labelled buttons for in-place actions. Put the request reference and next step in text.\n\n## Recommended layout\n\n### Make support findable and usable\n\nProvide a clear support entry in a consistent place and a relevant link where a task can fail. Explain what each channel can help with, what information is needed and when people can expect a response. Where a usual channel is inaccessible or unavailable, provide an alternative people can use for the same issue. For example, provide a written route for someone who cannot use a phone. See [Global Navigation](Global%20Navigation.md) and [Forms](Forms.md).\n\n## Recommended behaviour\n\n### Carry the task across a handoff\n\nBefore transferring someone to a different team, system or channel, say who will handle it, what will happen next and how they can check progress. Carry forward relevant information already provided where appropriate. Explain what will be shared and give the person a reference they can use if they need to follow up.\n\nTrack whether the receiving team or service took ownership. If a transfer fails, keep the original request available and show a way to retry or continue. For an asynchronous handoff, keep the status and next step available in the task or in a [notification centre](Notifications%20and%20Status%20Messages.md#notification-centre).\n\n### Provide an escalation path\n\nShow how to follow up when the issue remains unresolved. Let the person use their existing reference and provide a route that remains usable if the original channel or account is unavailable. Escalation works when a named team can act on the request and the person can tell where responsibility sits.\n\n \n\n## Build this pattern\n\n[Build Support, Escalation and Handoffs from the prompt and acceptance scenarios](build-patterns/Support%2C%20Escalation%20and%20Handoffs.md).\n\n\n### Worked example\n\nA customer cannot complete an identity check. They use a written support form and receive a reference. Support transfers the request to the verification team and explains when the customer can expect an update. If the transfer fails, the support record stays available and the customer can follow up with the same reference.\n\n## Testing Approach and ACT Scripts\n\nTest the supported variants. Record the method, browser and assistive technology where relevant, and compare the observed result with the expected behaviour.\n\n \n\n| Method and action | Expected result |\n| --- | --- |\n| Start from a failed task and try to reach support with the available keyboard and screen reader routes. Repeat with the usual channel unavailable. | An accessible route can handle the same problem. The person can find any requirements and know what to expect. |\n| Follow a request across a team or channel transfer. | The person knows who owns the next step and can use an existing reference. Relevant information carries forward where appropriate. |\n| Simulate a failed transfer or no response within the stated time. Follow the retry or escalation route. | The original request remains available. The person can tell who to contact and can continue without starting the original task again. |\n\nSee [Alternatives to Deceptive Patterns](Alternatives%20to%20Deceptive%20Patterns.md) for related journey checks.\n\n### Related W3C ACT rules\n\nApply these proposed rules where their applicability conditions are met. Use the pattern checks above to verify behaviour and outcomes beyond their scope.\n\n- [Link has non-empty accessible name (c487ae)](qa/w3c-act/c487ae.md)\n- [Form field has non-empty accessible name (e086e5)](qa/w3c-act/e086e5.md)\n\n## Sources\n\n- [Cosmos: Alternatives to Deceptive Patterns](Alternatives%20to%20Deceptive%20Patterns.md)\n- [Cosmos: Notification centre](Notifications%20and%20Status%20Messages.md#notification-centre)\n- [Link has non-empty accessible name (c487ae)](https://www.w3.org/WAI/standards-guidelines/act/rules/c487ae/proposed/)\n- [Form field has non-empty accessible name (e086e5)](https://www.w3.org/WAI/standards-guidelines/act/rules/e086e5/proposed/)\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"Support, Escalation and Handoffs.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/Support,%20Escalation%20and%20Handoffs.md","source_start_line":1,"source_end_line":81,"source_document_sha256":"3ccc59f886545e27da6a2af2751d825269481e66b80f07c9791b8fb97f2211a7","text_sha256":"3ccc59f886545e27da6a2af2751d825269481e66b80f07c9791b8fb97f2211a7","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-tabs","title":"Tabs","text":"---\ntitle: \"Tabs\"\ndescription: \"Help people switch between related sections of content in one place.\"\n---\n\n# Tabs\n\nChoose a related section and read its content. For a new set assume horizontal manual activation. Confirm orientation, activation policy, fragment and history policy, first meaningful panel content and any maintained legacy keyboard model. Use ordinary links to headed sections until enhancement succeeds. Four or five labels is a design heuristic.\n\n## Contents\n\n- [Introduction](#introduction)\n- [Recommended markup](#recommended-markup)\n- [Recommended layout](#recommended-layout)\n- [Recommended behaviour](#recommended-behaviour)\n- [Build this pattern](#build-this-pattern)\n- [Testing Approach and ACT Scripts](#testing-approach-and-act-scripts)\n- [Sources](#sources)\n\n## Introduction\n\nUse tabs when people need to choose one of a few related sections in the same view. Keep labels short and make each panel useful on its own. Use four or five tabs as a design heuristic. If labels need more space or people need to compare sections or complete one task across them, consider [Accordion](Accordion.md) or visible sections with in-page links. For guidance on hidden panel states, focus and accessibility-tree exposure, see [Visually Hidden Content](Visually%20Hidden%20Content.md).\n\n## Recommended markup\n\nUse a named tablist, associated tabs and labelled panels after enhancement. Keep the baseline links and sections usable when scripts are blocked.\n\n## Recommended layout\n\n \n\nGive the tab set a name that explains what the tabs group, such as ‘Journey information’. Give each tab a visible text label that describes the content it reveals. Keep panel headings so people can find the same sections before and after enhancement.\n\nPlace the panel immediately after the tab list in source order. Show which tab is selected and make its relationship to the panel clear. Give keyboard focus its own visible indicator, including when it is on the selected tab. Keep the labels, selected state, focus and panel boundary distinguishable in [forced colours](Colour%2C%20Contrast%20and%20Meaning.md#focus-and-icons-in-forced-colours).\n\nKeep the full labels readable at narrow widths and when people enlarge text. If the labels cannot fit in a horizontal row, consider vertical tabs or use an accordion or in-page navigation. If tabs become vertical, update their orientation and keyboard commands together. Avoid layouts that look like a series of disclosures but still behave like horizontal tabs.\n\n## Recommended behaviour\n\n \n\n### Standard tabs\n\nUse the [ARIA Authoring Practices Guide tabs pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/) for new tab sets. The baseline example uses manual activation so people can explore tab labels before opening a panel.\n\n- Tab enters the tab list at the selected tab. Left and Right Arrow move between horizontal tabs, wrapping at the ends. For vertical tabs, set `aria-orientation=\"vertical\"` on the tab list and use Up and Down Arrow. If implemented, Home and End move to the first and last tab.\n- In manual activation, arrow keys move focus and leave the panel unchanged. Enter and Space select the focused tab. Click or tap also selects a tab. On selection, keep focus on the tab, expose its panel and hide the others. Change the selected styling and `aria-selected` together.\n- Tab leaves the tab list for the active panel. If the panel starts with non-interactive content, make the panel a tab stop with `tabindex=\"0\"` so people can reach and read its beginning. If its first meaningful content is already focusable, let Tab reach that content directly. Shift+Tab returns from the start of the panel to the tab list.\n- Automatic activation is an option when the panel appears without noticeable delay and frequent changes will not interrupt use. In that variant, moving to a tab with an arrow key also selects it.\n\n### Existing variant that moves focus into the panel\n\nSome existing interfaces keep each tab in the Tab sequence and move focus into the chosen panel on activation. Small usability studies reported that some participants missed the arrow-key interaction or found it conflicted with screen reader browsing. Treat this as a reason to test discoverability with the people using the interface. The focus-moving variant uses a different keyboard model from the standard pattern.\n\nIf you maintain this variant, document it explicitly. Let people reach each tab with Tab or Shift+Tab and activate it with Enter, Space, click or tap. Reveal the panel, update selection, then move focus to the named panel using `tabindex=\"-1\"`. The next Tab reaches the first interactive element inside or after the panel. Verify that Shift+Tab takes people back to the tab list. Keep the heading or tab label visible when moving focus, and preserve the screen reader’s own reading commands.\n\n### Direct links and browser history\n\nStart with in-page links to visible sections. Keep the same fragment IDs when enhancing those sections into panels. On first load, select the panel containing the fragment target, including a target inside a panel. Use the first panel when the URL has no matching target. Leave normal browser navigation intact for a fragment elsewhere on the page. Following that link within the current page preserves the selected panel.\n\nIf selection updates the URL, record a history entry only when the selected destination changes. Restore the appropriate panel on Back and Forward, including the default panel when returning to the initial URL without a fragment. Reveal a hidden panel before moving to a fragment inside it. Keep focus where it is if it remains usable. When a history change would hide the focused element, move focus to a sensible visible target, such as the newly selected tab. See [Client-side Routing](Client-side%20Routing.md#back-and-forward) for history across views.\n\n \n \n \n \n\n## Build this pattern\n\n[Build Tabs](build-patterns/Tabs.md) using the prompt, retrieval pack and verification plan. [Original examples at the pilot baseline](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Tabs.md#reference-implementation).\n\n## Testing Approach and ACT Scripts\n\nThe ACT-style checks in this section are pattern-specific checks maintained in this guide. The proposed W3C rules are listed separately.\n\n \n\n### ACT-style checks\n\nApply these checks to each enhanced tab set with two or more panels. Run the focus check for the implemented variant. Record pass, fail, not applicable or not run for each check.\n\n| Method and action | Expected result |\n| --- | --- |\n| Inspect the DOM and accessibility tree. Compare the tab list, each tab and its panel. | There is one named `tablist` containing named `tab` controls. Each tab’s `aria-controls` resolves to one distinct `tabpanel`. Each panel’s `aria-labelledby` resolves to its own tab. The active panel follows the tab list in source order. |\n| Activate each tab with the supported keyboard commands, touch and pointer in separate runs. | All controls are operable. Exactly one tab has `aria-selected=\"true\"`. Every other tab has `aria-selected=\"false\"`. The matching panel alone is visible and available to assistive technology. |\n| Put a link or other control in a panel. Select another tab, then Tab through the interface and browse with a screen reader. | The selected panel’s content is readable and its controls are reachable. The hidden panel and its controls cannot be reached visually, by keyboard or through screen reader browsing. |\n| Inspect the tabs at rest and with keyboard focus on an unselected tab where the variant allows it. Repeat in forced colours. | Each label identifies its panel. Tabs look operable and related to the visible panel. Selection and keyboard focus have distinct visible indicators. |\n| For standard tabs, enter the tab list from outside, use the orientation’s arrow keys and activate a tab. Then Tab into the panel and Shift+Tab back from its start. | Entry is on the selected tab. Arrow keys move focus and wrap. Manual activation retains selection until Enter or Space. Automatic activation selects as focus moves. Activation by keyboard keeps focus on the tab. Tab reaches the panel or its first meaningful control. |\n| For the existing focus-moving variant, Tab through the tabs and activate one. Inspect focus and press Tab, then repeat the activation and press Shift+Tab from the panel. | Every tab is reachable. Activation focuses the visible, named panel programmatically. The panel itself is outside the Tab sequence. The next Tab moves into or past its content and Shift+Tab from the panel returns to the tab list. |\n\n### Fallback, layout and history checks\n\n| Method and action | Expected result |\n| --- | --- |\n| Block scripts and reload. Activate each in-page link with the keyboard. | All sections are visible and have headings. Each link reaches its section and the user can continue from there. Tab roles and states are absent. |\n| Load a direct link to a panel, then load a link to an element inside an initially hidden panel. Repeat with an unrelated fragment. | The matching panel is visible before its target is reached. A fragment outside the tabs keeps its normal destination. |\n| If selection updates the URL, select two different tabs from the initial URL, then use Back and Forward. | The visible panel and selected tab follow the URL, including when returning to the initial URL. Focus remains visible and usable. |\n| Enlarge text and then separately narrow the viewport. Use the controls again, including any vertical layout. | Labels stay readable, selection and focus stay clear, and the visible orientation matches the keyboard commands. |\n\n### Supplied QA scripts\n\n- [Tabs](qa/supplied/tabs.md) — Apply panel-focus and individual Tab-stop expectations only to the documented panel-focus variant. Use the standard tabs checks for roving focus and arrow keys.\n\nRead the [applicability and review notes](qa/Review.md) before using these scripts for release decisions.\n\n### Related W3C ACT rules\n\nApply these proposed rules where their applicability conditions are met. Use the pattern checks above to verify behaviour and outcomes beyond their scope.\n\n- [ARIA required owned elements (bc4a75)](qa/w3c-act/bc4a75.md)\n- [Element with role attribute has required states and properties (4e8ab6)](qa/w3c-act/4e8ab6.md)\n- [Element with aria-hidden has no content in sequential focus navigation (6cfa84)](qa/w3c-act/6cfa84.md)\n\n \n\n## Sources\n\n- [Tabs: ARIA Authoring Practices Guide](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/)\n- [Tabs, Used Right](https://www.nngroup.com/articles/tabs-used-right/)\n- [Danger! ARIA Tabs](https://simplyaccessible.com/article/danger-aria-tabs/)\n- [In-Page Links and Input Focus](http://accessibleculture.org/articles/2010/05/in-page-links/)\n- [Removing Semantics Using The Presentation Role](https://www.accessibility-developer-guide.com/examples/sensible-aria-usage/presentation/)\n- [Reading Commands and Cursors](https://doccenter.freedomscientific.com/doccenter/doccenter/rs11f929e9c511/2012-04-24_teachersandtrainers-l7/02_jawsandmagicreadingcommandsandcursors.htm)\n- [Historical reference for the `-ms-high-contrast` media query](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/-ms-high-contrast)\n- [WCAG 2.1 Focus Order](https://www.w3.org/TR/WCAG21/#focus-order)\n- [ARIA required owned elements (bc4a75)](https://www.w3.org/WAI/standards-guidelines/act/rules/bc4a75/proposed/)\n- [Element with role attribute has required states and properties (4e8ab6)](https://www.w3.org/WAI/standards-guidelines/act/rules/4e8ab6/proposed/)\n- [Element with aria-hidden has no content in sequential focus navigation (6cfa84)](https://www.w3.org/WAI/standards-guidelines/act/rules/6cfa84/proposed/)\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"Tabs.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/Tabs.md","source_start_line":1,"source_end_line":128,"source_document_sha256":"5dd0fe22c6bfdcc27f856e8064a822b124679490eefdf7aaf5cfcb833cc22b3d","text_sha256":"5dd0fe22c6bfdcc27f856e8064a822b124679490eefdf7aaf5cfcb833cc22b3d","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-typography","title":"Typography","text":"---\ntitle: Typography\ndescription: Communicate with type in ways that do not create barriers for people with visual impairments, learning difficulties, or other reading conditions.\n---\n\n# Typography\n\nThe legibility of every web component that includes text is affected by the design and implementation of web typography. Users may be excluded from content based on how typographic features are implemented. Apply type choices alongside [Colour, Contrast and Meaning](Colour%2C%20Contrast%20and%20Meaning.md) and [Layout](Layout.md). For viewport setup and zoom behaviour, see [Page Metadata](Page_Metadata.md). \n\n## Typeface\n\nWhen choosing a typeface to use with body text, select a typeface that emphasizes clarity and legibility. Using a decorative or stylized typeface should be limited to the display of a logotype or a text-based decoration.\n\nThe traits that make a typeface more or less readable can be difficult to isolate, identify, and measure. The list below lists the factors that must be considered when selecting a typeface.\n\n1. Use a typeface appropriate to your audience and the organization's brand.\n2. Avoid imposter letter shapes designed to be very similar to other letter shapes.\n3. Ensure there is no mirroring.\n4. Letters should be easily distinguishable from one another.\n5. Humanist typefaces are generally more legible at smaller sizes than grotesque typefaces.\n6. Ensure the typeface has adequate letter spacing.\n7. There should be a visible difference between capital height and ascenders.\n8. Test the suitability of any typeface/font in context.\n\nBe consistent and stick to a small number of typefaces, two or three, for example. \n\n### Dyslexia-friendly typefaces\n\nDyslexia is one of the reading difficulties most commonly thought to be affected by the choice of typeface. Several typefaces have been developed and marketed as better for dyslexic readers, but the research data around those claims are largely anecdotal.\n\nIn one of the few large quantitative studies that measured the entire range of traits that affect readability across several popular typefaces, including those specifically marketed as being better for readers with dyslexia, the evidence was decidedly _mixed_. Only about 20% of the test subjects identified as having dyslexic traits preferred a dyslexia-friendly typeface. \n\nThis result was confirmed by other studies that measured the effort and effectiveness of reading using different fonts.\n\n> \"...font types impact the readability of people with dyslexia. Good fonts for people with dyslexia are Helvetica, Courier, Arial, Verdana, and CMU, taking into consideration both reading performance and subjective preferences.\" \n\nThis suggests that the traits that make a typeface preferable to readers are more complex than letter shapes. For this reason, it is essential to do user testing with your audience, including those with reading difficulties, before deciding on a typeface.\n\n## Line length\n\nBody text should be kept to a line length that allows for comfortable reading.\n\n> \"...long lines of text are typically perceived by users as intimidating and overwhelming. As a result, users faced with overly long lines of text are more likely to avoid reading the text.\" \n\nThe ideal line length will naturally be relative to the font size used. Commonly accepted recommendations say to aim for between 50 to 70 total characters per line (including spaces and punctuation), equating to between 10 to 18 words per line. \n\n> \"If the eye must traverse great distances on the page, the reader is easily lost and must hunt for the beginning of the next line. Quantitative studies show that moderate line lengths significantly increase the legibility of text.\" \n\nThis advice should always be applied to blocks of text on larger screens. Exceptions can be made to allow shorter-than-ideal lines in exceptional circumstances, such as block quotes, asides, and call-outs. And there may be times when text lines must be wrapped to less-than-ideal lengths to maintain a large-enough font size on smaller screens.\n\nControlling the line length of a web element will require taking into account the context of that element, too: margins, padding, and min and max widths of any container elements, for example, will all have an effect. You can eliminate at least one of those variables from your calculations, the font size, by specifying the maximum width of your text container using the `ch` unit. This will allow you to set line length according to the number of characters displayed.\n\n```css\n.card .card__body {\n max-width: 70ch;\n}\n```\n\nBy definition, a single `ch` unit is equivalent to the width of the \"0\" (zero) character in the typeface and font size used to render it. So by setting an element's `max-width` to `70ch`, we limit the length of a line in that element to no more than seventy \"0\" characters.\n\nAs a quick rule of thumb, you should be able to fit the English alphabet about two and a half times (totaling 65 characters) on a line. If you can fit _three alphabets_ on a line, your lines are too long.\n\n## Font size\n\nThe [Web Content Accessibility Guidelines](https://www.w3.org/WAI/standards-guidelines/wcag/) (WCAG) do not specify a minimum font size for the web. This is likely because no single size will be exactly right for everyone, for every font, or every circumstance. Two fonts displayed at the same point size may appear relatively larger or smaller than each other due to differences in their [_x-height_, _em-square_](https://fonts.google.com/knowledge/choosing_type/exploring_x_height_the_em_square), and baseline position values.\n\nThere is a range [of other variables](https://www.w3.org/WAI/WCAG21/Understanding/reflow.html#viewing-distance-and-display-resolution) to consider, such as the distance from the reader to the screen, the screen size, and the screen resolution. A font size large enough for a desktop monitor may not be adequate for a handheld device.\n\nChoosing the best font size is especially important for body text, as multiple typographic characteristics conspire to create a good or bad reading experience. Use 16 CSS pixels (12 points) as a starting point for body text and adjust for the typeface and reading context. Treat this as design guidance. Only supplemental text such as logotypes and tangential, non-essential content should use font sizes smaller than the body text.\n\nUsers must not be prevented from overriding a webpage's font size with adjustments they may prefer or require.\n\n### Use size to indicate hierarchy\n\nMake headings visually stand out so readers can quickly scan the webpage to see how it is organized. Using a larger text size for headings, between 2.5 and 1.5 times the body text size, as well as increased font weight or contrast, will make each section easier to find and navigate.\n\n## Responsiveness\n\nIt is common practice to implement the layout of a webpage so that the elements reflow to accommodate different viewport sizes. By collapsing tangential elements, such as headers or navigation, or resizing images at smaller breakpoints, you can keep the core content of the webpage readily visible.\n\nUsers may trigger reflow by changing the window size, device orientation or page zoom. For vertically scrolling content, check that users can read and operate it at a viewport width equivalent to 320 CSS pixels without scrolling in two directions, except where a two-dimensional layout is essential to use or meaning. A 1280 CSS pixel viewport at 400% zoom is one way to reach that width. \n\n### Page zoom\n\nPage zooming is supported by practically all browsers and devices, using gestures, key combinations, or settings. All elements appear larger when a page is zoomed to greater than 100%, and this can be a helpful solution when users need to magnify an entire webpage to make it more perceivable.\n\nCertain HTML meta tags will disable the page zoom feature. A \"viewport\" meta tag that includes the `user-scalable=no` key/value in the `content` attribute creates a barrier for users who need to use page zoom. This unnecessarily limits users and must be avoided. An accessible meta tag is shown below:\n\n```html\n \n```\n\n### Text resize\n\nBrowsers such as Chrome and Firefox have preference settings that allow the user to override the size of just the text of a page, leaving all other elements displayed at their default sizes. This is separate from any page zoom adjustment and applies to all websites and pages displayed in the browser, whereas using page zoom only affects the single website where it is changed.\n\nThe user should be able to resize body text up to 200% of its original size while keeping all text visible and fully readable without clipping or overlapping.\n\n```css\n/* do not clip text that overflows a fixed container */\n.card .card--body {\n width: 300px;\n height: 200px;\n overflow: hidden;\n}\n```\n\nAn example of inaccessible text in a shopping cart that has become unreadable when resized to 160%. Most of the visible details of the purchase are clipped when they overflow their fixed-size container element.\n\n#### Units can prevent resize\n\nText resizing is prevented in many browsers for elements styled with an absolute-sized unit such as `cm`, `mm`, `in`, `pt`, or `px`. Contrast that with the `em` unit, a relative-sized unit originally based on the size of the uppercase letter \"M\" character in the typeface used. For example, in 12-point type, an `em` is 12 points, and in 60 point type, an `em` is 60 points. Confusing the matter, however, an element's `em` scale is also relative to the font size of its parent elements. \n\nThe `rem` unit is like an `em,` but it is always relative to the size of the document's _root element_ (the top-level, ``, element of a webpage). If the root element doesn't have a font size assigned, then the browser default, typically 16px, is used (although the user may override this). Using the `rem` unit, the size is always calculated relative to the root element.\n\n```css\nhtml {\n font-size: 62.5%; /* of 16px by default = 10px */\n}\n\nh1 {\n font-size: 2.4rem; /* 2.4 times the root size = 24px */\n}\n\n.small {\n font-size: 1.2rem; /* equivalent to 12px */\n}\n```\n\n### Screen magnification\n\nIn contrast with Text Zoom and Resizing Text, the Screen Magnification setting simulates the view you would have if you were to look at your screen through a magnifying lens: _everything_ on the screen being magnified will appear up to 64 times larger, including the browser menus and other OS controls. Unlike Zoom, Screen Magnification will not trigger responsive layout changes. Just like a handheld magnifying lens, the user will only see a limited portion of the screen at any given time and must move the magnifier across and around the screen to see it all.\n\nWhen designing for screen magnification, do not assume that the user can see all of the screen at once. When text appears in one part of the screen in response to an interaction in another part, the new text may be unseen by a screen magnification user.\n\nA screen magnification user will naturally drag their cursor around the screen to see all parts of the webpage. You should not require the user to hover over one specific element to reveal the content or hide it whenever they move their cursor away.\n\n## Font weight\n\nAvoid using light or thin font weights for body text. Even at maximum contrast, delicate letter shapes can be difficult to read at body text sizes by people with low contrast perception. Choose a regular font weight for the body text.\n\nIt's important to remember that users can adjust font sizes and typefaces through their browser settings. It's the layout's job to adapt to such restyled text and ensure that it isn't cropped or overlapping with nearby content, even if the text is rendered slightly wider.\n\n### Example of overly light font weight\n\nThe following examples show the relative legibility of text rendered with the same color contrast but different weights. The top sample uses an extra light weight of 100, while the bottom example uses a regular weight of 400.\n\n```html\n\nSo saying, she breaks off her speech midway and flees in anguish from the light, turning away, tearing herself from his sight, and leaving him in fear and much hesitance, and ready to say much.\n
\n\nSo saying, she breaks off her speech midway and flees in anguish from the light, turning away, tearing herself from his sight, and leaving him in fear and much hesitance, and ready to say much.\n
\n```\n\n## Spacing\n\n### Intra-letter spacing\n\nStudies show that when letter spacing (also known as \"tracking\") is overly tight, it can lower users' reading performance. Choosing a typeface with comfortable spacing will enable readers to scan your text more easily, quickly, and accurately.\n\nThe ideal letter spacing will depend on the typeface, font weight, and font size. Generally, the heavy or smaller-sized text will benefit from looser letter spacing than lighter or larger-sized text.\n\nIf your design supports a \"dark mode,\" you will likely find that light-colored text on a dark-colored background is more readable when using looser letter spacing.\n\n### Intra-line spacing\n\nYou should use a line height between 140% and 200% to keep the text density sparse enough for readability and accessibility. This may require trial and error: each typeface has a unique combination of x-height, ascender, and descender size that affects the appearance of line spacing.\n\nExtra space should be used to separate paragraphs visually. Use enough extra space to clarify the separation of paragraphs: make sure there are at least 1.5 times as much white space between paragraphs as between text lines. \n\n### Margins \n\nMargins create visual separation and grouping. When one element introduces, describes, or otherwise conceptually links to another, it's helpful for the related elements to be visually connected. For example, margins should be used to group a heading with the text it introduces visually, lowering ambiguity and cognitive dissonance barriers for readers. Apply at least 1.5 times the margin around the related elements as is visible between them.\n\n### Allow adjustments\n\nThere must be no loss of information or functionality when users need or prefer to override page styles to a reasonable degree: ensure that your webpage is still fully usable when paragraph spacing is set to 2 times the font size, line height, and spacing at 1.5 times the font size, word spacing at 16% and letter spacing at 12% the font size. \n\n## Alignment and justification\n\nFor left-to-right languages, use a left-aligned layout of body text with an unjustified (ragged) right edge; do not fully justify text. Fully justified alignment of text is problematic for many readers because it creates uneven gaps between characters and between words. These flowing patterns of whitespace can be very distracting for some readers.\n\n## Hyphenation\n\nEffective hyphenation becomes more critical when displaying text in narrow columns. You may not see the need at regular font sizes, but in cases where the user overrides font size, creating wider words in a fixed space, hyphenation becomes critical.\n\nIf you operate a multilingual website, you should be aware that browsers are unreliable when hyphenating across different languages. If in doubt, you can manually specify where hyphens should appear using the invisible `` entity (representing a soft or syllable hyphen, abbreviated SHY ) in the text content yourself.\n\nDo not disable hyphenation, especially when applied to fully justified text passages.\n\n### Example of hard-to-read justification\n\nBy setting the CSS `hyphens` property to `none`, this stylesheet makes the mistake of preventing any hyphenation. This, combined with the fully justified alignment and relatively narrow column width, results in a hard-to-read block of words. \n\n```css\n/* do not fully justify body text, do not disable hyphenation */\np {\n hyphens: none;\n text-align: justify; \n}\n```\n\n#### Result of poorly justified text\n\nNotice the awkward gaps created by the layout resulting in distracting visual rivers and pools of whitespace. This makes reading difficult in general but is significantly disabling for people with reading difficulties.\n\n```html\n\nAvoid plain English altogether, and you could end up being periphrastic (speaking in a roundabout way). Get too carried away and you'll certainly become pleonastic (using superfluous words). And use words like sesquipedalian and you'll already be displaying sesquipedalian behaviour (it means using long words).\n
\n```\n\n### Example of more accessible justification\n\nSetting the CSS `hyphens` property to `auto` allows the browser to decide when and where to add hyphens.\n\n```css\np {\n hyphens: auto;\n text-align: left; \n}\n```\n#### Result of better-justified text\n\nThe browser will automatically optimize whitespace, and the text should visually flow along each line from one to the next.\n\n```html\n\nAvoid plain English altogether, and you could end up being periphrastic (speaking in a roundabout way). Get too carried away and you'll certainly become pleonastic (using superfluous words). And use words like sesquipedalian and you'll already be displaying sesquipedalian behaviour (it means using long words).\n
\n```\n\n## Language direction\n\nThe HTML `lang` and `dir` attributes relate to how justification and alignment are applied. It can also affect how the screen reader and [text-to-speech](https://www.w3.org/WAI/perspective-videos/speech/) software interprets and pronounces the text it is speaking.\n\n> When authors specify the correct natural language of content, user agents, including assistive technologies, can present text more accurately. Screen readers can load the correct pronunciation rules and braille tables for languages. \n\nWhen creating content for a multilingual audience, ensure that the document root element at least has a base language and direction specified. This will ensure that your lines of text are rendered correctly on _all_ devices. Don't assume that the browser will correctly guess the direction from the language; it often won't. \n\nFor short exceptions like a single paragraph rendered in a different language, Farsi, for example, override those attributes on that section: ``.\n\n## Text styling\n\nUsing style judiciously to highlight and draw attention to specific words is an excellent way to add meaning and clarity to the text. Be sparing and consistent in your application of these styles. Avoid long passages of italicized, underlined, bolded, or all-caps text. In body text, these treatments can make reading uncomfortable and difficult.\n\n## Text contrast\n\nBody text must be presented with a contrast ratio of at least 4.5 to 1. Large-scale text may use a minimum of 3:1. For common Latin fonts, this means at least 18 pt (24 CSS px), or 14 pt (about 18.7 CSS px) if bold. Logotypes, incidental text, or purely decorative text have no contrast requirements. \n \nWeb browsers will default to displaying black text on a white body element. Those sensitive to very high contrast may find this difficult to read for long passages. Setting the body text color to dark gray and the background color off-white is a reasonable compromise.\n\nIt is impossible to choose a color combination that works for everyone; some users will need or prefer custom color schemes. Check that your webpage is still usable with custom color schemes applied in the system or browser settings. \n\n> \"...some people need low brightness, especially for backgrounds. Some people who need low brightness for backgrounds also need low brightness overall and thus need low-brightness text. Other people need high contrast between text and background, including many older people who lose contrast sensitivity from aging. Some read better with dark text on a light background.\" \n\n### Examples of high-contrast text\n\nCompare the two examples. The first uses black on white and results in very high contrast.\n\n```html\n
\nTo me every hour of the light and dark is a miracle,\nEvery cubic inch of space is a miracle,\nEvery square yard of the surface of the earth is spread with the same,\nEvery foot of the interior swarms with the same.\n
\n```\n\nThe second example uses dark gray on off-white, resulting in a more comfortable contrast.\n\n```html\n\nTo me every hour of the light and dark is a miracle,\nEvery cubic inch of space is a miracle,\nEvery square yard of the surface of the earth is spread with the same,\nEvery foot of the interior swarms with the same.\n
\n```\n\n### Example of a user-defined override\n\nThis custom stylesheet shows one way a user may override the website's default.\n\n```css\nbody * {\n background-image: none !important;\n color: #000 !important;\n background-color: #fff !important;\n}\n```\n\n## Checkpoints for the Tester\n\n1. Ensure that the body font is large enough to read comfortably. For most fonts, ensure a minimum size of 16px for body content.\n2. Ensure a line length that promotes comfortable reading. At most, 60 to 75 characters per line are acceptable and aim for about 65 characters per line. Shorter lines are permitted for text, such as captions, marginal text, and forms.\n3. Ensure that the chosen body copy typeface is legible. Refer to the list of factors in this guideline.\n4. Check the document headings to define the content's hierarchy visually. Styles should allow the headings to stand out when the page is quickly scanned.\n5. Ensure a line height that can be comfortably read in relation to the font size. Body copy should be at least 1.5, headings about 1.3, and captions or short lines about 1.3.\n6. Ensure that the body copy is not fully justified. In languages read left-to-right, the copy should be left-justified, for example.\n7. Ensure that the text weight of the body copy is not too light to make it hard to read; a font weight of at least 400 is required for most fonts.\n8. Ensure that the font size of the body text can be overridden by adjusting the browser settings (if available).\n\n### Implementation notes\n\nIn Chrome go to _Preferences > Appearance > Customize fonts_. In Firefox, go to _Settings > Language and Appearance_, remembering to click the \"Zoom text only\" checkbox.\n\nIn Windows, go to the Magnifier setting under the _Ease of Access section in the Windows control panel_.\n\n## Sources\n\n- [Readability: The Optimal Line Length](https://baymard.com/blog/line-length-readability)\n- _Typographie: A Manual on Design_, Emil Ruder\n- _Web Style Guide - Basic Design Principles for Creating Website_, Patrick J. Lynch and Sarah Horton\n- _The Elements of Typographic Style_ Robert Bringhurst\n- [Presentation (video) Don't Believe The Type! - axe-con 2021](https://www.youtube.com/watch?v=h8IOqUl1zII)\n- Quoted from _[A Guide to Understanding What Makes a Typeface Accessible](https://medium.com/the-readability-group/a-guide-to-understanding-what-makes-a-typeface-accessible-and-how-to-make-informed-decisions-9e5c0b9040a0)_\n- _[Good Fonts for Dyslexia](https://www.dyslexia-reading-well.com/support-files/italian_study_on_fonts_2013.pdf)_, Luz Rello and Ricardo Baeza-Yates\n- _Design Guidelines for Web Readability_, Aliaksei Miniukovich, Antonella De Angeli, Simone Sulpizio, Paola Venuti\n- _Extra-large letter spacing improves reading in dyslexia_, Zorzi, Barbiero, Facoetti, Ziegler\n- [Internationalization Best Practices for Spec Developers](https://www.w3.org/TR/international-specs/#bidi_lang)\n- _Method: HTML lang attribute indicates the language of text_, [WCAG 3 Methods](https://www.w3.org/WAI/GL/WCAG3/2022/methods/html-lang-attribute/)\n- \"The working group feels that 200% is a reasonable accommodation that can support a wide range of designs and layouts and complements older screen magnifiers that provide a minimum magnification of 200%.\" _Understanding Success Criterion 1.4.4 Resize Text (Level AA)_, [WCAG 2.1](https://www.w3.org/WAI/WCAG21/Understanding/resize-text)\n- _Accessibility Requirements for People with Low Vision_, [W3C Editor's Draft 04](https://w3c.github.io/low-vision-a11y-tf/requirements.html#text-contrast)\n- _Contrast (Minimum)_, [Understanding WCAG 2.0](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html)\n- Sample text from _The Guardian_, [Move over, George Orwell -- this is how to sound really clever](https://www.theguardian.com/media/mind-your-language/2013/oct/11/mind-your-language-long-words), Gary Nunn\n- _Understanding Success Criterion 1.4.10: Reflow_, [WCAG 2.1](https://www.w3.org/WAI/WCAG21/Understanding/reflow.html)\n- _Understanding Success Criterion 1.4.12: Text Spacing_, [WCAG 2.1](https://www.w3.org/WAI/WCAG21/Understanding/text-spacing.html)\n- _Success Criterion 1.4.8 Visual Presentation_, [WCAG 2.1](https://www.w3.org/TR/WCAG21/#visual-presentation)\n- _[Change color contrast in Windows](https://support.microsoft.com/en-us/windows/change-color-contrast-in-windows-fedc744c-90ac-69df-aed5-c8a90125e696)_\n- [Web Content Accessibility Guidelines](https://www.w3.org/WAI/standards-guidelines/wcag/)\n- [_x-height_, _em-square_](https://fonts.google.com/knowledge/choosing_type/exploring_x_height_the_em_square)\n- [of other variables](https://www.w3.org/WAI/WCAG21/Understanding/reflow.html#viewing-distance-and-display-resolution)\n- [text-to-speech](https://www.w3.org/WAI/perspective-videos/speech/)\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"Typography.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/Typography.md","source_start_line":1,"source_end_line":336,"source_document_sha256":"77a8fffde748da340d8530345873a3961206ecf2c09d4acad77b31ae1eef5585","text_sha256":"77a8fffde748da340d8530345873a3961206ecf2c09d4acad77b31ae1eef5585","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-video-controls","title":"Video Controls","text":"---\ntitle: \"Video Controls\"\ndescription: \"Help people operate web video and use its accessibility features.\"\n---\n\n# Video Controls\n\n## Contents\n\n- [Introduction](#introduction)\n- [Recommended markup](#recommended-markup)\n- [Recommended layout](#recommended-layout)\n- [Recommended behaviour](#recommended-behaviour)\n- [Build this pattern](#build-this-pattern)\n- [Testing Approach and ACT Scripts](#testing-approach-and-act-scripts)\n- [Sources](#sources)\n\n## Introduction\n\nHelp people start, pause and seek through a video, control its sound and reach the available access services. Start with native browser controls. If you build a custom player, keep its most-used actions easy to find and preserve access when the enhancement fails. Use [Accessible Interactive Media Control](https://github.com/Double-FW/Inclusive-Media-Interfaces/blob/main/Accessible_Interactive_Media_Control.md) for broader media interaction and input guidance.\n\n## Recommended markup\n\nStart with the native video element and its controls. Use labelled buttons and a labelled range input when adding custom controls.\n\n## Recommended layout\n\n \n\n- Keep Play/Pause first in the custom player’s control sequence and Mute/Unmute next where the player offers it. Keep the remaining controls in visual and keyboard order. Use familiar symbols and clear labels. Give each control a visible focus indicator and enough room to select it by touch or pointer. See [Focus](Focus.md#focus-indication) and [pointer target guidance](Call%20to%20Action.md#give-pointer-users-room-to-activate-the-action).\n- Keep on/off controls for captions and audio description in the main custom controls when those services are available. A menu can offer track, language or style choices. If audio description is provided through a separate video, offer a clearly labelled link beside the player. See [caption and subtitle guidance](https://github.com/Double-FW/Closed-Caption-Subtitles/blob/main/Closed_Caption_Subtitle_Guidelines.md) for preparing and displaying tracks.\n- Let the timeline use the available width, and wrap controls in order when space narrows. Keep controls and captions from obscuring one another. Check the slider track, thumb, buttons and focus indicator in [forced colours](Colour%2C%20Contrast%20and%20Meaning.md#focus-and-icons-in-forced-colours). A native slider style is a useful fallback when a custom style loses its track or thumb.\n\n## Recommended behaviour\n\n \n\n### Playback and sound\n\nWait for the person to activate a clearly labelled Play control by default. Keep video paused on page load, pointer hover, keyboard focus and scrolling into view. People use those actions to navigate and read. Unexpected sound can mask screen reader speech, and unexpected motion can interrupt reading or make it harder to keep track of the page.\n\nIf the person explicitly opts in to autoplay, start muted and keep Pause, sound controls and the autoplay opt-out easy to reach. Muted playback still introduces motion. Keep sound off until the person chooses to hear it. Honour reduced motion by suppressing automatic starts and leaving the person free to start an informational video themselves.\n\n### Looping and playing the next video\n\nEnd playback after one pass and offer Replay or a clearly labelled choice of the next video. If you offer looping or auto-next, keep each off by default and make it easy to turn off. Pause must stop the current video and cancel any pending start. A paused video must stay paused when the person moves focus away or scrolls away and back. Turning off auto-next must prevent the next item from starting, including after navigation. Keep focus predictable and let people tell which video is playing in an opted-in sequence.\n\nFollow [Motion and Animation](Motion%20and%20Animation.md#autoplay) for automatic motion and sound thresholds. For decorative video behind brochure or landing-page content, use the [background video pattern](Motion%20and%20Animation.md#background-video).\n\nUse native buttons for custom actions. Where the button names the next action, change ‘Play’ to ‘Pause’ or ‘Mute’ to ‘Unmute’ when the media state changes. Keep the text, accessible name and icon in sync. A stable label with `aria-pressed` can suit an on/off control such as ‘Captions’.\n\nDerive controls from the actual media state, including changes initiated by native or platform controls. Return to ‘Play’ when playback ends. If a play request fails, show the current state and say how to retry or use an alternative. Give timely, perceivable feedback for buffering, unavailable media or other interruptions. Use [persistent inline feedback](Notifications%20and%20Status%20Messages.md#persistent-inline-feedback) for messages people need to read or act on.\n\nKeep controls visible while they contain keyboard focus. Make them easy to reveal with the supported inputs if they fade during playback. Let people interrupt an action and move out of the player with the usual navigation commands.\n\n### Seek through the video\n\nProvide a labelled native range input for a custom seek control. Let people move it with keyboard commands, touch and pointer. Show the current position and duration, and keep the visible position, range value and accessible time in sync during playback and after a seek.\n\nFor a recording, use seconds for `min`, `max` and `value`, and set the maximum from the duration when it becomes known. Use `aria-valuetext` for a readable value such as ‘15 seconds of 1 minute 35 seconds’. Let the native input expose the numeric values. Keep routine playback updates out of live regions.\n\nFor live media, use the actual seekable window if the stream supports seeking. When seeking is unavailable, remove or disable the seek control and explain its availability where that helps people understand the player.\n\n \n\n## Build this pattern\n\n[Build Video Controls from the prompt and acceptance scenarios](build-patterns/Video%20Controls.md).\n\n\n \n\n### Markup example\n\nThis baseline uses native playback and text-track controls. Replace the example media and track paths with working assets. Use `kind=\"captions\"` for tracks that include dialogue and relevant sounds. Label each track in the player so people can find the right language. The link outside the player remains available if the browser supports video but cannot load the source.\n\n[View the original code for this example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L72-L81)\n\nSelect a fallback that can be used independently, such as an accessible video destination or a download with its matching caption file where appropriate. Provide access to the transcript or described version when supplied.\n\nKeep custom controls hidden until their event handling, state updates and available access services work. Replace the native controls only then. If the enhancement fails, restore native controls and keep alternative access links available. See [Progressive Enhancement](Progressive%20Enhancement.md).\n\n### Timeline markup\n\nThis snapshot shows a finite recording 15 seconds into a 95-second duration. It needs script to update the slider and visible time from the media, and to seek when the person moves the slider. Keep these updates in step with confirmed position changes.\n\n[View the original code for this example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L91-L96)\n\n## Testing Approach and ACT Scripts\n\nTest the supported variants. Record the method, browser and assistive technology where relevant, and compare the observed result with the expected behaviour.\n\n \n\nRun the checks on the supported browsers, devices and assistive technologies. Use a recording with captions and test audio description and each other access service where supplied.\n\n| Method and action | Expected result |\n| --- | --- |\n| Block scripts and reload. Repeat with an enhancement failure. Simulate an unavailable media source. | Native controls remain usable when media loads. A media error is clear and any supplied alternative stays reachable. Uninitialised controls do not appear. |\n| Tab into the custom controls, start and pause playback, mute and unmute, then let playback end. Where available, change state using platform controls as well. | Play/Pause comes first and Mute/Unmute comes next where present. The control label, accessible name, icon and playback state agree. The final playback action is Play. Focus remains visible and can leave the player. |\n| Enable and disable captions and audio description. Check alternate tracks or the described version if provided. | On/off controls for available services are easy to find. The selected state agrees with what is shown or heard. Captions are legible, synchronised and clear of the controls. |\n| Seek by keyboard, touch and pointer. With a screen reader, check the value before and after seeking, and listen during normal playback. | The video moves to the requested position within the available range. Visible and accessible elapsed time and duration agree. Continuous playback does not create repeated live announcements. |\n| Wait for controls to fade, then return to the player by keyboard and touch. Enable forced colours and repeat. Check enlarged text and narrow layouts separately. | Controls can be revealed without hover. Focused controls stay visible. Labels, states, slider parts and focus remain distinguishable and targets stay usable. |\n| With autoplay off, load the page, move the pointer across the video, Tab into its controls and scroll it out of view and back. Then activate Play. | The video stays paused and silent until Play is activated. Playback starts and the control reflects its state. |\n| If opt-in autoplay is supported, enable it and reload. Pause the video, move focus away and scroll away and back. Turn autoplay off and reload. In a separate run, reload with reduced motion enabled. | Opted-in playback starts muted. A paused video stays paused during navigation within the page. Turning autoplay off or enabling reduced motion prevents automatic starts on load. The Play control remains usable for informational video. |\n| Let a clip finish with loop and auto-next off. Where those options exist, test them separately. Pause near the end or during any auto-next countdown. Turn auto-next off, navigate to another video and let it finish. | The default is one play-through. Each opted-in mode behaves as labelled. Pausing cancels any pending start. The next item waits for activation after opt-out, and focus remains usable throughout. |\n| Interrupt playback or seek with buffering, then simulate a playback failure. | Feedback is perceivable, controls reflect the actual state and the available recovery action is clear. |\n\n### Supplied QA scripts\n\n- [Toggle Button Test Criteria](qa/supplied/toggle-button.md) — Apply only to a stable-label toggle. Use the guide’s own checks for changing Play/Pause or Mute/Unmute action labels.\n\nRead the [applicability and review notes](qa/Review.md) before using these scripts for release decisions.\n\n### Related W3C ACT rules\n\nApply these proposed rules where their applicability conditions are met. Use the pattern checks above to verify behaviour and outcomes beyond their scope.\n\n- [Video element auditory content has captions (f51b46)](qa/w3c-act/f51b46.md)\n- [Button has non-empty accessible name (97a4e1)](qa/w3c-act/97a4e1.md)\n- [Form field has non-empty accessible name (e086e5)](qa/w3c-act/e086e5.md)\n\n \n\n## Sources\n\n- [Accessible web video controls in Inclusive Media Interfaces](https://github.com/Double-FW/Inclusive-Media-Interfaces/blob/main/Accessible_Video_Controls_Organisation_Agnostic_Draft.md)\n- [MDN: Using the ARIA group role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_group_role)\n- [What is an accessible name?](https://developer.paciellogroup.com/blog/2017/04/what-is-an-accessible-name/)\n- [IE focus bugs with focusable elements](https://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4)\n- [Styling Cross-browser compatible range inputs](https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/)\n- [CSS flex shorthand](https://css-tricks.com/almanac/properties/f/flex/)\n- [Autoplay Policy Changes](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes)\n- [Accessible Interactive Media Control](https://github.com/Double-FW/Inclusive-Media-Interfaces/blob/main/Accessible_Interactive_Media_Control.md)\n- [caption and subtitle guidance](https://github.com/Double-FW/Closed-Caption-Subtitles/blob/main/Closed_Caption_Subtitle_Guidelines.md)\n- [Video element auditory content has captions (f51b46)](https://www.w3.org/WAI/standards-guidelines/act/rules/f51b46/proposed/)\n- [Button has non-empty accessible name (97a4e1)](https://www.w3.org/WAI/standards-guidelines/act/rules/97a4e1/proposed/)\n- [Form field has non-empty accessible name (e086e5)](https://www.w3.org/WAI/standards-guidelines/act/rules/e086e5/proposed/)\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"Video Controls.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/Video%20Controls.md","source_start_line":1,"source_end_line":138,"source_document_sha256":"f0d1648e42ca3eacda9761e13a4768d048c288d385ef59651c51d7bf78e27102","text_sha256":"f0d1648e42ca3eacda9761e13a4768d048c288d385ef59651c51d7bf78e27102","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-visually-hidden-content","title":"Visually Hidden Content","text":"---\ntitle: \"Visually Hidden Content\"\ndescription: \"Choose how content is hidden, keep visual and accessibility states consistent, and prevent focus, speech input and search barriers.\"\ndocument_id: \"cosmos-visually-hidden-content\"\ndocument_type: \"design_practice\"\nschema_version: \"1.0\"\nversion: \"1.0\"\nstatus: \"draft\"\nlanguage: \"en-GB\"\nrepository: \"Double-FW/Cosmos-UX-Design\"\nrepository_url: \"https://github.com/Double-FW/Cosmos-UX-Design\"\nscope: {\"platform\":\"web\",\"applies_to\":[\"content hidden from everyone\",\"content visually hidden but exposed to assistive technology\",\"content visible but hidden from the accessibility tree\"],\"excludes\":[\"component-specific disclosure, tab, dialog, popover and tooltip interaction contracts; use the owning pattern guide\"]}\nlicense: \"MIT\"\naudiences: [\"designers\",\"developers\",\"design system managers\",\"QA engineers\",\"AI agents\"]\nrelated_guidance: [\"ARIA and Screen Reader Usability.md\",\"Anchors and Links.md\",\"Focus.md\",\"Labels.md\",\"Icons.md\",\"Disclosure.md\",\"Accordion.md\",\"Page_Structure.md\"]\ntags: [\"hidden content\",\"visually hidden\",\"accessibility tree\",\"aria-hidden\",\"focus\",\"voice control\",\"screen readers\",\"progressive enhancement\"]\n---\n\n# Visually Hidden Content\n\nUse this guide when a design or implementation hides content visually, from assistive technology, or from both. Decide which people need the content and why before choosing a technique. Hiding changes what people can see, find, hear, navigate to and operate.\n\nFor ARIA decisions more broadly, see [ARIA and Screen Reader Usability](ARIA%20and%20Screen%20Reader%20Usability.md). For a component’s open and closed behaviour, use its owning guide, such as [Disclosure](Disclosure.md), [Accordion](Accordion.md), [Tabs](Tabs.md), [Modal Dialogs](Modal%20Dialogs.md) or [Information Panels](Information%20Panels.md).\n\n## Contents\n\n- [Choose the intended visibility](#choose-the-intended-visibility)\n- [Design and handover](#design-and-handover)\n- [Implementation guidance](#implementation-guidance)\n- [Use visually hidden text carefully](#use-visually-hidden-text-carefully)\n- [Focus, search and fragment navigation](#focus-search-and-fragment-navigation)\n- [Native patterns for revealing content](#native-patterns-for-revealing-content)\n- [Checks](#checks)\n- [Sources](#sources)\n\n## Choose the intended visibility\n\nFirst identify whether the content should be available to everyone, only to people using assistive technology, or only while a particular state is active.\n\n| Intended state | Visual presentation | Accessibility tree | Typical use |\n| --- | --- | --- | --- |\n| Hidden from everyone | Not rendered | Not exposed | Inactive content, such as a closed disclosure panel or an error message that does not currently apply |\n| Visually hidden, available to assistive technology | Not visually presented, but remains in the document and accessibility tree | Exposed | A concise text equivalent or context that is useful when navigating non-visually and would otherwise be redundant |\n| Visible, hidden from assistive technology | Rendered | Not exposed | A purely decorative icon or duplicate visual flourish whose meaning is already provided elsewhere |\n\nDo not call content “inaccessible” when you mean only that it is visually hidden or absent from the accessibility tree. State which people, presentation modes and interaction states are affected.\n\nThe table describes intended outcomes, not interchangeable techniques. A CSS rule, the HTML hidden attribute, and aria-hidden have different effects. Choose the implementation that creates the required visual state, accessibility-tree state and focus behaviour together.\n\n## Design and handover\n\nDocument the content and state, not just a CSS class or attribute. For each hidden item, specify:\n\n- what content is hidden and the user need it serves;\n- who should be able to perceive it: everyone, screen reader or other assistive technology users, or nobody in the current state;\n- the state or action that reveals or hides it, and how a person can operate that change with supported input methods;\n- whether it contains links, controls or other focusable elements;\n- what happens to focus when the content opens, closes, or becomes unavailable;\n- whether in-page search, a URL fragment, or a speech-input command should find the content;\n- how the implementation behaves if JavaScript or CSS is unavailable, where relevant.\n\nKeep the visual interface and programmatic presentation consistent. Content that is visible should normally be available to assistive technology. Hide visible content from the accessibility tree only when it is genuinely decorative or is a duplicate that would otherwise create confusing repetition. Do not hide meaningful text simply to shorten a screen reader’s output.\n\n## Implementation guidance\n\n### Hide content from everyone\n\nFor content that is not part of the current interface state, use a technique that removes it from visual presentation and the accessibility tree and prevents its descendants from receiving focus. The HTML hidden attribute or CSS display: none normally provides this outcome. Native patterns such as details and dialog manage their own states; use the relevant [component guide](README.md#design-patterns) for the full interaction contract.\n\nWhen an interactive region closes, move focus before hiding it if focus is inside the region. Return focus to the control that opened it when that is appropriate to the pattern. Do not leave keyboard focus inside hidden content.\n\nThe HTML hidden="until-found" state has different behaviour: browser find-in-page and fragment navigation can reveal its contents. Support and details vary, so test it in the product’s supported browsers. Do not add aria-hidden="true" to such content: this can leave revealed content visually present but unavailable to assistive technology.\n\n### Hide content visually but leave it in the accessibility tree\n\nA visually hidden utility can keep concise text in the document and expose it to assistive technology without taking up visual layout space. It is project CSS, not an HTML feature or a standard class name. Use a tested, shared utility rather than inventing slightly different implementations in each component.\n\nA common technique clips a small, absolutely positioned box and prevents wrapping. The following is an example only; check it against the project’s supported browsers, writing directions, zoom and text settings.\n\n~~~css\n.visually-hidden:not(:focus, :active, :focus-within) {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n~~~\n\nThis variant becomes visible when it or a descendant receives focus. Use that behaviour for content such as a skip link that is deliberately hidden until keyboard focus. Do not apply it indiscriminately to every visually hidden text string; focus behaviour belongs to the component contract. See [Page Structure](Page_Structure.md#the-main-landmark) and [Focus](Focus.md#visible-when-focused).\n\nAvoid positioning hidden content far outside the viewport. Large negative offsets can create horizontal scrolling, including in right-to-left layouts, and make focus behaviour harder to reason about.\n\n### Hide content from assistive technology only\n\nUse aria-hidden="true" only when content is visible but should not be represented in the accessibility tree, typically because it is decorative or duplicates an equivalent name or description already available.\n\n~~~html\n\n × \n \n~~~\n\nThe button remains named “Close dialog”; the decorative symbol is omitted from its name. See [Icons](Icons.md) for decorative graphics and [Labels](Labels.md) for control names.\n\nDo not put aria-hidden="true" on a focusable element or on a container with visible focusable descendants. A keyboard user could reach something that assistive technology is told does not exist. aria-hidden="false" on a child cannot undo aria-hidden="true" on an ancestor. Remove or move the hidden ancestor, or change the ancestor’s state.\n\naria-hidden does not visually hide content, remove it from keyboard focus, close a component, or manage focus. Do not use it as a substitute for hidden, CSS visibility, or a component’s state mechanism.\n\n## Use visually hidden text carefully\n\nExtra text can provide context when a link is encountered outside its surrounding paragraph or card, such as in a screen reader’s links list. However, hidden text also changes the accessible name. If the visible words are removed from the accessibility tree, speech-input users may be unable to activate the control by saying what they can see.\n\nPrefer concise visible link text that makes the destination clear. See [Anchors and Links](Anchors%20and%20Links.md). If hidden text is needed to add context, keep the visible label included in the accessible name and preferably at its start. Confirm the computed name and test the visible command with speech input. See [Labels](Labels.md) and WCAG [Label in Name](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html).\n\nFor example, this pattern keeps the visible words “Read more” in the accessible name while adding visually hidden context. It still leaves a generic visual label, so a clearer visible link is usually preferable.\n\n~~~html\n\n Read more about the study of wild ponies: \n Read more \n \n~~~\n\nA better option is often to make the visible link itself descriptive:\n\n~~~html\nRead the study of the social habits of wild ponies \n~~~\n\nDo not rely on aria-label or hidden text to compensate for an avoidably vague visual label. The visible label should remain useful to sighted people, speech-input users and people who use magnification.\n\n### Avoid font-size zero as a hiding technique\n\nDo not use font-size: 0, zero line-height, transparent text or similar “flattened text” techniques to hide meaningful content. User text-size overrides, browser settings and forced-colour modes can expose or distort the text, and these techniques do not provide a dependable visually hidden utility. Use a tested visually hidden class when the content genuinely needs to remain in the accessibility tree. Test enlarged text and user styles.\n\n## Focus, search and fragment navigation\n\nA visually hidden element can still be focusable. If a person tabs to an element that remains visually hidden, its focus indicator and location may be impossible to see. If an element or a parent is hidden with aria-hidden="true", it may still receive focus in some implementations while being absent from the accessibility tree.\n\nWhen content is not available in the current state:\n\n- remove it from the tab order and accessibility tree using the owning component’s state mechanism;\n- before hiding a region that contains focus, move focus to a logical visible control or return it to the invoker according to the pattern;\n- when content is hidden until focus, reveal the focused element and its focus indicator;\n- do not add tabindex="0" to ordinary text just to make a screen reader encounter it.\n\nVisually hidden text remains in the document. Browser find-in-page may report a match that is not visually apparent, and a fragment link may target content that is not currently visible. Consider whether the hidden text is suitable for search and ensure in-page navigation does not strand people inside a closed panel. For expandable panels and fragment targets, follow the [Accordion](Accordion.md#links-to-a-section) or owning pattern guidance.\n\n## Native patterns for revealing content\n\nUse a native pattern when it matches the task:\n\n- Use details and its first-child summary for a simple disclosure. The browser supplies the open/closed state and keyboard operation. See [Disclosure](Disclosure.md#native-html).\n- Use dialog for a dialog that needs dialog semantics and modal or non-modal behaviour. See [Modal Dialogs](Modal%20Dialogs.md).\n- The HTML Popover API can show and hide non-modal popover content. It is not a general replacement for a disclosure, tooltip or dialog, and it does not determine whether the content should receive focus. Select the pattern based on the content and task; see [Information Panels](Information%20Panels.md).\n\nThese patterns manage particular interaction states. They do not make an unsuitable content choice accessible, and they still need design and implementation checks in the supported browser and assistive technology combinations.\n\n## Checks\n\nRecord the element or component, intended visibility state, browser, input method and assistive technology where relevant. Check each state, not only the initial page.\n\n| Method and action | Expected result |\n| --- | --- |\n| Inspect each hidden item and compare its intended visual and accessibility-tree states. | The chosen technique matches the documented audience and state. Meaningful visible content is not omitted from assistive technology without a clear reason. |\n| With a screen reader, navigate the page before and after the relevant action. | Content hidden from everyone is not announced while hidden. Visually hidden content intended for assistive technology is available in the expected reading or control context. Decorative content marked aria-hidden is not announced, while its meaningful equivalent remains available. |\n| Use Tab and Shift+Tab around the hidden content, including controls inside it. | Hidden controls are not reachable. A focusable item that is visually hidden until focus becomes visible with its focus indicator. Focus does not remain inside content after that content closes. |\n| For expandable content, operate the trigger by keyboard, pointer and touch where supported; open and close it. | The trigger’s visible and programmatic state agrees with the content’s actual visibility. The content is available when open and unavailable when closed. Focus follows the owning pattern. |\n| Use speech input on controls whose accessible name includes hidden text. | The visible label can be used as a command and matches part of the accessible name. |\n| Search for a phrase that exists only in visually hidden content and follow relevant fragment links. | A match or navigation target does not leave the person unable to locate or understand the revealed content. Hidden panels are revealed as required by the owning pattern. |\n| Increase text size, zoom, change text settings and enable forced colours. | Content and focus indicators remain usable. No hidden text unexpectedly overlaps or clips the interface. |\n| Where a no-script or no-style fallback is required, disable JavaScript and CSS in separate checks. | Essential information and actions remain available. The fallback does not expose controls that claim to hide content but cannot change its state. |\n\nThese checks are a manual design and implementation review, not a standalone conformance result. Apply the relevant WCAG success criteria and project test plan to the complete journey. Use the owning pattern’s test cases and the repository’s [QA guidance](README.md#shared-implementation-guidance) where applicable.\n\n## Local W3C ACT rule text\n\n- [Element with aria-hidden has no content in sequential focus navigation (6cfa84)](qa/w3c-act/6cfa84.md)\n\n## Sources\n\n- [HTML Standard: The hidden attribute](https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute)\n- [ARIA in HTML: Use of aria-hidden](https://www.w3.org/TR/html-aria/#el-aria-hidden)\n- [W3C: Using ARIA](https://www.w3.org/TR/using-aria/#fourth)\n- [W3C ACT Rule: Element with aria-hidden has no content in sequential focus navigation](https://www.w3.org/WAI/standards-guidelines/act/rules/6cfa84/)\n- [WCAG 2.2 Understanding: Label in Name](https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html)\n- [HTML Standard: Popover API](https://html.spec.whatwg.org/multipage/popover.html)\n- [Cosmos: Disclosure](Disclosure.md)\n- [Cosmos: Information Panels](Information%20Panels.md)\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"Visually Hidden Content.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/Visually%20Hidden%20Content.md","source_start_line":1,"source_end_line":194,"source_document_sha256":"113927f4cfa0889e253df4e2c26bdd60affc34313905bf6dcea917fdeca564c9","text_sha256":"113927f4cfa0889e253df4e2c26bdd60affc34313905bf6dcea917fdeca564c9","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-tooltips","title":"Tooltips","text":"---\ntitle: Tooltips\ndescription: Provide brief, non-interactive supplementary information without hiding labels or essential task guidance.\n---\n\n# Tooltips\n\n## Contents\n\n- [Introduction](#introduction)\n- [Recommended markup](#recommended-markup)\n- [Recommended layout](#recommended-layout)\n- [Recommended behaviour](#recommended-behaviour)\n- [Build this pattern](#build-this-pattern)\n- [Testing Approach and ACT Scripts](#testing-approach-and-act-scripts)\n- [Accessibility Requirements](#accessibility-requirements)\n- [ACT Test Cases](#act-test-cases)\n- [Sources](#sources)\n\n## Introduction\n\nA tooltip is a brief, non-interactive text description associated with a trigger. It can appear when a person points to the trigger or moves keyboard focus to it. It does not take focus and cannot contain controls, links, forms or other content that a person needs to operate.\n\nUse it only for supplemental information. Do not use a tooltip as the only label or accessible name for an interactive control, or to deliver instructions needed to complete a task. Prefer a visible label. If a control has to remain compact, its accessible name must still be available when the tooltip is closed; the tooltip may repeat the label or add a short description. This supports people using screen readers and voice control.\n\nUse a different pattern when people need to interact with the content or deliberately open and close it. For example, use an [Information Panel](Information%20Panels.md) or [Disclosure](Disclosure.md) for supplementary content that needs an explicit action, and a [Modal Dialog](Modal%20Dialogs.md) when the task requires a modal interaction. Keep essential help available in the page or through a touch-accessible control. A tooltip alone is not a reliable touch interface.\n\n## Recommended markup\n\n- Use a native, keyboard-focusable trigger, such as a button or link, when the tooltip is revealed on focus. Do not make a non-interactive `div` or `span` behave like a trigger unless the host design has a defined, operable pattern for it.\n- Give the trigger its own accessible name independently of the tooltip. Keep visible wording in that name where a visible label exists; see [Labels](Labels.md).\n- Associate the tooltip text with its trigger using `aria-describedby`, and identify the tooltip container with `role=\"tooltip\"`, following the informative [WAI-ARIA APG pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/). Keep the trigger's accessible name independent of this description. Test the relationship with the target browser and assistive technology combinations.\n- Keep the tooltip outside the trigger's focus order. Do not put focusable content inside it. If users must focus or activate content inside the popup, it is not a tooltip; select a [non-modal Information Panel using the Popover API](Information%20Panels.md#native-popover-api-for-overlay-panels), dialog or other suitable pattern.\n- Do not rely on the HTML `title` attribute as the only way to convey information. Browser and assistive technology behaviour varies, and a title-only message may not be available in the ways the task requires.\n- Verify the relationship and announcement with the actual browser and assistive technology combinations supported by the product. The APG tooltip pattern is marked as work in progress and does not have task force consensus; treat it as implementation guidance, not a normative requirement.\n\n## Recommended layout\n\n- Place the tooltip close to its trigger so their relationship is clear, while keeping the text legible and avoiding the content it describes.\n- Define placement rules for responsive layouts, zoom and text enlargement. Reposition when necessary so the tooltip remains on screen and is not clipped or obscured by containers.\n- Specify a visible cue for a trigger when the presence of extra information would otherwise be hard to discover. Do not make the cue the only way to understand the trigger's action.\n- Set readable text size, line spacing, foreground and background colours. Meet [WCAG 2.2 SC 1.4.3 Contrast (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html): text contrast is at least 4.5:1, or 3:1 for large text as defined by the criterion. Check the tooltip in every supported theme and in forced-colours display modes. Ensure the content and any essential visual boundary remain distinguishable.\n- Keep any appearance or dismissal transition brief. Honour reduced-motion preferences by removing or reducing non-essential movement; the tooltip must work without animation.\n\n## Recommended behaviour\n\n1. Keep the tooltip closed until the person points to or focuses its trigger. Do not open it automatically or use a timer to make it disappear.\n2. Show it on keyboard focus as well as pointer hover. Showing it must not move focus from the trigger.\n3. For pointer users, keep it open while the pointer is over either the trigger or tooltip. Close it when the pointer leaves both. This allows users with magnification or a larger pointer to move onto and read the text.\n4. For keyboard users, close it when focus leaves the trigger. Provide a keyboard dismissal mechanism such as Escape. After Escape dismisses it, do not immediately reopen it while the same focus or pointer condition remains unchanged.\n5. Do not require a second tap, long press or non-standard gesture to use the trigger on a touchscreen. If the additional text matters to touch users, make it visible or provide an explicit, touch-accessible disclosure or information control.\n6. Keep the message concise and non-interactive. If it needs more than a brief explanation, contains an action, or reports a changing status, use the relevant pattern, such as [Notifications and Status Messages](Notifications%20and%20Status%20Messages.md).\n7. Provide a usable baseline when scripts or enhancements are unavailable. Essential names, instructions and task information must remain available without the tooltip.\n8. Show no more than one tooltip at a time in the same interface. When a different trigger opens its tooltip, close the previously visible tooltip.\n9. Keep the tooltip non-focusable and free of interactive descendants so keyboard focus cannot become trapped. Tab must continue to move between controls normally.\n10. If a touch interaction displays a tooltip, tapping outside it or activating another element closes it. Do not use a long press as the only way to expose information needed for the task.\n\nWhen content appears on pointer hover or keyboard focus, assess [WCAG 2.2 Success Criterion 1.4.13, Content on Hover or Focus](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html). Where it applies, the additional content must be dismissible without moving the pointer or focus (unless it does not obscure or replace other content), hoverable, and persistent until the trigger condition is removed or it is dismissed.\n\n \n\n## Build this pattern\n\n[Build Tooltips from the prompt and acceptance scenarios](build-patterns/Tooltips.md).\n\n\nA complete tooltip needs coordinated visibility, pointer and focus handling, Escape dismissal, positioning and accessible-description behaviour. These details vary by host and supported browser/assistive technology combinations, so this guide does not present a short HTML fragment as a complete implementation.\n\nFor implementation handover, specify:\n\n- the trigger and the supplemental text;\n- the trigger's accessible name when the tooltip is closed;\n- how the accessible description is associated and exposed;\n- the conditions for opening, persistence, dismissal and closing;\n- the touch-accessible route for any information that matters to the task;\n- positioning, responsive behaviour, visual states, forced colours and reduced motion;\n- supported host, browser and assistive technology combinations and the checks required for them.\n\nDo not assume that setting an element visually hidden or applying a single HTML attribute produces the correct accessibility-tree behaviour in every implementation. Verify the closed and open states with assistive technology.\n\n## Testing Approach and ACT Scripts\n\nRun the checklist on a page with two tooltip triggers, a focusable control before and after them, and enough space to move a pointer between each trigger and its tooltip. Include a touch device and the supported browser and screen reader combinations. Record the environment, action, observed outcome and evidence. Mark unrun checks as **not run**. The six [component test cases](#act-test-cases) below retain their source wording. Use the Cosmos expected results when a source case leaves the interaction state ambiguous.\n\n| Method and action | Expected result |\n| --- | --- |\n| Load the page with the pointer and keyboard focus away from both triggers. Browse the page with a screen reader and check its separate reading order. | Neither tooltip is visible or encountered as a separate item. Trigger names and essential information remain available. |\n| In separate runs, Tab to the trigger and reach it with the screen reader’s browse cursor if supported. Listen and inspect the trigger’s computed name and description. | The trigger keeps its own name and is associated with the supplemental description. Verify that the description is available using the supported screen reader’s normal reading or focus commands. Browse-cursor navigation may expose the description without opening the visual tooltip. |\n| With focus elsewhere, hover the trigger. Move the pointer onto the tooltip and back, pause to read it, then move away from both. | The tooltip opens, stays visible over either area without timing out, and closes when the pointer leaves both. |\n| With the pointer away, Tab to the trigger. Press Escape while it has focus, wait, then Tab away. Repeat without pressing Escape. | The tooltip opens on focus. Escape closes it without moving focus or reopening it while focus stays put. Moving focus away closes an open tooltip. Tab does not stop on the tooltip or its contents. |\n| Focus a trigger and then hover it. Move the pointer away while keeping focus there. In a separate run, hover the trigger with focus elsewhere and press Escape without moving the pointer. | The tooltip stays visible while focus still calls for it. Escape dismisses the hovered tooltip without moving the pointer or focus, and the tooltip stays closed until the opening condition changes. |\n| Keep focus on the first trigger while hovering the second. Repeat by hovering the first trigger and using the keyboard to focus the second. | When the second tooltip opens, it replaces the first. Keyboard focus remains where the person put it. |\n| On a touchscreen, tap a trigger with a primary action. If the product also shows a tooltip on touch, open it and tap outside, then repeat by activating another element. Test voice activation where supported. | The primary action works without an extra tap or gesture. Any touch tooltip closes on outside tap or activation of another element. Supplemental information that matters has a usable route. |\n| Open a tooltip and check it after scrolling, zooming, resizing and rotating the supported viewport. Check enlarged text and line spacing separately. | While its opening condition holds, the tooltip stays associated with its trigger and its text remains readable without clipping or overlap. |\n| Measure text contrast in the default theme and other supported themes. Repeat the visual checks in forced colours and with reduced motion. | Text meets the contrast thresholds in [Recommended layout](#recommended-layout). Text and any essential boundary remain distinguishable in forced colours, and the tooltip works without non-essential animation. |\n| Disable scripts or the enhancement where feasible. | The control’s name and all essential task information remain available. |\n\nUse the [A11yQuest tooltip test summary](https://a11yquest.com/pro/guides/patterns/tooltip/#test-summary) to trace these checks to the supplied pattern guide.\n\n\n## [Accessibility Requirements](https://a11yquest.com/pro/tests/tooltip/#accessibility-requirements)\n\n**The Tooltip component is evaluated against the following WCAG 2.2 success criteria, categorized under the Perceivable, Operable, Understandable, and Robust (POUR) principles:**\n\n### [Perceivable](https://a11yquest.com/pro/tests/tooltip/#perceivable)\n\n- **1.4.13 Content on Hover or Focus: Ensures that content displayed on hover or focus is dismissible, hoverable, and persistent.**\n\n### [Operable](https://a11yquest.com/pro/tests/tooltip/#operable)\n\n- **2.1.1 Keyboard: The tooltip must be operable through a keyboard interface without requiring specific timings for individual keystrokes.**\n- **2.1.2 No Keyboard Trap: Keyboard users must be able to navigate to and from the tooltip without getting trapped.**\n\n### [Robust](https://a11yquest.com/pro/tests/tooltip/#robust)\n\n- **4.1.2 Name, Role, Value: The tooltip must be properly labeled with ARIA attributes to ensure that assistive technologies can interpret and present the information correctly.**\n\n## [ACT Test Cases](https://a11yquest.com/pro/tests/tooltip/#act-test-cases)\n\n### [Test Case 1: Screen Reader Accessibility and Hidden State Verification](https://a11yquest.com/pro/tests/tooltip/#test-case-1-screen-reader-accessibility-and-hidden-state-verification)\n\n#### [Objective](https://a11yquest.com/pro/tests/tooltip/#objective)\n\n**To verify that tooltips are not accessible or announced by screen readers in their default (hidden) state and are properly announced when active.**\n\n#### [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps)\n\n1. **Using a screen reader, navigate through the page without interacting with the trigger element to ensure the tooltip content is not announced in its default state.**\n2. **Focus on the trigger element using the keyboard or the screen reader’s virtual cursor.**\n3. **Confirm that the screen reader announces the tooltip’s presence and content.**\n\n#### [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results)\n\n- **In its default state, the tooltip content is not accessible or announced by the screen reader.**\n- **When the trigger element is focused, the tooltip becomes accessible and its content is announced.**\n\n### [Test Case 2: Visibility and Interaction with Mouse](https://a11yquest.com/pro/tests/tooltip/#test-case-2-visibility-and-interaction-with-mouse)\n\n#### [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-2)\n\n**To ensure the tooltip becomes visible with mouse hover and behaves correctly with cursor movements.**\n\n#### [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-2)\n\n1. **Hover the mouse over the trigger element and verify that the tooltip becomes visible.**\n2. **Move the cursor from the trigger element to the tooltip and back without the tooltip hiding.**\n3. **Move the cursor away from both the trigger element and the tooltip, ensuring the tooltip hides.**\n\n#### [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-2)\n\n- **The tooltip shows and hides according to mouse cursor movement as specified.**\n\n### [Test Case 3: Keyboard Interaction and Escape Key Functionality](https://a11yquest.com/pro/tests/tooltip/#test-case-3-keyboard-interaction-and-escape-key-functionality)\n\n#### [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-3)\n\n**To confirm that tooltips are accessible via keyboard and can be dismissed using the escape key.**\n\n#### [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-3)\n\n1. **Tab to focus the trigger element and verify that the tooltip becomes visible.**\n2. **While the tooltip is visible, press the escape key and check that it hides.**\n3. **Tab away from the trigger element to another focusable element and ensure the tooltip hides.**\n\n#### [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-3)\n\n- **The tooltip behaves as expected with keyboard interactions, including showing, hiding with the escape key, and hiding when moving focus away.**\n\n### [Test Case 4: Single Tooltip Visibility](https://a11yquest.com/pro/tests/tooltip/#test-case-4-single-tooltip-visibility)\n\n#### [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-4)\n\n**To ensure that only one tooltip is displayed at a time.**\n\n#### [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-4)\n\n1. **Activate a tooltip by hovering or focusing on a trigger element.**\n2. **Without dismissing the first tooltip, activate another tooltip by hovering or focusing on a different trigger element.**\n3. **Verify that the first tooltip hides when the second tooltip becomes visible.**\n\n#### [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-4)\n\n- **Only one tooltip is visible at a time, ensuring clear and uncluttered presentation of supplementary information.**\n\n### [Test Case 5: Touchscreen Interaction](https://a11yquest.com/pro/tests/tooltip/#test-case-5-touchscreen-interaction)\n\n#### [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-5)\n\n**To ensure tooltips do not disrupt usability for touchscreen users.**\n\n#### [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-5)\n\n1. **On a touchscreen device, tap on an element with an attached tooltip to verify the primary action of the element is executed without displaying the tooltip.**\n2. **If a tooltip is displayed (e.g., after a long press), tapping outside the tooltip or on another element hides the tooltip.**\n\n#### [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-5)\n\n- **Tooltips do not interfere with the expected behavior of interactive elements on touchscreen devices.**\n\n### [Test Case 6: Content Accessibility and Visibility Enhancements](https://a11yquest.com/pro/tests/tooltip/#test-case-6-content-accessibility-and-visibility-enhancements)\n\n#### [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-6)\n\n**To check that the tooltip content is accessible, with adequate contrast, and remains visible under various conditions such as scrolling and high contrast mode.**\n\n#### [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-6)\n\n1. **Verify the tooltip content meets the minimum contrast ratio requirements against its background.**\n2. **Test the tooltip’s visibility and readability during scrolling, zooming in, resizing the window, or rotating the device.**\n3. **Enable high contrast mode and ensure the tooltip content remains visible and readable.**\n\n#### [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-6)\n\n- **The tooltip’s content maintains accessibility standards in different scenarios, including sufficient contrast ratio, readability during dynamic view changes, and visibility in high contrast mode.**\n\n### Guidance to improve test alignment\n\n- Use `role=\"tooltip\"` on the tooltip container and `aria-describedby` on its trigger, as the [WAI-ARIA APG Tooltip Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/) describes. Keep the trigger's accessible name separately available. WCAG 4.1.2 requires programmatically determinable name and role and supported states and properties; it does not itself mandate a specific ARIA attribute. The ARIA relationship is the implementation approach expected by these supplied tests.\n- In Case 1, check that the closed tooltip is absent as a separate item in reading and focus order. Then test the description at the trigger. Keyboard focus and the screen reader’s browse cursor are different. A screen reader can expose the description even when the visual tooltip remains closed.\n- Keep at most one tooltip visible at once. Close the first when a second trigger opens its tooltip.\n- Make the tooltip non-focusable and do not put interactive descendants inside it. This supports the keyboard checks and prevents it from becoming a focus trap; keyboard focus remains on the trigger and moves away normally.\n- On touchscreens, a tap must still perform the trigger's primary action without opening a tooltip. Do not require long press to access essential content. If a product nevertheless displays a tooltip after long press, close it when the person taps outside it or activates another element.\n- For the contrast check, apply WCAG 2.2 SC 1.4.3: at least 4.5:1 for normal text and 3:1 for large text as defined by that criterion. Check readability and placement after zoom, resize, rotation and scrolling, and in forced-colours mode.\n- The source calls these “ACT Test Cases”; they are not W3C ACT Rules with published rule identifiers. Use them as the supplied component test cases, not as evidence that an entire page or product conforms to WCAG.\n\n## Sources\n\n- [A11yQuest: Tooltip pattern guide](https://a11yquest.com/pro/guides/patterns/tooltip/) — source material for design constraints and practical checks.\n- [A11yQuest: Tooltip test summary](https://a11yquest.com/pro/guides/patterns/tooltip/#test-summary) — source for the practical testing checklist.\n- [A11yQuest: Tooltip accessibility test cases](https://a11yquest.com/pro/tests/tooltip/) — source for the supplied accessibility requirements and test cases.\n- [WAI-ARIA Authoring Practices Guide: Tooltip Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/) — informative pattern status, roles, relationship and interaction notes.\n- [WCAG 2.2: Understanding Success Criterion 1.4.13, Content on Hover or Focus](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html) — normative success criterion and explanatory guidance.\n- [WCAG 2.2: Understanding Success Criterion 1.4.3, Contrast (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html) — text contrast requirements.\n- [WCAG 2.2: Success Criterion 2.1.1, Keyboard](https://www.w3.org/TR/WCAG22/#keyboard) and [2.1.2, No Keyboard Trap](https://www.w3.org/TR/WCAG22/#no-keyboard-trap) — keyboard operation and focus movement.\n- [WCAG 2.2: Understanding Success Criterion 4.1.2, Name, Role, Value](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html) — programmatic names, roles, states and values.\n- [HTML Living Standard: The `title` attribute](https://html.spec.whatwg.org/multipage/dom.html#the-title-attribute) — cautions about availability of title text to users of different input methods.\n- [Accessibility Requirements](https://a11yquest.com/pro/tests/tooltip/#accessibility-requirements)\n- [Perceivable](https://a11yquest.com/pro/tests/tooltip/#perceivable)\n- [Operable](https://a11yquest.com/pro/tests/tooltip/#operable)\n- [Robust](https://a11yquest.com/pro/tests/tooltip/#robust)\n- [ACT Test Cases](https://a11yquest.com/pro/tests/tooltip/#act-test-cases)\n- [Test Case 1: Screen Reader Accessibility and Hidden State Verification](https://a11yquest.com/pro/tests/tooltip/#test-case-1-screen-reader-accessibility-and-hidden-state-verification)\n- [Objective](https://a11yquest.com/pro/tests/tooltip/#objective)\n- [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps)\n- [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results)\n- [Test Case 2: Visibility and Interaction with Mouse](https://a11yquest.com/pro/tests/tooltip/#test-case-2-visibility-and-interaction-with-mouse)\n- [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-2)\n- [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-2)\n- [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-2)\n- [Test Case 3: Keyboard Interaction and Escape Key Functionality](https://a11yquest.com/pro/tests/tooltip/#test-case-3-keyboard-interaction-and-escape-key-functionality)\n- [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-3)\n- [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-3)\n- [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-3)\n- [Test Case 4: Single Tooltip Visibility](https://a11yquest.com/pro/tests/tooltip/#test-case-4-single-tooltip-visibility)\n- [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-4)\n- [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-4)\n- [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-4)\n- [Test Case 5: Touchscreen Interaction](https://a11yquest.com/pro/tests/tooltip/#test-case-5-touchscreen-interaction)\n- [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-5)\n- [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-5)\n- [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-5)\n- [Test Case 6: Content Accessibility and Visibility Enhancements](https://a11yquest.com/pro/tests/tooltip/#test-case-6-content-accessibility-and-visibility-enhancements)\n- [Objective](https://a11yquest.com/pro/tests/tooltip/#objective-6)\n- [Test Steps](https://a11yquest.com/pro/tests/tooltip/#test-steps-6)\n- [Expected Results](https://a11yquest.com/pro/tests/tooltip/#expected-results-6)\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"Tooltips.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/Tooltips.md","source_start_line":1,"source_end_line":265,"source_document_sha256":"81fee8953c35a2cd01e033b15ae3d6e03251de5a838f1c43ae369db994d0dc27","text_sha256":"81fee8953c35a2cd01e033b15ae3d6e03251de5a838f1c43ae369db994d0dc27","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-accordion","title":"Accordion","text":"---\ntitle: \"Build Accordion\"\ndescription: \"Specify and verify the Accordion pattern in the host interface.\"\n---\n\n# Build Accordion\n\n## Standalone build prompt\n\nBuild Accordion to let people expand and scan related sections. Use an accordion to help people scan two or more related sections and open the ones they need. Collapsing sections can reduce scrolling, but it can also hide information people need to finish a task. Keep essential instructions visible. Use a single Disclosure for one section. For cross-cutting guidance on hidden states, focus and accessibility-tree exposure, see Visually Hidden Content and ARIA and Screen Reader Usability.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L14) to select additional checks.\n\n```gherkin\nFeature: Accordion\n\n @ACCORDION-01\n Scenario: The group has at least two control–panel pairs\n Given the host offers the applicable Accordion variant\n When the tester follows this procedure: Inspect the document structure. Find each control and its panel.\n Then The group has at least two control–panel pairs. Each panel follows its control or enclosing heading in source order.\n\n @ACCORDION-02\n Scenario: Each input opens or closes the correct panel\n Given the host offers the applicable Accordion variant\n When the tester follows this procedure: Tab to each header. Press Enter to open a closed panel and Space to close an open panel where closing is allowed. Repeat the allowed transitions with a mouse and touch.\n Then Each input opens or closes the correct panel. During keyboard activation, focus stays on the header.\n\n @ACCORDION-03\n Scenario: The control stays visible, looks interactive and has a label that identifies its panel\n Given the host offers the applicable Accordion variant\n When the tester follows this procedure: Inspect each header when open and closed, including in forced colours. Read the label and listen to its accessible name and state with a screen reader.\n Then The control stays visible, looks interactive and has a label that identifies its panel. A visible marker communicates the state. The screen reader exposes the control, its name and state.\n\n @ACCORDION-04\n Scenario: The button references the correct panel\n Given the host offers the applicable Accordion variant\n When the tester follows this procedure: Inspect each custom button and panel before and after activation.\n Then The button references the correct panel. `aria-expanded` is `true` when open and `false` when closed. Every affected button updates when the visible panel changes.\n\n @ACCORDION-05\n Scenario: The closed content is invisible, absent from screen reader navigation and skipped by Tab\n Given the host offers the applicable Accordion variant\n When the tester follows this procedure: Start with a collapsed panel. Read past the control with a screen reader and Tab past it. Return to the control, open the panel and repeat. Close it again where allowed.\n Then The closed content is invisible, absent from screen reader navigation and skipped by Tab. Once open, it follows its control in reading order and its interactive elements are reachable. After closing, the content leaves reading and focus order again.\n\n @ACCORDION-06\n Scenario: both remain open in an independent group and only the second stays open in a single-open group\n Given two panels can be opened\n When the person opens them in sequence\n Then both remain open in an independent group and only the second stays open in a single-open group. Closing the last panel leaves none open where allowed.\n\n @ACCORDION-07\n Scenario: the first activation leaves the panel open\n Given one panel must remain open\n When the person activates its expanded header and then opens another panel\n Then the first activation leaves the panel open. Both headers remain reachable and the expanded and disabled states follow the new open panel.\n\n @ACCORDION-08\n Scenario: every panel and control reflects the action and focus stays on the control used\n Given bulk controls are available\n When the person uses Expand all and Collapse all in turn\n Then every panel and control reflects the action and focus stays on the control used.\n\n @ACCORDION-09\n Scenario: each target becomes visible and reading and keyboard navigation continue from it\n Given links can target content within closed panels\n When the person loads a direct link and then follows an in-page link to a different closed panel\n Then each target becomes visible and reading and keyboard navigation continue from it.\n\n @ACCORDION-10\n Scenario: native accordions remain operable without scripts and enhanced content is readable\n Given native and enhanced accordions have baseline content\n When the person loads each with scripts blocked and repeats with CSS disabled and scripts enabled\n Then native accordions remain operable without scripts and enhanced content is readable. Without CSS the labels remain readable and collapsed panels remain hidden.\n\n @ACCORDION-11\n Scenario: labels wrap and remain legible\n Given the accordion contains long labels\n When the person enlarges the text and separately narrows the viewport\n Then labels wrap and remain legible. Indicators and controls fit without overlap and each panel follows its own control.\n```\n\n## Retrieval pack\n\n- [Markup](../Accordion.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Accordion.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Accordion.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Accordion.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Grouped panels](../Accordion.md#grouped-panels)\n- [Links to a section](../Accordion.md#links-to-a-section)\n\n## Verification and acceptance\n\nTest native and custom variants separately and verify state, associated content and exclusive behaviour where configured. Automated checks can collect Button state, native open state and reachable descendants. For agent-assisted review retain before and after observations. Human judgement: Can the person find a section and compare content where multiple panels can open?\n\n- `ACCORDION-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L96)\n- `ACCORDION-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L97)\n- `ACCORDION-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L98)\n- `ACCORDION-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L99)\n- `ACCORDION-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L100)\n- `ACCORDION-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L104)\n- `ACCORDION-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L105)\n- `ACCORDION-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L106)\n- `ACCORDION-09` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L107)\n- `ACCORDION-10` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L108)\n- `ACCORDION-11` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Accordion.md#L109)\n\nUse the [manual and ACT procedures](../Accordion.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Accordion.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Accordion.md","source_start_line":1,"source_end_line":113,"source_document_sha256":"5604fa3b36c07e60a81c3bc32cfac0e598d6f66ed97b36d30793cfe01e6cb174","text_sha256":"5604fa3b36c07e60a81c3bc32cfac0e598d6f66ed97b36d30793cfe01e6cb174","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-authentication","title":"Authentication","text":"# Build Authentication\n\n## A. Standalone build prompt\n\nProve access, recover when a method fails and return to the authorised task. Agree enrolment, sign-in, additional verification, session expiry, recovery and sign-out with the identity owner. Confirm approved methods, assurance, devices, third-party returns, retained work, supported password managers and no-script route. Use fictitious accounts in tests.\n\nThe example suggests an email address and sample routes. The host owns its identifier and endpoints. Use username, current-password, new-password and one-time-code tokens for their respective purposes. Use numeric inputmode only for digits-only text codes. WCAG 2.2 SC 3.3.8 applies at each authentication step. Document the applicable alternative, assistance mechanism or specified exception. A passkey is a recommendation conditional on assurance, platform and recovery.\n\nMake the password visibility control a non-submit button (type=\"button\") so toggling never submits the form. Restore masking when the form is submitted and when the person returns to the page through browser history, so a revealed password is not left exposed.\n\nUse native HTML where it supplies the behaviour. Use host components and brand tokens where they preserve these outcomes. Before coding, copy the [Cosmos semantics contract template](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Component%20Semantics%20Contract.md#contract-template) for each materially different variant. Record names, roles, states, relationships, focus, keyboard commands, feedback, fallback, recovery and the supported environments. Mark unresolved host decisions. Deliver the implementation, the contract reconciled against the rendered interface, and evidence against the [Authentication matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/testing-matrix/Design%20Patterns.md#L38). Accept each applicable scenario only with observed evidence. Record pass, fail, not applicable, not run or cannot tell and explain exclusions and gaps.\n\n```gherkin\nFeature: Authentication\n\n Scenario: AUTH-P2-01 — The person uses a password manager or pastes credentials and submits\n Given the sign-in form offers a labelled identifier and initially masked password\n When the person uses a password manager or pastes credentials and submits\n Then assisted entry works and an approved sign-in proceeds without forced recall or transcription\n\n Scenario: AUTH-P2-02 — The person activates Show password then Hide password by keyboard\n Given a visibility button is available beside a filled masked password\n When the person activates Show password then Hide password by keyboard\n Then masking and the next-action name change together, the value survives and focus stays on the button\n\n Scenario: AUTH-P2-03 — The person pastes a complete code beginning with zero\n Given a single labelled text field requests a one-time code\n When the person pastes a complete code beginning with zero\n Then the entire code including the zero remains available for submission\n\n Scenario: AUTH-P2-04 — The person submits it and requests a replacement\n Given a code sent to the indicated destination has expired\n When the person submits it and requests a replacement\n Then feedback explains expiry and the reachable resend route lets them continue without repeating unrelated details\n\n Scenario: AUTH-P2-05 — The person submits the form\n Given a required field is empty or the identity service declines sign-in\n When the person submits the form\n Then a field error identifies what to correct, while a service refusal gives an actionable form-level message without revealing account state\n\n Scenario: AUTH-P2-06 — They request recovery for a known and an unknown identifier in separate test runs\n Given the customer cannot use their normal authenticator\n When they request recovery for a known and an unknown identifier in separate test runs\n Then both receive consistent public responses and an eligible customer can complete the approved recovery route without sharing secrets with support\n\n Scenario: AUTH-P2-07 — The person cancels the platform prompt or lacks their usual device\n Given the service offers passkey enrolment or sign-in\n When the person cancels the platform prompt or lacks their usual device\n Then they return to an identifiable step with an approved usable alternative\n\n Scenario: AUTH-P2-08 — The provider returns an error or the person cancels\n Given sign-in delegates verification to another provider\n When the provider returns an error or the person cancels\n Then the service identifies the current step and offers a reachable retry or alternative\n\n Scenario: AUTH-P2-09 — They encounter the warning and then reauthenticate after expiry\n Given the person has eligible unfinished work in an expiring session\n When they encounter the warning and then reauthenticate after expiry\n Then they understand the available time and retained work and return to the authorised task with eligible progress and no credentials saved in the draft\n\n Scenario: AUTH-P2-10 — They follow the baseline form or offered accessible sign-in route\n Given the person needs sign-in with scripts blocked\n When they follow the baseline form or offered accessible sign-in route\n Then they can authenticate and return to the intended task\n\n Scenario: AUTH-P2-11 — A person enrols using a supported method and later signs out\n Given the service offers enrolment and sign-out\n When a person enrols using a supported method and later signs out\n Then they can identify completion at each step and protected content requires fresh authorisation after sign-out\n\n Scenario: AUTH-P2-12 — The person enlarges text, narrows the viewport and enables forced colours in separate runs\n Given a sign-in error appears beside the form\n When the person enlarges text, narrows the viewport and enables forced colours in separate runs\n Then the error, next step and focused control remain readable and reachable\n\n Scenario: AUTH-P2-13 — The person activates the visibility button with Enter or Space\n Given a visibility button is available beside a filled masked password\n When the person activates the visibility button with Enter or Space\n Then the password visibility changes and the form is not submitted\n\n Scenario: AUTH-P2-14 — The person reveals the password, submits, then returns through browser history\n Given a visibility button has revealed a password\n When the person reveals the password, submits, then returns through browser history\n Then the password is masked again after submission and when the page is restored\n```\n\nScenario IDs map to the following checks in scenario order. AUTH-P2-01 → CTL-118, CTL-134 · AUTH-P2-02 → Authentication check 1 · AUTH-P2-03 → CTL-116, Authentication check 2 · AUTH-P2-04 → Authentication check 2 · AUTH-P2-05 → PRACTICE-FORM-02 · AUTH-P2-06 → Authentication check 4 · AUTH-P2-07 → Authentication check 3 · AUTH-P2-08 → Authentication check 4 · AUTH-P2-09 → CTL-197, CTL-198, CTL-199 · AUTH-P2-10 → Authentication check 6 · AUTH-P2-11 → PRACTICE-MULTI-01 · AUTH-P2-12 → Authentication check 6 · AUTH-P2-13 and AUTH-P2-14 → no existing canonical check; added to cover the toggle type and re-masking.\n\n## B. Retrieval pack\n\n| Retrieve | Question or decision |\n| --- | --- |\n| [Owning guide, recommended behaviour](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Authentication.md#recommended-behaviour) | Which focus, feedback and recovery decisions apply to this variant? |\n| [Original implementation](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Authentication.md#reference-implementation) | Which details belong to the illustrative markup? The example suggests an email address and sample routes. The host owns its identifier and endpoints. Use username, current-password, new-password and one-time-code tokens for their respective purposes. Use numeric inputmode only for digits-only text codes. WCAG 2.2 SC 3.3.8 applies at each authentication step. Document the applicable alternative, assistance mechanism or specified exception. A passkey is a recommendation conditional on assurance, platform and recovery. |\n| [Contract template](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Component%20Semantics%20Contract.md#contract-template) | Which states, transitions and evidence fields must travel with the implementation? |\n| [Pinned matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/testing-matrix/Design%20Patterns.md#L38) | Which canonical IDs apply and which outcomes require the owning guide? |\n| [HTML Form Elements](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/HTML%20Form%20Elements.md#input-purpose-and-autofill) | Select the correct credential token. |\n| [Forms](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Forms.md#error-messages) | Route a correctable field error to its field. |\n| [Saving and Resuming a Task](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Saving%20and%20Resuming%20a%20Task.md#return-and-reauthenticate) | Decide which task data may survive expiry. |\n| [PRACTICE-FORM-02](https://github.com/Double-FW/QA_Accessibility_Testing/blob/9cddf3a1ed3def130ff78bcc4592d5cc49b0c2ca/Accessibility_ACT-Style_Test_System.md#L603) | Assess correction after invalid submission. |\n| [PRACTICE-MULTI-01](https://github.com/Double-FW/QA_Accessibility_Testing/blob/9cddf3a1ed3def130ff78bcc4592d5cc49b0c2ca/Accessibility_ACT-Style_Test_System.md#L687) | Compare task completion across input modes. |\n| [Form field has non-empty accessible name (e086e5)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/e086e5.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [Autocomplete attribute has valid value (73f2c2)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/73f2c2.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [Button has non-empty accessible name (97a4e1)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/97a4e1.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [WHATWG HTML Living Standard](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill) | Checked 28 November 2026. Autofill field names and their purposes. A valid token alone cannot demonstrate password-manager interoperability. |\n| [WCAG 2.2 SC 3.3.8](https://www.w3.org/TR/WCAG22/#accessible-authentication-minimum) | Assess every authentication step including a delegated step against the criterion and exceptions. |\n\n## C. Verification plan\n\nRun each row from its Given state using its When action. Compare with the complete Then outcome. Record method and executor separately. Each row starts as **not run** for the host.\n\n| Scenario | Existing coverage | Applicability and method | Expected result | Evidence |\n| --- | --- | --- | --- | --- |\n| AUTH-P2-01 | CTL-118, CTL-134 | Human judgement. Run when the sign-in form offers a labelled identifier and initially masked password. | Assisted entry works and an approved sign-in proceeds without forced recall or transcription. | Participant or tester observation, task result and supported environment. |\n| AUTH-P2-02 | Authentication check 1 | Automated. Run when a visibility button is available beside a filled masked password. | Masking and the next-action name change together, the value survives and focus stays on the button. | Browser assertion trace with before and after state. |\n| AUTH-P2-03 | CTL-116, Authentication check 2 | Automated. Run when a single labelled text field requests a one-time code. | The entire code including the zero remains available for submission. | Browser assertion trace with before and after state. |\n| AUTH-P2-04 | Authentication check 2 | Agent-assisted. Run when a code sent to the indicated destination has expired. | Feedback explains expiry and the reachable resend route lets them continue without repeating unrelated details. | Redacted step trace, environment and service-owner review. |\n| AUTH-P2-05 | PRACTICE-FORM-02 | Automated. Run when a required field is empty or the identity service declines sign-in. | A field error identifies what to correct, while a service refusal gives an actionable form-level message without revealing account state. | Browser assertion trace with before and after state. |\n| AUTH-P2-06 | Authentication check 4 | Agent-assisted. Run when the customer cannot use their normal authenticator. | Both receive consistent public responses and an eligible customer can complete the approved recovery route without sharing secrets with support. | Redacted step trace, environment and service-owner review. |\n| AUTH-P2-07 | Authentication check 3 | Human judgement. Run when the service offers passkey enrolment or sign-in. | They return to an identifiable step with an approved usable alternative. | Participant or tester observation, task result and supported environment. |\n| AUTH-P2-08 | Authentication check 4 | Agent-assisted. Run when sign-in delegates verification to another provider. | The service identifies the current step and offers a reachable retry or alternative. | Redacted step trace, environment and service-owner review. |\n| AUTH-P2-09 | CTL-197, CTL-198, CTL-199 | Human judgement. Run when the person has eligible unfinished work in an expiring session. | They understand the available time and retained work and return to the authorised task with eligible progress and no credentials saved in the draft. | Participant or tester observation, task result and supported environment. |\n| AUTH-P2-10 | Authentication check 6 | Agent-assisted. Run when the person needs sign-in with scripts blocked. | They can authenticate and return to the intended task. | Redacted step trace, environment and service-owner review. |\n| AUTH-P2-11 | PRACTICE-MULTI-01 | Agent-assisted. Run when the service offers enrolment and sign-out. | They can identify completion at each step and protected content requires fresh authorisation after sign-out. | Redacted step trace, environment and service-owner review. |\n| AUTH-P2-12 | Authentication check 6 | Human judgement. Run when a sign-in error appears beside the form. | The error, next step and focused control remain readable and reachable. | Participant or tester observation, task result and supported environment. |\n| AUTH-P2-13 | None yet | Automated. Run when a visibility button is available beside a filled masked password. | The password visibility changes and the form is not submitted. | Browser assertion trace with before and after state. |\n| AUTH-P2-14 | None yet | Automated. Run when a visibility button can reveal the password; repeat for back-forward cache restoration where supported. | The password is masked again after submission and when the page is restored. | Browser assertion trace with before and after state. |\n\nUse the [manual procedures](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Authentication.md#testing-approach-and-act-scripts) to assess real assisted entry, platform cancellation, lost-device recovery and return to the task. The matrix has no dedicated end-to-end test for authenticator enrolment and sign-out. These are Cosmos or supplied checks. The proposed W3C ACT rules above cover narrower element-level expectations.\n\n## D. Definition of done\n\nAccept a variant when the rendered contract matches every applicable transition, the host tests pass and the human evaluations record successful task completion. Record build, input, browser, device, assistive technology, observed outcome and evidence per scenario. Give a reason for every not applicable, not run or cannot tell result. A fail needs correction and retest. An applicable not run or cannot tell result leaves acceptance open.\n\nUse approved test accounts for provider returns, recovery, session expiry and server-side sign-out. Retain redacted evidence. Ask people to complete recovery without their usual device and explain what happened to their work.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Authentication.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Authentication.md","source_start_line":1,"source_end_line":135,"source_document_sha256":"cfd630c05e995ed40ee669501c4826f0199c07c85e98933cb83ae24b117211b9","text_sha256":"cfd630c05e995ed40ee669501c4826f0199c07c85e98933cb83ae24b117211b9","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-badge","title":"Badge","text":"---\ntitle: \"Build Badge\"\ndescription: \"Specify and verify the Badge pattern in the host interface.\"\n---\n\n# Build Badge\n\n## Standalone build prompt\n\nBuild Badge to show a status, category or count alongside the item it describes. Use a badge to help people identify a status, category or count at a glance. Place it with the item it describes so the relationship also makes sense when someone reads the page with a screen reader. Use a link or button when the person needs to act, such as applying a filter.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L31) to select additional checks.\n\n```gherkin\nFeature: Badge\n\n @BADGE-01\n Scenario: The badge and its item are clear in reading order\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Read a card or list item with a screen reader, Tab to its control and, for links, open the screen reader’s list of links.\n Then The badge and its item are clear in reading order. The badge adds no tab stop. A supplementary description is available on focus. Text included in a link’s name follows its destination label and is available in the list of links.\n\n @BADGE-02\n Scenario: Visible wording still conveys the meaning if the icon, dot or background changes or disappears\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Inspect badges with icons or dots. Repeat in greyscale and with forced colours.\n Then Visible wording still conveys the meaning if the icon, dot or background changes or disappears. Assistive technology reads the text and skips decorative graphics.\n\n @BADGE-03\n Scenario: The group retains its list semantics and follows the visible sequence\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Navigate a group of badges in reading order. Repeat with any list markers suppressed by CSS.\n Then The group retains its list semantics and follows the visible sequence.\n\n @BADGE-04\n Scenario: Labels wrap without clipping or overlap, groups stay readable and nearby controls remain usable\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Test a long or translated label at 200% text size. In separate checks, apply the text spacing overrides and test vertically scrolling content at 320 CSS pixels wide.\n Then Labels wrap without clipping or overlap, groups stay readable and nearby controls remain usable. Badge content and controls fit at 320 CSS pixels without introducing horizontal scrolling.\n\n @BADGE-05\n Scenario: Each applicable pair meets the thresholds in the colour guide\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Measure text and any meaningful graphic contrast for the variants and surfaces in use, including inverse treatments. Tab to any parent control in each supported theme and in forced colours.\n Then Each applicable pair meets the thresholds in the colour guide. Keyboard focus remains visible even if the badge background disappears.\n\n @BADGE-06\n Scenario: The initial count is readable without an unsolicited announcement\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Load the count variant with a screen reader. Trigger updates across zero, one and multiple items, where supported. Repeat with rapid updates and with an existing confirmation for the same action.\n Then The initial count is readable without an unsolicited announcement. Wording agrees with the count. Each meaningful action outcome is conveyed with context and without duplicate or intermediate announcements. Focus stays with the user.\n\n @BADGE-07\n Scenario: The changed category is available in the reading order\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Trigger a routine category change and, where supported, remove a badge that indicated a change in state.\n Then The changed category is available in the reading order. If a removal matters, the new state is clear in the page content and is announced when it is a status message.\n\n @BADGE-08\n Scenario: The initial labels and values remain readable\n Given the host offers the applicable Badge variant\n When the tester follows this procedure: Block scripts and reload a page with badges.\n Then The initial labels and values remain readable. Any enhanced update has the fallback provided by the host feature.\n```\n\n## Retrieval pack\n\n- [Markup](../Badge.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Badge.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Badge.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Badge.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nInspect badge meaning and association by colour, text and accessibility tree and test announcements only if it changes and matters. Automated checks can collect Badge text and owning item association. For agent-assisted review retain before and after observations. Human judgement: Can the person tell what the badge describes and whether action is needed?\n\n- `BADGE-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L129)\n- `BADGE-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L130)\n- `BADGE-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L131)\n- `BADGE-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L132)\n- `BADGE-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L133)\n- `BADGE-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L134)\n- `BADGE-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L135)\n- `BADGE-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Badge.md#L136)\n\nUse the [manual and ACT procedures](../Badge.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Badge.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Badge.md","source_start_line":1,"source_end_line":87,"source_document_sha256":"88edcbeceba0e3946dc1ee2470784857d2f6914f0b09abc409b61449679b27a0","text_sha256":"88edcbeceba0e3946dc1ee2470784857d2f6914f0b09abc409b61449679b27a0","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-baskets-and-checkout","title":"Baskets and Checkout","text":"---\ntitle: \"Build Baskets and Checkout\"\ndescription: \"Specify and verify the Baskets and Checkout pattern in the host interface.\"\n---\n\n# Build Baskets and Checkout\n\n## Standalone build prompt\n\nBuild Baskets and Checkout to basket editing, order review, payment and recovery. Help people check what they are buying, what they will pay and when they will receive it. Someone may need to change quantities, compare delivery options or recover after a payment interruption. Keep their choices available and show the next action at each stage.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L39) to select additional checks.\n\n```gherkin\nFeature: Baskets and Checkout\n\n @BASKETS-AND-CHECKOUT-01\n Scenario: Each action identifies its item\n Given the host offers the applicable Baskets and Checkout variant\n When the tester follows this procedure: Add two items. Use keyboard and a supported screen reader to identify and edit each quantity. Remove the focused item, then remove the last item.\n Then Each action identifies its item. Totals reflect accepted changes. Focus stays usable and the empty basket gives a next step.\n\n @BASKETS-AND-CHECKOUT-02\n Scenario: The basket stays intact after the discount error\n Given the host offers the applicable Baskets and Checkout variant\n When the tester follows this procedure: Try a discount that fails. Then change delivery or make an item unavailable between review and payment.\n Then The basket stays intact after the discount error. Material changes are explained and the person can review the current order before committing.\n\n @BASKETS-AND-CHECKOUT-03\n Scenario: The guest route is findable\n Given the host offers the applicable Baskets and Checkout variant\n When the tester follows this procedure: Complete guest checkout where offered. Use Back and the review page’s change links to edit an address or delivery choice.\n Then The guest route is findable. Valid details remain available and the person can return to review without re-entering them unnecessarily.\n\n @BASKETS-AND-CHECKOUT-04\n Scenario: Payment outcomes are distinguishable\n Given the host offers the applicable Baskets and Checkout variant\n When the tester follows this procedure: Complete payment using keyboard and a supported screen reader, including any external step. Then simulate a decline, timeout or uncertain result and retry through the offered route.\n Then Payment outcomes are distinguishable. The result provides an appropriate next action and a retry creates no duplicate order or charge.\n\n @BASKETS-AND-CHECKOUT-05\n Scenario: Item actions, summary and focus remain visible\n Given the host offers the applicable Baskets and Checkout variant\n When the tester follows this procedure: Enlarge text, then test narrow width, forced colours and blocked scripts in separate runs.\n Then Item actions, summary and focus remain visible. The baseline basket and checkout routes work, or the service offers a working alternative.\n```\n\n## Retrieval pack\n\n- [Markup](../Baskets%20and%20Checkout.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Baskets%20and%20Checkout.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Baskets%20and%20Checkout.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Baskets%20and%20Checkout.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Baskets%20and%20Checkout.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Update the basket](../Baskets%20and%20Checkout.md#update-the-basket)\n- [Complete checkout](../Baskets%20and%20Checkout.md#complete-checkout)\n- [Confirm or recover](../Baskets%20and%20Checkout.md#confirm-or-recover)\n\n## Verification and acceptance\n\nEdit quantities, review totals, attempt validation failure, return and verify payment outcome in a safe fixture. Automated checks can collect Totals, validation and test payment state. For agent-assisted review retain before and after observations. Human judgement: Can the person verify cost and recover from payment failure without paying twice?\n\n- `BASKETS-AND-CHECKOUT-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Baskets%20and%20Checkout.md#L126)\n- `BASKETS-AND-CHECKOUT-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Baskets%20and%20Checkout.md#L127)\n- `BASKETS-AND-CHECKOUT-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Baskets%20and%20Checkout.md#L128)\n- `BASKETS-AND-CHECKOUT-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Baskets%20and%20Checkout.md#L129)\n- `BASKETS-AND-CHECKOUT-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Baskets%20and%20Checkout.md#L130)\n\nUse the [manual and ACT procedures](../Baskets%20and%20Checkout.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Baskets and Checkout.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Baskets%20and%20Checkout.md","source_start_line":1,"source_end_line":72,"source_document_sha256":"45081807344463575f7dbeb86b77ea9557380a3f29cad5d574ed70479fef9cdc","text_sha256":"45081807344463575f7dbeb86b77ea9557380a3f29cad5d574ed70479fef9cdc","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-breadcrumbs","title":"Breadcrumbs","text":"---\ntitle: \"Build Breadcrumbs\"\ndescription: \"Specify and verify the Breadcrumbs pattern in the host interface.\"\n---\n\n# Build Breadcrumbs\n\n## Standalone build prompt\n\nBuild Breadcrumbs to show where the current page sits in the site hierarchy. A breadcrumb component provides users with a clear and intuitive way to understand the hierarchy of the content, and to navigate back to previous sections of the website. Breadcrumbs are particularly useful for large websites or web applications with a deep and complex structure. Use Landmarks and Page Structure to place and name the breadcrumb navigation within the page. Compare it with Global Navigation and Site Menus so the hierarchy trail complements rather than duplicates other navigation.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L7) to select additional checks.\n\n```gherkin\nFeature: Breadcrumbs\n\n @BREADCRUMBS-01\n Scenario: The breadcrumbs list is contained within a `nav` HTML element\n Given the host offers the applicable Breadcrumbs variant\n When the person navigates by landmark\n Then The breadcrumbs list is contained within a `nav` HTML element.\n\n @BREADCRUMBS-02\n Scenario: The containing `nav` HTML element has the HTML attribute of `aria-label=\"breadcrumb\"` with a reasonable value (not necessarily \"br\n Given the host offers the applicable Breadcrumbs variant\n When the person inspects the navigation name\n Then The containing `nav` HTML element has the HTML attribute of `aria-label=\"breadcrumb\"` with a reasonable value (not necessarily \"breadcrumb\").\n\n @BREADCRUMBS-03\n Scenario: The breadcrumb items are implemented as list items in an `ol` or `ul` HTML element\n Given the host offers the applicable Breadcrumbs variant\n When the person reads the trail\n Then The breadcrumb items are implemented as list items in an `ol` or `ul` HTML element.\n\n @BREADCRUMBS-04\n Scenario: Ancestors are links\n Given the host offers the applicable Breadcrumbs variant\n When the person follows an ancestor\n Then Ancestors are links. The current page is identified and is not a link.\n\n @BREADCRUMBS-05\n Scenario: Only the breadcrumb list item representing the current page has an HTML attribute and value of `aria-current=\"page\"`\n Given the host offers the applicable Breadcrumbs variant\n When the person locates the current page\n Then Only the breadcrumb list item representing the current page has an HTML attribute and value of `aria-current=\"page\"`\n\n @BREADCRUMBS-06\n Scenario: The visual separator used to divide each breadcrumb item is not read out by screen readers\n Given the host offers the applicable Breadcrumbs variant\n When the person reads the trail with a screen reader\n Then The visual separator used to divide each breadcrumb item is not read out by screen readers.\n```\n\n## Retrieval pack\n\n- [Markup](../Breadcrumbs.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Breadcrumbs.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Breadcrumbs.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Breadcrumbs.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Breadcrumbs.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nInspect nav, ordered links and current marker and activate an ancestor. Automated checks can collect Landmark role and current item count. For agent-assisted review retain before and after observations. Human judgement: Can the person identify their level and return to an ancestor?\n\n- `BREADCRUMBS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Breadcrumbs.md#L82)\n- `BREADCRUMBS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Breadcrumbs.md#L83)\n- `BREADCRUMBS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Breadcrumbs.md#L84)\n- `BREADCRUMBS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Breadcrumbs.md#L85)\n- `BREADCRUMBS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Breadcrumbs.md#L86)\n- `BREADCRUMBS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Breadcrumbs.md#L87)\n\nUse the [manual and ACT procedures](../Breadcrumbs.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Breadcrumbs.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Breadcrumbs.md","source_start_line":1,"source_end_line":73,"source_document_sha256":"77e2f7581067f246e63d29b79664b29f226bfed4c52956c4c87b70c1201d1b19","text_sha256":"77e2f7581067f246e63d29b79664b29f226bfed4c52956c4c87b70c1201d1b19","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-calendars-and-date-pickers","title":"Calendars and Date Pickers","text":"---\ntitle: \"Build Calendars and Date Pickers\"\ndescription: \"Specify and verify the Calendars and Date Pickers pattern in the host interface.\"\n---\n\n# Build Calendars and Date Pickers\n\n## Standalone build prompt\n\nBuild Calendars and Date Pickers to date entry, calendar selection and availability. Choose a date input based on what the person knows. Someone entering their date of birth should be able to type it directly. Someone booking an appointment may need to compare dates, see availability and understand which dates are unavailable.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L26) to select additional checks.\n\n```gherkin\nFeature: Calendars and Date Pickers\n\n @CALENDARS-AND-DATE-PICKERS-01\n Scenario: The format and parts are clear\n Given the host offers the applicable Calendars and Date Pickers variant\n When the tester follows this procedure: Enter a known date directly, then try an incomplete date, 31 April and a valid leap day in a permitted year.\n Then The format and parts are clear. Impossible and incomplete dates get specific errors. Valid dates are retained and the error can be corrected without re-entry.\n\n @CALENDARS-AND-DATE-PICKERS-02\n Scenario: The input name, format and chosen value are understandable\n Given the host offers the applicable Calendars and Date Pickers variant\n When the tester follows this procedure: On supported desktop and mobile browsers, use a screen reader to enter a date and operate any picker. Repeat with another supported locale.\n Then The input name, format and chosen value are understandable. The submitted date matches the intended day even when the displayed format changes.\n\n @CALENDARS-AND-DATE-PICKERS-03\n Scenario: Focus starts in a useful place, day and month states are available, and focus returns predictably\n Given the host offers the applicable Calendars and Date Pickers variant\n When the tester follows this procedure: For a custom dialog, open with a selected date and then with an empty field. Navigate across weeks and months with the documented keys. Select a date, reopen and cancel with Escape.\n Then Focus starts in a useful place, day and month states are available, and focus returns predictably. Cancelling leaves the accepted value intact.\n\n @CALENDARS-AND-DATE-PICKERS-04\n Scenario: Availability agrees across routes\n Given the host offers the applicable Calendars and Date Pickers variant\n When the tester follows this procedure: Try an unavailable date through both the picker and direct entry or list. Then make a selected date unavailable before confirmation.\n Then Availability agrees across routes. The service explains the change, preserves other valid entries and offers another choice.\n\n @CALENDARS-AND-DATE-PICKERS-05\n Scenario: The result follows the stated range rules\n Given the host offers the applicable Calendars and Date Pickers variant\n When the tester follows this procedure: Where a range is supported, test the same day, reversed endpoints and boundary dates.\n Then The result follows the stated range rules. Errors identify the affected field or combination and offer a correction.\n\n @CALENDARS-AND-DATE-PICKERS-06\n Scenario: Dates, controls and states stay distinguishable\n Given the host offers the applicable Calendars and Date Pickers variant\n When the tester follows this procedure: Enlarge text, then separately test a narrow viewport, forced colours and blocked scripts.\n Then Dates, controls and states stay distinguishable. A usable route to enter or find dates remains available without the custom calendar.\n```\n\n## Retrieval pack\n\n- [Markup](../Calendars%20and%20Date%20Pickers.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Calendars%20and%20Date%20Pickers.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Calendars%20and%20Date%20Pickers.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Calendars%20and%20Date%20Pickers.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Calendars%20and%20Date%20Pickers.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Enter and validate a date](../Calendars%20and%20Date%20Pickers.md#enter-and-validate-a-date)\n- [Browse and select in a calendar](../Calendars%20and%20Date%20Pickers.md#browse-and-select-in-a-calendar)\n- [Keep availability current](../Calendars%20and%20Date%20Pickers.md#keep-availability-current)\n\n## Verification and acceptance\n\nEnter a date by typing, navigate the calendar, select, close and recover from an unavailable or invalid date. Automated checks can collect Selected date, focus and validation state. For agent-assisted review retain before and after observations. Human judgement: Can the person recognise the format and choose a valid date through either route?\n\n- `CALENDARS-AND-DATE-PICKERS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Calendars%20and%20Date%20Pickers.md#L108)\n- `CALENDARS-AND-DATE-PICKERS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Calendars%20and%20Date%20Pickers.md#L109)\n- `CALENDARS-AND-DATE-PICKERS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Calendars%20and%20Date%20Pickers.md#L110)\n- `CALENDARS-AND-DATE-PICKERS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Calendars%20and%20Date%20Pickers.md#L111)\n- `CALENDARS-AND-DATE-PICKERS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Calendars%20and%20Date%20Pickers.md#L112)\n- `CALENDARS-AND-DATE-PICKERS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Calendars%20and%20Date%20Pickers.md#L113)\n\nUse the [manual and ACT procedures](../Calendars%20and%20Date%20Pickers.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Calendars and Date Pickers.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Calendars%20and%20Date%20Pickers.md","source_start_line":1,"source_end_line":79,"source_document_sha256":"a8ac61512a908baf0a11b12a22b2dc6fc43b94b7e29cc09e00504545aeb57482","text_sha256":"a8ac61512a908baf0a11b12a22b2dc6fc43b94b7e29cc09e00504545aeb57482","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-call-to-action","title":"Call to Action","text":"---\ntitle: \"Build Call to Action\"\ndescription: \"Specify and verify the Call to Action pattern in the host interface.\"\n---\n\n# Build Call to Action\n\n## Standalone build prompt\n\nBuild Call to Action to help people recognise and use the next step in a journey. Use a call to action (CTA) when people need to spot an important next step, such as starting an application, viewing an offer or completing an order. Make it clear what will happen before they activate it. A prominent control can still be hard to find if its purpose is unclear, it appears too late in reading order or its focus indicator disappears.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L40) to select additional checks.\n\n```gherkin\nFeature: Call to Action\n\n @CALL-TO-ACTION-01\n Scenario: The action is easy to locate and its wording distinguishes it from nearby choices\n Given the host offers the applicable Call to Action variant\n When the tester follows this procedure: Find the main action visually and then through keyboard or screen reader navigation. Read its label and the preceding context.\n Then The action is easy to locate and its wording distinguishes it from nearby choices. Conditions, deadlines and consequences needed for a decision are available before activation.\n\n @CALL-TO-ACTION-02\n Scenario: The visible wording is included in the name\n Given the host offers the applicable Call to Action variant\n When the tester follows this procedure: Inspect the role and accessible name. Use Enter on a link and Enter and Space on a button.\n Then The visible wording is included in the name. The role and keys match the behaviour, and activation reaches the stated destination or performs the stated action.\n\n @CALL-TO-ACTION-03\n Scenario: The label, any boundary needed to identify the control and its focus indicator remain visible\n Given the host offers the applicable Call to Action variant\n When the tester follows this procedure: Increase text size and test a narrow viewport separately. Turn on forced colours and Tab to the CTA.\n Then The label, any boundary needed to identify the control and its focus indicator remain visible. The action stays in a meaningful order relative to the information it needs.\n\n @CALL-TO-ACTION-04\n Scenario: The target meets the applicable criterion and people can activate it without accidentally selecting a neighbouring control\n Given the host offers the applicable Call to Action variant\n When the tester follows this procedure: Measure the actual pointer target and, where needed, check adjacent targets against the spacing exception. Try the supported touch and pointer inputs.\n Then The target meets the applicable criterion and people can activate it without accidentally selecting a neighbouring control.\n\n @CALL-TO-ACTION-05\n Scenario: The result matches the promise made by the label\n Given the host offers the applicable Call to Action variant\n When the tester follows this procedure: Complete an action, then test an ineligible or failed attempt where relevant.\n Then The result matches the promise made by the label. Failure explains what happened and how to continue.\n```\n\n## Retrieval pack\n\n- [Markup](../Call%20to%20Action.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Call%20to%20Action.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Call%20to%20Action.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Call%20to%20Action.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Call%20to%20Action.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nCheck link vs button role, visible name, keyboard activation and actual pointer target. Automated checks can collect Role, computed name and click target geometry. For agent-assisted review retain before and after observations. Human judgement: Can the person predict the next step and distinguish it from neighbouring actions?\n\n- `CALL-TO-ACTION-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Call%20to%20Action.md#L87)\n- `CALL-TO-ACTION-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Call%20to%20Action.md#L88)\n- `CALL-TO-ACTION-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Call%20to%20Action.md#L89)\n- `CALL-TO-ACTION-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Call%20to%20Action.md#L90)\n- `CALL-TO-ACTION-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Call%20to%20Action.md#L91)\n\nUse the [manual and ACT procedures](../Call%20to%20Action.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Call to Action.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Call%20to%20Action.md","source_start_line":1,"source_end_line":66,"source_document_sha256":"50b2eb08db4333baba8f43b2b2029c8bf0c40171265beb3421d7bea8a060543f","text_sha256":"50b2eb08db4333baba8f43b2b2029c8bf0c40171265beb3421d7bea8a060543f","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-cards","title":"Cards","text":"---\ntitle: \"Build Cards\"\ndescription: \"Specify and verify the Cards pattern in the host interface.\"\n---\n\n# Build Cards\n\n## Standalone build prompt\n\nBuild Cards to group related content and actions into items people can browse. Use cards when people need to scan a collection and preview, play, save or share an item without leaving the page. Put each card’s headline first in the reading order so people navigating by headings or using a screen reader can identify the item before they encounter its contents. Use Promotional Cards when the main purpose is to link to featured content elsewhere.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L15) to select additional checks.\n\n```gherkin\nFeature: Cards\n\n @CARDS-01\n Scenario: A descriptive collection heading precedes a `ul`\n Given the host offers the applicable Cards variant\n When the tester follows this procedure: Inspect the collection structure. Navigate by headings and list items with a screen reader.\n Then A descriptive collection heading precedes a `ul`. Each peer card is a `li`. Card headings share a level one below the collection heading.\n\n @CARDS-02\n Scenario: Each card has a headline marked up as a heading\n Given the host offers the applicable Cards variant\n When the tester follows this procedure: Inspect the markup and read from the start of each card with a screen reader.\n Then Each card has a headline marked up as a heading. It is the first text encountered in the card, including text alternatives for media.\n\n @CARDS-03\n Scenario: The alternative conveys the relevant information from the image without just repeating the headline\n Given the host offers the applicable Cards variant\n When the tester follows this procedure: Read the alternative text of an image that is central to the card. Compare it with the image and headline.\n Then The alternative conveys the relevant information from the image without just repeating the headline.\n\n @CARDS-04\n Scenario: the label identifies its card and the panel follows its trigger\n Given a collection has two cards with disclosures\n When the person opens and closes the second disclosure by keyboard\n Then the label identifies its card and the panel follows its trigger. The first card keeps its state. Closed content is skipped by Tab and screen reader navigation. If Escape is supported, it closes the panel and returns focus to its trigger.\n\n @CARDS-05\n Scenario: each dialog name and content identify its card and dismissal restores focus to its opener when the page remains active\n Given two cards open item-specific modals\n When the person opens and dismisses each modal by keyboard\n Then each dialog name and content identify its card and dismissal restores focus to its opener when the page remains active.\n\n @CARDS-06\n Scenario: each action affects its own item\n Given two cards offer item actions and one includes a video\n When the person uses each action and then operates the player\n Then each action affects its own item. A toggle exposes the visible pressed state. Playback waits for activation, captions are available for dialogue and controls are operable.\n\n @CARDS-07\n Scenario: there is a usable route to the supplementary information without scripts\n Given a card has supplementary information\n When the person blocks scripts and then separately disables CSS\n Then there is a usable route to the supplementary information without scripts. Without CSS the headline, content and actions are readable in order.\n\n @CARDS-08\n Scenario: content fits without clipping or overlap, controls remain reachable, images retain their proportions and essential boundaries and focus remain visible\n Given the collection contains visible controls and images\n When the person enlarges text, narrows the viewport and enables forced colours in separate runs\n Then content fits without clipping or overlap, controls remain reachable, images retain their proportions and essential boundaries and focus remain visible.\n```\n\n## Retrieval pack\n\n- [Markup](../Cards.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Cards.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Cards.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Cards.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Revealing content or opening a dialog](../Cards.md#revealing-content-or-opening-a-dialog)\n\n## Verification and acceptance\n\nInspect reading order and heading and traverse primary and secondary controls through each variant. Automated checks can collect Heading order and link destinations. For agent-assisted review retain before and after observations. Human judgement: Can the person distinguish the card’s destination from other actions?\n\n- `CARDS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L108)\n- `CARDS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L109)\n- `CARDS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L110)\n- `CARDS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L114)\n- `CARDS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L115)\n- `CARDS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L116)\n- `CARDS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L117)\n- `CARDS-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Cards.md#L118)\n\nUse the [manual and ACT procedures](../Cards.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Cards.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Cards.md","source_start_line":1,"source_end_line":91,"source_document_sha256":"42d74248bf0c9960ae78a5b4f82ade8eeeb0d00e39ee96ca0768fa6c2d7e9412","text_sha256":"42d74248bf0c9960ae78a5b4f82ade8eeeb0d00e39ee96ca0768fa6c2d7e9412","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-carousels-and-sliders","title":"Carousels and Sliders","text":"---\ntitle: \"Build Carousels and Sliders\"\ndescription: \"Specify and verify the Carousels and Sliders pattern in the host interface.\"\n---\n\n# Build Carousels and Sliders\n\n## Standalone build prompt\n\nBuild Carousels and Sliders to paged slides, scrolling lists and value inputs. Use a carousel when people benefit from browsing a short sequence of related content at their own pace. Slides add controls and can conceal information from people who scan, search the page or navigate by headings. Keep essential information and actions where people can find them directly.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L16) to select additional checks.\n\n```gherkin\nFeature: Carousels and Sliders\n\n @CAROUSELS-AND-SLIDERS-01\n Scenario: Focus stays visible and moves predictably\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: Tab into the carousel. Activate both directions with Enter and Space in separate runs. Reach both ends, then Tab and Shift+Tab through the page.\n Then Focus stays visible and moves predictably. Inactive slide controls are skipped. Unavailable actions are identified and do nothing.\n\n @CAROUSELS-AND-SLIDERS-02\n Scenario: Names identify the collection, slides and buttons\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: With a supported screen reader, find the collection, change slides and browse the result. Try each button by its visible label using supported voice control.\n Then Names identify the collection, slides and buttons. Position is available without duplicate announcements. Voice activation has the same effect as a click.\n\n @CAROUSELS-AND-SLIDERS-03\n Scenario: Both directions work without dragging\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: Repeat by touch. If a swipe or drag is available, also change slides by tapping the controls without a gesture.\n Then Both directions work without dragging. Controls and visible slide content are usable.\n\n @CAROUSELS-AND-SLIDERS-04\n Scenario: Rotation is off initially and stops on focus entry or hover\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: If rotation is offered, start it, enter by keyboard and repeat by hovering. Leave, then restart explicitly. Repeat with reduced motion enabled.\n Then Rotation is off initially and stops on focus entry or hover. It stays stopped until requested. The content remains usable without non-essential motion.\n\n @CAROUSELS-AND-SLIDERS-05\n Scenario: Text and controls remain usable\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: Enlarge text to 200%, then separately narrow the viewport. Enable forced colours.\n Then Text and controls remain usable. Focus and current position are distinguishable. A scrolling list reveals focused items.\n\n @CAROUSELS-AND-SLIDERS-06\n Scenario: All content is reachable through the baseline or equivalent route\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: Block scripts and reload. In a separate run, restore scripts and disable CSS. Test find-in-page and any ‘View all’ route.\n Then All content is reachable through the baseline or equivalent route. Behaviour remains understandable without styling and people have a reliable way to find the items.\n\n @CAROUSELS-AND-SLIDERS-07\n Scenario: The collections are distinguishable\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: Where several carousels are present, read and use the surrounding page, then operate each carousel.\n Then The collections are distinguishable. Each control affects its own collection. Essential information stays available without traversing each sequence.\n\n @CAROUSELS-AND-SLIDERS-08\n Scenario: Value, units and limits make sense\n Given the host offers the applicable Carousels and Sliders variant\n When the tester follows this procedure: For a value slider, use the keyboard, tap without dragging and check the output with a supported screen reader, including touch where relevant.\n Then Value, units and limits make sense. The displayed value follows the control, and any alternative input changes the same setting.\n```\n\n## Retrieval pack\n\n- [Markup](../Carousels%20and%20Sliders.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Carousels%20and%20Sliders.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Carousels%20and%20Sliders.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Carousels%20and%20Sliders.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Paged carousel](../Carousels%20and%20Sliders.md#paged-carousel)\n- [Horizontal scrolling list](../Carousels%20and%20Sliders.md#horizontal-scrolling-list)\n- [Automatic advance](../Carousels%20and%20Sliders.md#automatic-advance)\n\n## Verification and acceptance\n\nTest slide boundaries, hidden controls, announcements and rotation separately from scroll lists and range inputs. Automated checks can collect Visible slide selection and focused descendant. For agent-assisted review retain before and after observations. Human judgement: Can the person find a later item, stop motion and continue reading without losing their place?\n\n- `CAROUSELS-AND-SLIDERS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L151)\n- `CAROUSELS-AND-SLIDERS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L152)\n- `CAROUSELS-AND-SLIDERS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L153)\n- `CAROUSELS-AND-SLIDERS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L154)\n- `CAROUSELS-AND-SLIDERS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L155)\n- `CAROUSELS-AND-SLIDERS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L156)\n- `CAROUSELS-AND-SLIDERS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L157)\n- `CAROUSELS-AND-SLIDERS-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Carousels%20and%20Sliders.md#L158)\n\nUse the [manual and ACT procedures](../Carousels%20and%20Sliders.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Carousels and Sliders.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Carousels%20and%20Sliders.md","source_start_line":1,"source_end_line":93,"source_document_sha256":"f5e96dd3a7d55e0af110cdf5a227999e6a5d814bf1cf3bddce51896be28ace62","text_sha256":"f5e96dd3a7d55e0af110cdf5a227999e6a5d814bf1cf3bddce51896be28ace62","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-chatbots","title":"Chatbots","text":"---\ntitle: \"Build Chatbots\"\ndescription: \"Specify and verify the Chatbots pattern in the host interface.\"\n---\n\n# Build Chatbots\n\n## Standalone build prompt\n\nBuild Chatbots to conversation, announcements and alternative support. Use a chatbot to help people complete a defined task or find support. Tell people they are using an automated service, what it can help with and how to get help another way. Keep the alternative available before and during chat. Someone who cannot use the conversation, or whose question is outside its scope, still needs a route to complete the task. See Support, Escalation and Handoffs.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L32) to select additional checks.\n\n```gherkin\nFeature: Chatbots\n\n @CHATBOTS-01\n Scenario: The launcher identifies chat and exposes its state\n Given the host offers the applicable Chatbots variant\n When the tester follows this procedure: Start with chat closed. Use Tab and a supported screen reader to find, open, navigate and close chat. In a separate run, block scripts.\n Then The launcher identifies chat and exposes its state. Focus is usable after closing. Hidden controls are skipped and the alternative support route is available.\n\n @CHATBOTS-02\n Scenario: Enter allows a line break in the textarea and the message is sent only through the intended action\n Given the host offers the applicable Chatbots variant\n When the tester follows this procedure: Type multiple lines and send using the named button. Test any optional keyboard shortcut with input-method composition.\n Then Enter allows a line break in the textarea and the message is sent only through the intended action. The composer has a clear name and remains usable.\n\n @CHATBOTS-03\n Scenario: The draft and reading location remain usable\n Given the host offers the applicable Chatbots variant\n When the tester follows this procedure: Send a message, begin a new draft or read earlier messages, then let the reply arrive. Repeat with streamed responses and rapid updates where offered.\n Then The draft and reading location remain usable. Feedback identifies progress and completion without repeating the transcript or individual tokens. The latest reply and older messages can be reached on demand.\n\n @CHATBOTS-04\n Scenario: Stop prevents further output for the cancelled response\n Given the host offers the applicable Chatbots variant\n When the tester follows this procedure: Stop a pending response, retry after a failed request, and close and reopen with a draft.\n Then Stop prevents further output for the cancelled response. Partial output is identified if retained. A retry does not duplicate an accepted message, and any draft loss is explained.\n\n @CHATBOTS-05\n Scenario: Chat and its support route stay operable\n Given the host offers the applicable Chatbots variant\n When the tester follows this procedure: Increase text size, then separately test a narrow viewport, forced colours and the touch keyboard. If the host uses a modal, test focus containment and return.\n Then Chat and its support route stay operable. The composer and chat panel do not hide focused controls. The modal variant follows the Modal Dialogs checks.\n\n @CHATBOTS-06\n Scenario: The service explains the route and any wait or data transfer\n Given the host offers the applicable Chatbots variant\n When the tester follows this procedure: Ask a question outside the tool’s scope and follow the human support or alternative route. If handoff is offered, try accepting and declining the transfer.\n Then The service explains the route and any wait or data transfer. People can continue safely in either case.\n```\n\n## Retrieval pack\n\n- [Markup](../Chatbots.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Chatbots.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Chatbots.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Chatbots.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Chatbots.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Open, read and close](../Chatbots.md#open-read-and-close)\n- [Send, wait and recover](../Chatbots.md#send-wait-and-recover)\n- [Provide another route and protect the task](../Chatbots.md#provide-another-route-and-protect-the-task)\n\n## Verification and acceptance\n\nSend, stream, interrupt, retry and hand off and test focus, ordered transcript and useful announcements. Automated checks can collect Message order, retry state and focus. For agent-assisted review retain before and after observations. Human judgement: Can the person review answers and reach human help without restarting?\n\n- `CHATBOTS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Chatbots.md#L194)\n- `CHATBOTS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Chatbots.md#L195)\n- `CHATBOTS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Chatbots.md#L196)\n- `CHATBOTS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Chatbots.md#L197)\n- `CHATBOTS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Chatbots.md#L198)\n- `CHATBOTS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Chatbots.md#L199)\n\nUse the [manual and ACT procedures](../Chatbots.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Chatbots.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Chatbots.md","source_start_line":1,"source_end_line":79,"source_document_sha256":"dfc63f643ee1a6b2300860cfd26dd9a6285340c4131e56fdb734117d0b934259","text_sha256":"dfc63f643ee1a6b2300860cfd26dd9a6285340c4131e56fdb734117d0b934259","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-comments","title":"Comments","text":"---\ntitle: \"Build Comments\"\ndescription: \"Specify and verify the Comments pattern in the host interface.\"\n---\n\n# Build Comments\n\n## Standalone build prompt\n\nBuild Comments to help people read, navigate and contribute to a discussion. Help people find the discussion, follow replies and post their own contribution. Repeated headings can make comments hard to distinguish in a screen reader’s headings list. Replacing a sorted list or hiding a focused control can also make someone using a keyboard lose their place.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L33) to select additional checks.\n\n```gherkin\nFeature: Comments\n\n @COMMENTS-01\n Scenario: The discussion has a clear name\n Given the host offers the applicable Comments variant\n When the tester follows this procedure: Read the discussion heading, sort control and list with a screen reader. Navigate by headings and list items, including replies.\n Then The discussion has a clear name. The total’s scope is understandable. Individual comments are distinguishable and replies are nested with their parent.\n\n @COMMENTS-02\n Scenario: The intended comment is available and keyboard navigation can continue from it\n Given the host offers the applicable Comments variant\n When the tester follows this procedure: Activate a comment permalink with the keyboard, open the copied URL directly, then try ‘Leave a comment’ after the stream.\n Then The intended comment is available and keyboard navigation can continue from it. The link at the end takes the reader to the available comment field or sign-in control.\n\n @COMMENTS-03\n Scenario: The limit, remaining count and recovery instructions are available\n Given the host offers the applicable Comments variant\n When the tester follows this procedure: Submit an empty comment, edit a draft near its limit and simulate a failed submission. Then try successful public posting and moderation where supported.\n Then The limit, remaining count and recovery instructions are available. Failed submissions retain the draft. Successful submissions clear it and communicate the actual outcome without losing focus. The public list and total reflect published comments.\n\n @COMMENTS-04\n Scenario: The labelled field receives focus and identifies its parent\n Given the host offers the applicable Comments variant\n When the tester follows this procedure: Open Reply on a specific comment, cancel, then reopen it and submit a reply.\n Then The labelled field receives focus and identifies its parent. Cancelling returns focus to Reply. A published reply appears under the correct parent.\n\n @COMMENTS-05\n Scenario: The selection and displayed order agree after success\n Given the host offers the applicable Comments variant\n When the tester follows this procedure: Change the sort order with the keyboard. Repeat with a slow or failed response.\n Then The selection and displayed order agree after success. Replies stay with their parents. Focus stays on a usable control and any wait or failure is communicated.\n\n @COMMENTS-06\n Scenario: Reaction labels stay stable, pressed states and totals agree, and selected states are visible without colour\n Given the host offers the applicable Comments variant\n When the tester follows this procedure: Select, switch and withdraw reactions where supported. Open and close any overflow actions.\n Then Reaction labels stay stable, pressed states and totals agree, and selected states are visible without colour. Overflow actions are reachable when open and skipped when collapsed.\n\n @COMMENTS-07\n Scenario: The documented baseline is available\n Given the host offers the applicable Comments variant\n When the tester follows this procedure: Block scripts and reload. In separate runs, narrow the viewport, increase text size and enable forced colours.\n Then The documented baseline is available. The stream, reply structure, controls and keyboard focus remain visible and usable in the supported layouts.\n```\n\n## Retrieval pack\n\n- [Markup](../Comments.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Comments.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Comments.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Comments.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Posting and replying](../Comments.md#posting-and-replying)\n- [Sorting and loading](../Comments.md#sorting-and-loading)\n- [Reactions and other actions](../Comments.md#reactions-and-other-actions)\n\n## Verification and acceptance\n\nFollow a reply, submit successfully and fail and check thread structure, feedback and preserved text. Automated checks can collect Reply nesting and submission status. For agent-assisted review retain before and after observations. Human judgement: Can the person find the relevant reply and know whether their comment was posted?\n\n- `COMMENTS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#L127)\n- `COMMENTS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#L128)\n- `COMMENTS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#L129)\n- `COMMENTS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#L130)\n- `COMMENTS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#L131)\n- `COMMENTS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#L132)\n- `COMMENTS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Comments.md#L133)\n\nUse the [manual and ACT procedures](../Comments.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Comments.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Comments.md","source_start_line":1,"source_end_line":86,"source_document_sha256":"d7eeb305e921d6cfd518d7d8e51aa5e4b1e1b0fbe5a10187ed2812ce846991fd","text_sha256":"d7eeb305e921d6cfd518d7d8e51aa5e4b1e1b0fbe5a10187ed2812ce846991fd","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-customer-surveys-and-feedback","title":"Customer Surveys and Feedback","text":"---\ntitle: \"Build Customer Surveys and Feedback\"\ndescription: \"Specify and verify the Customer Surveys and Feedback pattern in the host interface.\"\n---\n\n# Build Customer Surveys and Feedback\n\n## Standalone build prompt\n\nBuild Customer Surveys and Feedback to accessible feedback throughout the customer journey. Give customers a way to tell you what worked, where they got stuck and what would help. A survey that appears only after success misses people who could not complete the task. Provide accessible routes for people who could not start, left partway through or used assisted or offline channels. Taking part is optional and leaves access to the service unchanged.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L34) to select additional checks.\n\n```gherkin\nFeature: Customer Surveys and Feedback\n\n @CUSTOMER-SURVEYS-AND-FEEDBACK-01\n Scenario: Feedback is reachable without completing the service\n Given the host offers the applicable Customer Surveys and Feedback variant\n When the tester follows this procedure: Find feedback after success, from a failure or exit point and before sign-in where relevant. Decline an invitation and continue.\n Then Feedback is reachable without completing the service. Declining leaves the task and its outcomes available.\n\n @CUSTOMER-SURVEYS-AND-FEEDBACK-02\n Scenario: The question, scale, selected value and optional status are clear\n Given the host offers the applicable Customer Surveys and Feedback variant\n When the tester follows this procedure: Use a screen reader and keyboard to find the form, choose a rating and submit. Repeat with a comment only and then by touch.\n Then The question, scale, selected value and optional status are clear. Either answer can be sent and the result is available in text.\n\n @CUSTOMER-SURVEYS-AND-FEEDBACK-03\n Scenario: Instructions explain what to do\n Given the host offers the applicable Customer Surveys and Feedback variant\n When the tester follows this procedure: Submit without an answer. Then enter a response, simulate failure, correct or retry, and attempt a second submission after success.\n Then Instructions explain what to do. Failure preserves answers and exposes a retry. Success follows acceptance and repetition does not duplicate it.\n\n @CUSTOMER-SURVEYS-AND-FEEDBACK-04\n Scenario: Questions, labels, controls, visible focus and feedback remain usable\n Given the host offers the applicable Customer Surveys and Feedback variant\n When the tester follows this procedure: Increase text size to 200%, then separately test reflow at a narrow width. Repeat in forced colours.\n Then Questions, labels, controls, visible focus and feedback remain usable.\n\n @CUSTOMER-SURVEYS-AND-FEEDBACK-05\n Scenario: An accessible feedback route remains available\n Given the host offers the applicable Customer Surveys and Feedback variant\n When the tester follows this procedure: Try the real service with scripts blocked or the external survey unavailable. Follow the help or complaints route.\n Then An accessible feedback route remains available. The service explains which route provides help or a reply.\n\n @CUSTOMER-SURVEYS-AND-FEEDBACK-06\n Scenario: Reports show who was invited and whose experience is missing where that is known\n Given the host offers the applicable Customer Surveys and Feedback variant\n When the tester follows this procedure: Review invitations and responses from a sample across outcome and channel.\n Then Reports show who was invited and whose experience is missing where that is known. Skips and non-applicable responses stay distinct from ratings.\n```\n\n## Retrieval pack\n\n- [Markup](../Customer%20Surveys%20and%20Feedback.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Customer%20Surveys%20and%20Feedback.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Customer%20Surveys%20and%20Feedback.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Customer%20Surveys%20and%20Feedback.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Customer%20Surveys%20and%20Feedback.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Invite without blocking the task](../Customer%20Surveys%20and%20Feedback.md#invite-without-blocking-the-task)\n- [Ask only for what you need](../Customer%20Surveys%20and%20Feedback.md#ask-only-for-what-you-need)\n- [Confirm receipt and support recovery](../Customer%20Surveys%20and%20Feedback.md#confirm-receipt-and-support-recovery)\n\n## Verification and acceptance\n\nExercise optional invitation, skip, submit, correct and alternative channel. Automated checks can collect Optional fields, validation and decline route. For agent-assisted review retain before and after observations. Human judgement: Can customers give comparable feedback or decline without pressure or unnecessary disclosure?\n\n- `CUSTOMER-SURVEYS-AND-FEEDBACK-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Customer%20Surveys%20and%20Feedback.md#L142)\n- `CUSTOMER-SURVEYS-AND-FEEDBACK-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Customer%20Surveys%20and%20Feedback.md#L143)\n- `CUSTOMER-SURVEYS-AND-FEEDBACK-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Customer%20Surveys%20and%20Feedback.md#L144)\n- `CUSTOMER-SURVEYS-AND-FEEDBACK-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Customer%20Surveys%20and%20Feedback.md#L145)\n- `CUSTOMER-SURVEYS-AND-FEEDBACK-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Customer%20Surveys%20and%20Feedback.md#L146)\n- `CUSTOMER-SURVEYS-AND-FEEDBACK-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Customer%20Surveys%20and%20Feedback.md#L147)\n\nUse the [manual and ACT procedures](../Customer%20Surveys%20and%20Feedback.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Customer Surveys and Feedback.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Customer%20Surveys%20and%20Feedback.md","source_start_line":1,"source_end_line":79,"source_document_sha256":"e1f0ea7f947bacd0ce71eaaf7d29e3a4f5ead093ef5968852dd3884a0af42d54","text_sha256":"e1f0ea7f947bacd0ce71eaaf7d29e3a4f5ead093ef5968852dd3884a0af42d54","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-data-tables","title":"Data Tables","text":"---\ntitle: \"Build Data Tables\"\ndescription: \"Specify and verify the Data Tables pattern in the host interface.\"\n---\n\n# Build Data Tables\n\n## Standalone build prompt\n\nBuild Data Tables to keep headers and values associated when people compare or sort data. Use a data table when people need to compare values or look up information by row and column. A value can be hard to interpret if its header is missing or if the layout moves the value under a different header at a narrow width. Preserve the relationships in the markup and on screen.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L27) to select additional checks.\n\n```gherkin\nFeature: Data Tables\n\n @DATA-TABLES-01\n Scenario: A descriptive caption identifies the native table\n Given the host offers the applicable Data Tables variant\n When the tester follows this procedure: Inspect the markup. Navigate directly to the table with a screen reader. Move across a row and down a column.\n Then A descriptive caption identifies the native table. Data has row headers, column headers or both as appropriate. Native header cells use `th`. The correct headers are available for each value as the user navigates.\n\n @DATA-TABLES-02\n Scenario: A table is exposed as data when its cell relationships are meaningful to the task\n Given the host offers the applicable Data Tables variant\n When the tester follows this procedure: Manually review the content and task supported by each ``. Decide whether people need relationships across rows or columns to interpret or compare its values. Inspect the role exposed in the accessibility tree and the table’s reading order. Do not infer purpose from row, column or cell counts; width; borders or coloured rows; nested tables; embedded content; or the presence of ``, ` `, ` ` or `` alone.\n Then A table is exposed as data when its cell relationships are meaningful to the task. If it is used only to position content, CSS layout is preferred. If a legacy layout table remains, its semantics do not create misleading table navigation and its content order remains meaningful. If purpose and exposed semantics disagree or remain unclear, record the issue for review; do not add legacy heuristic markers to force a classification.\n\n @DATA-TABLES-03\n Scenario: The container exposes the table role\n Given the host offers the applicable Data Tables variant\n When the tester follows this procedure: For a custom table, inspect the accessibility tree and repeat the cell navigation.\n Then The container exposes the table role. Rows expose the row role and their children expose columnheader, rowheader or cell roles as applicable. Each value has the right header context.\n\n @DATA-TABLES-04\n Scenario: Column headers stay above their data and row headers stay beside their data\n Given the host offers the applicable Data Tables variant\n When the tester follows this procedure: Narrow the viewport and inspect corresponding headers and cells before and after scrolling within the table.\n Then Column headers stay above their data and row headers stay beside their data. No cell wraps into another row or column. Any necessary two-dimensional scrolling stays within the table area and the surrounding page reflows.\n\n @DATA-TABLES-05\n Scenario: the overflow cue and focus are visible, every cell can be brought into view and focus can leave\n Given a table overflows at a narrow width\n When the person Tabs to its scroll area, scrolls to the last column and Tabs onward\n Then the overflow cue and focus are visible, every cell can be brought into view and focus can leave. Where the tab stop is conditional it tracks changes in overflow.\n\n @DATA-TABLES-06\n Scenario: cells stay readable and associated with their headers\n Given a long table uses associated headers and may include a sticky header\n When the person enlarges text, then separately zooms, scrolls and focuses a nearby control\n Then cells stay readable and associated with their headers. Any sticky header stays aligned and leaves controls and content readable and operable.\n\n @DATA-TABLES-07\n Scenario: whole rows reorder, the visible and exposed directions agree, only the current header exposes sort direction and focus stays on the activated button\n Given at least two columns offer sorting\n When the person activates one sort button twice and then activates another\n Then whole rows reorder, the visible and exposed directions agree, only the current header exposes sort direction and focus stays on the activated button.\n\n @DATA-TABLES-08\n Scenario: the initial table is readable, the overflow scrolls by keyboard and the baseline sort works where offered\n Given an overflowing table has an initial order\n When the person reloads with scripts blocked and tries the keyboard scroll and any baseline sort\n Then the initial table is readable, the overflow scrolls by keyboard and the baseline sort works where offered.\n```\n\n## Retrieval pack\n\n- [Markup](../Data%20Tables.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Data%20Tables.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Data%20Tables.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Data%20Tables.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Scrolling and sticky headers](../Data%20Tables.md#scrolling-and-sticky-headers)\n- [Sorting](../Data%20Tables.md#sorting)\n\n## Verification and acceptance\n\nCheck actual header associations while reading and sorting and test keyboard scrolling at narrow widths. Automated checks can collect Header associations in supported fixtures and scroll position. For agent-assisted review retain before and after observations. Human judgement: Can the person compare values without losing the associated headers?\n\n- `DATA-TABLES-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L114)\n- `DATA-TABLES-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L115)\n- `DATA-TABLES-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L116)\n- `DATA-TABLES-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L117)\n- `DATA-TABLES-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L121)\n- `DATA-TABLES-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L122)\n- `DATA-TABLES-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L123)\n- `DATA-TABLES-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Data%20Tables.md#L124)\n\nUse the [manual and ACT procedures](../Data%20Tables.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Data Tables.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Data%20Tables.md","source_start_line":1,"source_end_line":92,"source_document_sha256":"6ff607a41860324e1b801a8edca5b531e0d1e941d051a75f2d9fa83d9a0fb532","text_sha256":"6ff607a41860324e1b801a8edca5b531e0d1e941d051a75f2d9fa83d9a0fb532","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-disclosure","title":"Disclosure","text":"# Build Disclosure\n\n## A. Standalone build prompt\n\nRead optional details in place and return to the same point. Prefer native details with a first summary. Use an enhanced button when the host needs custom behaviour. Keep the panel immediately after the trigger. A named region is optional. Confirm initial openness, meaningful label and whether the panel contains a control.\n\nThe worked contract uses a paragraph. Its example cannot exercise the next-Tab requirement. Include an interactive descendant in a test fixture. The native relationship comes from containment. For the custom variant use a button, synchronise aria-expanded and hidden, and link aria-controls to the panel. Keep decorative state marks out of the name.\n\nMake the enhanced trigger a non-submit button (type=\"button\") so activating it never submits an enclosing form. If the host adds motion when the panel opens or closes, honour the person's reduced-motion preference by removing or minimising it.\n\nUse native HTML where it supplies the behaviour. Use host components and brand tokens where they preserve these outcomes. Before coding, copy the [Cosmos semantics contract template](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Component%20Semantics%20Contract.md#contract-template) for each materially different variant. Record names, roles, states, relationships, focus, keyboard commands, feedback, fallback, recovery and the supported environments. Mark unresolved host decisions. Deliver the implementation, the contract reconciled against the rendered interface, and evidence against the [Disclosure matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/testing-matrix/Design%20Patterns.md#L17). Accept each applicable scenario only with observed evidence. Record pass, fail, not applicable, not run or cannot tell and explain exclusions and gaps.\n\n```gherkin\nFeature: Disclosure\n\n Scenario: disclosure-state-sync — The person opens it with Enter and closes it with Space\n Given a named, collapsed control has keyboard focus\n When the person opens it with Enter and closes it with Space\n Then the panel opens then closes, focus stays on the control, and its visible indicator and exposed expanded state match each change\n\n Scenario: disclosure-panel-exposure — The person presses Tab, returns to the control, closes it and presses Tab again\n Given the open panel contains a link and focus is on the control\n When the person presses Tab, returns to the control, closes it and presses Tab again\n Then focus reaches the panel link on the first pass and skips it on the second\n\n Scenario: disclosure-baseline — The page loads with scripts blocked\n Given the page uses native disclosure or an enhanced button\n When the page loads with scripts blocked\n Then the native summary still toggles or the custom panel is readable directly without an inert trigger\n\n Scenario: DISC-P2-04 — The person focuses and opens the control in forced colours and again at 200% text size\n Given the trigger and panel use host styles\n When the person focuses and opens the control in forced colours and again at 200% text size\n Then the person can distinguish focus and state and read the full label and content\n\n Scenario: DISC-P2-05 — The person opens and closes the disclosure\n Given style sheets are disabled\n When the person opens and closes the disclosure\n Then the control remains identifiable and panel text is available when open\n\n Scenario: DISC-P2-06 — They find the trigger by its visible label and toggle it\n Given a person is using a supported screen reader or voice control\n When they find the trigger by its visible label and toggle it\n Then they can identify what will open and determine whether its content is available\n\n Scenario: DISC-P2-07 — The person activates the enhanced trigger with Enter or Space\n Given the enhanced trigger sits inside a form\n When the person activates the enhanced trigger with Enter or Space\n Then the panel toggles and the form is not submitted\n\n Scenario: DISC-P2-08 — The person opens and closes the disclosure\n Given the host adds motion to opening or closing and the person has requested reduced motion\n When the person opens and closes the disclosure\n Then the panel changes state without non-essential movement and the state cues stay the same\n```\n\nScenario IDs map to the following checks in scenario order. disclosure-state-sync → DISC-01 · disclosure-panel-exposure → CTL-163, CTL-164 · disclosure-baseline → DISC-03 · DISC-P2-04 → DISC-02, DISC-03 · DISC-P2-05 → Cosmos checkpoint 4 · DISC-P2-06 → Supplied Test Cases 2 and 4 · DISC-P2-07 and DISC-P2-08 → no existing canonical check; added to cover trigger type and reduced motion.\n\n## B. Retrieval pack\n\n| Retrieve | Question or decision |\n| --- | --- |\n| [Owning guide, recommended behaviour](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Disclosure.md#recommended-behaviour) | Which focus, feedback and recovery decisions apply to this variant? |\n| [Original implementation](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Disclosure.md#reference-implementation) | Which details belong to the illustrative markup? The worked contract uses a paragraph. Its example cannot exercise the next-Tab requirement. Include an interactive descendant in a test fixture. The native relationship comes from containment. For the custom variant use a button, synchronise aria-expanded and hidden, and link aria-controls to the panel. Keep decorative state marks out of the name. |\n| [Contract template](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Component%20Semantics%20Contract.md#contract-template) | Which states, transitions and evidence fields must travel with the implementation? |\n| [Pinned matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/testing-matrix/Design%20Patterns.md#L17) | Which canonical IDs apply and which outcomes require the owning guide? |\n| [Visually Hidden Content](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Visually%20Hidden%20Content.md#choose-the-intended-visibility) | Decide whether closed content should be read or reached. |\n| [Component Semantics Contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Component%20Semantics%20Contract.md#worked-example-custom-disclosure) | Identify the three existing check IDs for the enhanced button. |\n| [DISC-01](https://github.com/Double-FW/QA_Accessibility_Testing/blob/9cddf3a1ed3def130ff78bcc4592d5cc49b0c2ca/Accessibility_ACT-Style_Test_System.md#L249) | Exercise keyboard toggle and check spoken state. |\n| [DISC-02](https://github.com/Double-FW/QA_Accessibility_Testing/blob/9cddf3a1ed3def130ff78bcc4592d5cc49b0c2ca/Accessibility_ACT-Style_Test_System.md#L257) | Inspect visible focus. |\n| [DISC-03](https://github.com/Double-FW/QA_Accessibility_Testing/blob/9cddf3a1ed3def130ff78bcc4592d5cc49b0c2ca/Accessibility_ACT-Style_Test_System.md#L265) | Check forced colours, scaling and script fallback. |\n| [Summary element has non-empty accessible name (2t702h)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/2t702h.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [Button has non-empty accessible name (97a4e1)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/97a4e1.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [Element with aria-hidden has no content in sequential focus navigation (6cfa84)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/6cfa84.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [WHATWG HTML Living Standard](https://html.spec.whatwg.org/multipage/interactive-elements.html#the-details-element) | Checked 28 November 2026. Disclosure widget, open state and summary activation. |\n\n## C. Verification plan\n\nRun each row from its Given state using its When action. Compare with the complete Then outcome. Record method and executor separately. Each row starts as **not run** for the host.\n\n| Scenario | Existing coverage | Applicability and method | Expected result | Evidence |\n| --- | --- | --- | --- | --- |\n| disclosure-state-sync | DISC-01 | Automated. Run when a named, collapsed control has keyboard focus. | The panel opens then closes, focus stays on the control, and its visible indicator and exposed expanded state match each change. | Browser assertion trace with before and after state. |\n| disclosure-panel-exposure | CTL-163, CTL-164 | Automated. Run when the open panel contains a link and focus is on the control. | Focus reaches the panel link on the first pass and skips it on the second. | Browser assertion trace with before and after state. |\n| disclosure-baseline | DISC-03 | Automated. Run when the page uses native disclosure or an enhanced button. | The native summary still toggles or the custom panel is readable directly without an inert trigger. | Browser assertion trace with before and after state. |\n| DISC-P2-04 | DISC-02, DISC-03 | Human judgement. Run when the trigger and panel use host styles. | The person can distinguish focus and state and read the full label and content. | Participant or tester observation, task result and supported environment. |\n| DISC-P2-05 | Cosmos checkpoint 4 | Automated. Run when style sheets are disabled. | The control remains identifiable and panel text is available when open. | Browser assertion trace with before and after state. |\n| DISC-P2-06 | Supplied Test Cases 2 and 4 | Human judgement. Run when a person is using a supported screen reader or voice control. | They can identify what will open and determine whether its content is available. | Participant or tester observation, task result and supported environment. |\n| DISC-P2-07 | None yet | Automated. Run when the enhanced trigger sits inside a form. | The panel toggles and the form is not submitted. | Browser assertion trace with before and after state. |\n| DISC-P2-08 | None yet | Automated. Run when the host adds motion and reduced motion is requested through browser emulation or system settings. | The panel changes state without non-essential movement and the state cues stay the same. | Browser assertion trace with before and after state. |\n\nUse the [manual procedures](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/supplied/disclosure.md) to assess spoken state, voice activation by label and focus visibility. These are Cosmos or supplied checks. The proposed W3C ACT rules above cover narrower element-level expectations.\n\n## D. Definition of done\n\nAccept a variant when the rendered contract matches every applicable transition, the host tests pass and the human evaluations record successful task completion. Record build, input, browser, device, assistive technology, observed outcome and evidence per scenario. Give a reason for every not applicable, not run or cannot tell result. A fail needs correction and retest. An applicable not run or cannot tell result leaves acceptance open.\n\nConfirm the hidden panel has no reachable descendants and observe the spoken state and label in the host.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Disclosure.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Disclosure.md","source_start_line":1,"source_end_line":98,"source_document_sha256":"9b087de809ffb3f0ae16d7e8a2b40d5870db3eec7cf452d3f23b4655b0d718fd","text_sha256":"9b087de809ffb3f0ae16d7e8a2b40d5870db3eec7cf452d3f23b4655b0d718fd","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-drag-and-drop","title":"Drag and Drop","text":"---\ntitle: \"Build Drag and Drop\"\ndescription: \"Specify and verify the Drag and Drop pattern in the host interface.\"\n---\n\n# Build Drag and Drop\n\n## Standalone build prompt\n\nBuild Drag and Drop to accessible moves, reordering and alternatives to dragging. Offer drag and drop when direct manipulation helps people move or arrange items. Give people another way to achieve the same result. Someone using a touchscreen, a pointer with limited precision or a screen reader may be unable to hold an item and move it accurately.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L28) to select additional checks.\n\n```gherkin\nFeature: Drag and Drop\n\n @DRAG-AND-DROP-01\n Scenario: Every movement, destination and position is available without dragging\n Given the host offers the applicable Drag and Drop variant\n When the tester follows this procedure: Move one item twice using a mouse click, then repeat on touch using taps. Compare with dragging if offered.\n Then Every movement, destination and position is available without dragging. Each route leaves the same result.\n\n @DRAG-AND-DROP-02\n Scenario: Focus stays on a useful control\n Given the host offers the applicable Drag and Drop variant\n When the tester follows this procedure: Tab to the item’s move control. Use Enter, then Space on a separate run. Move to each boundary and attempt another move.\n Then Focus stays on a useful control. Unavailable actions are exposed and do nothing. Visual and reading order agree after each move.\n\n @DRAG-AND-DROP-03\n Scenario: The item, action, destination and position are understandable\n Given the host offers the applicable Drag and Drop variant\n When the tester follows this procedure: Use a supported screen reader to find a move control, move the item and navigate the resulting list. Move to an empty group where supported.\n Then The item, action, destination and position are understandable. One concise result is announced where needed. The new order remains available to read.\n\n @DRAG-AND-DROP-04\n Scenario: An abandoned move leaves the accepted order intact\n Given the host offers the applicable Drag and Drop variant\n When the tester follows this procedure: Start a drag and release outside a valid destination. Repeat with any keyboard pickup and cancel controls. Simulate a failed save where applicable.\n Then An abandoned move leaves the accepted order intact. An unsuccessful save explains the outcome and the recovery route.\n\n @DRAG-AND-DROP-05\n Scenario: Move actions and focus remain visible\n Given the host offers the applicable Drag and Drop variant\n When the tester follows this procedure: Enlarge text, then test narrow width and forced colours separately. Block scripts in another run.\n Then Move actions and focus remain visible. The content stays available and essential editing has a working fallback.\n\n @DRAG-AND-DROP-06\n Scenario: The chooser reaches the same outcome as dropping\n Given the host offers the applicable Drag and Drop variant\n When the tester follows this procedure: For file upload, choose a file without dropping it. Repeat with an invalid file and remove it.\n Then The chooser reaches the same outcome as dropping. File restrictions, errors and removal are usable without a gesture.\n```\n\n## Retrieval pack\n\n- [Markup](../Drag%20and%20Drop.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Drag%20and%20Drop.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Drag%20and%20Drop.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drag%20and%20Drop.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Drag%20and%20Drop.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Move or reorder](../Drag%20and%20Drop.md#move-or-reorder)\n- [Cancel or recover](../Drag%20and%20Drop.md#cancel-or-recover)\n- [Keep a usable baseline](../Drag%20and%20Drop.md#keep-a-usable-baseline)\n\n## Verification and acceptance\n\nMove, reorder, cancel and undo using keyboard and a single pointer without dragging and check resulting order and feedback. Automated checks can collect Item order and status after move or cancel. For agent-assisted review retain before and after observations. Human judgement: Can the person predict the destination and recover from a wrong move?\n\n- `DRAG-AND-DROP-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drag%20and%20Drop.md#L152)\n- `DRAG-AND-DROP-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drag%20and%20Drop.md#L153)\n- `DRAG-AND-DROP-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drag%20and%20Drop.md#L154)\n- `DRAG-AND-DROP-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drag%20and%20Drop.md#L155)\n- `DRAG-AND-DROP-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drag%20and%20Drop.md#L156)\n- `DRAG-AND-DROP-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drag%20and%20Drop.md#L157)\n\nUse the [manual and ACT procedures](../Drag%20and%20Drop.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Drag and Drop.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Drag%20and%20Drop.md","source_start_line":1,"source_end_line":79,"source_document_sha256":"b7ac03a81872b3b10ea451764415f6cb11c3f50fcdce205e0425b8c0bc32676c","text_sha256":"b7ac03a81872b3b10ea451764415f6cb11c3f50fcdce205e0425b8c0bc32676c","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-drawer","title":"Drawer","text":"---\ntitle: \"Build Drawer\"\ndescription: \"Specify and verify the Drawer pattern in the host interface.\"\n---\n\n# Build Drawer\n\n## Standalone build prompt\n\nBuild Drawer to non-modal side panels and modal drawers. Use a drawer to give people room for a short related task or supporting content at the edge of the page. Choose whether people need to use the page while the drawer is open before deciding where to place the panel or how it appears.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L23) to select additional checks.\n\n```gherkin\nFeature: Drawer\n\n @DRAWER-01\n Scenario: The opener identifies the task and any disclosure state matches visibility\n Given the host offers the applicable Drawer variant\n When the tester follows this procedure: Starting closed, find and activate the opener with Enter, Space and touch in separate runs. Inspect the accessibility tree before and after opening.\n Then The opener identifies the task and any disclosure state matches visibility. Closed controls are absent from the tab order and reading order. Opening exposes the drawer name or visible heading.\n\n @DRAWER-02\n Scenario: Focus follows the documented order\n Given the host offers the applicable Drawer variant\n When the tester follows this procedure: For a non-modal drawer, open it and Tab and Shift+Tab between drawer and page. Browse both with a screen reader and use a page control with a pointer.\n Then Focus follows the documented order. The page remains available and no focused control is obscured by the drawer.\n\n @DRAWER-03\n Scenario: Focus starts at a useful place in the named dialog\n Given the host offers the applicable Drawer variant\n When the tester follows this procedure: For a modal drawer, open it and check initial focus and announcement. Tab and Shift+Tab through the drawer. Attempt to use the underlying page with a screen reader and pointer.\n Then Focus starts at a useful place in the named dialog. Page content is inactive across input methods.\n\n @DRAWER-04\n Scenario: Dismissal is available without a gesture or backdrop click\n Given the host offers the applicable Drawer variant\n When the tester follows this procedure: Close via the visible control. For a modal drawer, repeat with Escape and check the result when the opener is removed. For a custom non-modal drawer, test any additional dismissal it offers.\n Then Dismissal is available without a gesture or backdrop click. Focus returns to an appropriate visible target when the focused content is removed.\n\n @DRAWER-05\n Scenario: Each action has the stated effect\n Given the host offers the applicable Drawer variant\n When the tester follows this procedure: If the drawer edits information, try Apply, Cancel and any other dismissal separately with unsaved changes.\n Then Each action has the stated effect. No dismissal unexpectedly applies or loses changes.\n\n @DRAWER-06\n Scenario: Drawer content and controls remain reachable\n Given the host offers the applicable Drawer variant\n When the tester follows this procedure: Increase text size, then separately test reflow at a width equivalent to 320 CSS pixels for vertically scrolling content. Scroll to the last action with the keyboard and cross any layout breakpoint with the drawer open.\n Then Drawer content and controls remain reachable. Fixed content does not obscure focus. The layout preserves entered information and uses the correct focus and page-availability rules.\n\n @DRAWER-07\n Scenario: Boundaries and focus remain identifiable, the drawer works without non-essential motion, and a usable baseline remains\n Given the host offers the applicable Drawer variant\n When the tester follows this procedure: Repeat with forced colours and reduced motion, then block scripts and reload.\n Then Boundaries and focus remain identifiable, the drawer works without non-essential motion, and a usable baseline remains.\n```\n\n## Retrieval pack\n\n- [Markup](../Drawer.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Drawer.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Drawer.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Drawer.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Non-modal drawer](../Drawer.md#non-modal-drawer)\n- [Modal drawer](../Drawer.md#modal-drawer)\n- [Resizing, motion and fallback](../Drawer.md#resizing-motion-and-fallback)\n\n## Verification and acceptance\n\nCheck modal and non-modal variants separately and verify background access and return focus. Automated checks can collect Background operability and focus destination. For agent-assisted review retain before and after observations. Human judgement: Can the person close the drawer and continue their original task?\n\n- `DRAWER-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#L126)\n- `DRAWER-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#L127)\n- `DRAWER-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#L128)\n- `DRAWER-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#L129)\n- `DRAWER-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#L130)\n- `DRAWER-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#L131)\n- `DRAWER-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Drawer.md#L132)\n\nUse the [manual and ACT procedures](../Drawer.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Drawer.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Drawer.md","source_start_line":1,"source_end_line":86,"source_document_sha256":"2e5ef71a5ed5b73af20f29c7619400e347d358cccce17d7fdbdd2838ce807dc9","text_sha256":"2e5ef71a5ed5b73af20f29c7619400e347d358cccce17d7fdbdd2838ce807dc9","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-expandable-content-previews","title":"Expandable Content Previews","text":"---\ntitle: \"Build Expandable Content Previews\"\ndescription: \"Specify and verify the Expandable Content Previews pattern in the host interface.\"\n---\n\n# Build Expandable Content Previews\n\n## Standalone build prompt\n\nBuild Expandable Content Previews to let people reveal more content and resume reading where the preview ended. Use an expandable preview when a short opening section helps people decide whether to read the rest of a long article. Place the preview in the main landmark so people can reach it using the page’s skip link. Keep essential instructions visible. Use Disclosure for supplementary information within a section, or Load More when the service fetches additional results on demand.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L18) to select additional checks.\n\n```gherkin\nFeature: Expandable Content Previews\n\n @EXPANDABLE-CONTENT-PREVIEWS-01\n Scenario: The hidden content is skipped in both reading and tab order\n Given the host offers the applicable Expandable Content Previews variant\n When the tester follows this procedure: Start collapsed. Read through the preview with a screen reader. Tab from the final visible link.\n Then The hidden content is skipped in both reading and tab order. Focus reaches the expansion button, whose name and collapsed state identify what can be opened.\n\n @EXPANDABLE-CONTENT-PREVIEWS-02\n Scenario: Focus moves to the visible continuation marker immediately before the revealed content\n Given the host offers the applicable Expandable Content Previews variant\n When the tester follows this procedure: Activate the expansion button. Read forward from the focus target, then press Tab.\n Then Focus moves to the visible continuation marker immediately before the revealed content. Reading continues at the boundary and Tab reaches the next link or control.\n\n @EXPANDABLE-CONTENT-PREVIEWS-03\n Scenario: Focus stays on the control\n Given the host offers the applicable Expandable Content Previews variant\n When the tester follows this procedure: Reach the collapse control and activate it.\n Then Focus stays on the control. Its name and state reflect the collapsed preview. The remainder leaves visual, reading and focus order.\n\n @EXPANDABLE-CONTENT-PREVIEWS-04\n Scenario: No text or controls are partly hidden\n Given the host offers the applicable Expandable Content Previews variant\n When the tester follows this procedure: Increase text size, then test a narrow viewport separately. If the boundary adapts, resize while a link near it has focus.\n Then No text or controls are partly hidden. Resizing leaves focus on usable content. The button, boundary and continuation focus indicator remain clear in forced colours.\n\n @EXPANDABLE-CONTENT-PREVIEWS-05\n Scenario: With scripts blocked the full content is readable\n Given the host offers the applicable Expandable Content Previews variant\n When the tester follows this procedure: Block scripts and reload. Then enable scripts and disable CSS in a separate run.\n Then With scripts blocked the full content is readable. With CSS disabled, the working control and reading order remain available.\n```\n\n## Retrieval pack\n\n- [Markup](../Expandable%20Content%20Previews.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Expandable%20Content%20Previews.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Expandable%20Content%20Previews.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Expandable%20Content%20Previews.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Expandable%20Content%20Previews.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nExpand with focus on the trigger and verify continuation target and next Tab. Automated checks can collect Continuation target and next Tab destination. For agent-assisted review retain before and after observations. Human judgement: Can the person resume at the first new content?\n\n- `EXPANDABLE-CONTENT-PREVIEWS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Expandable%20Content%20Previews.md#L121)\n- `EXPANDABLE-CONTENT-PREVIEWS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Expandable%20Content%20Previews.md#L122)\n- `EXPANDABLE-CONTENT-PREVIEWS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Expandable%20Content%20Previews.md#L123)\n- `EXPANDABLE-CONTENT-PREVIEWS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Expandable%20Content%20Previews.md#L124)\n- `EXPANDABLE-CONTENT-PREVIEWS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Expandable%20Content%20Previews.md#L125)\n\nUse the [manual and ACT procedures](../Expandable%20Content%20Previews.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Expandable Content Previews.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Expandable%20Content%20Previews.md","source_start_line":1,"source_end_line":66,"source_document_sha256":"17172ba374ad309669e42eca2c190ae9fac06fafc02b25d6aa907bf7153a5aaa","text_sha256":"17172ba374ad309669e42eca2c190ae9fac06fafc02b25d6aa907bf7153a5aaa","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-filter-and-sort","title":"Filter and Sort","text":"---\ntitle: \"Build Filter and Sort\"\ndescription: \"Specify and verify the Filter and Sort pattern in the host interface.\"\n---\n\n# Build Filter and Sort\n\n## Standalone build prompt\n\nBuild Filter and Sort to help people narrow results and change their order. Use filters to help people narrow results to what matters to them. Use sorting to change the order of those results. Show the current choices and make it clear which results they affect, including when some choices move behind an overflow control.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L8) to select additional checks.\n\n```gherkin\nFeature: Filter and Sort\n\n @FILTER-AND-SORT-01\n Scenario: Only the intended criteria change\n Given the host offers the applicable Filter and Sort variant\n When the tester follows this procedure: Start from a results URL with a query. Apply a filter, change the sort order and then change the filter again.\n Then Only the intended criteria change. The results, current indicators and URL agree for navigation-based controls. The other choices and search query remain in effect.\n\n @FILTER-AND-SORT-02\n Scenario: Labels and selection states are available\n Given the host offers the applicable Filter and Sort variant\n When the tester follows this procedure: In a form, change a radio or checkbox with the keyboard, then apply the choices.\n Then Labels and selection states are available. Where applying opens a new view, the explicit Apply action initiates navigation.\n\n @FILTER-AND-SORT-03\n Scenario: Focus stays on the trigger when it opens\n Given the host offers the applicable Filter and Sort variant\n When the tester follows this procedure: At a narrow width, Tab to More filters and open it. Tab through the revealed links, then close the list.\n Then Focus stays on the trigger when it opens. The first revealed link follows it. Each visible choice is reachable once. Hidden links are skipped after closing.\n\n @FILTER-AND-SORT-04\n Scenario: The focused link stays usable, the current choice remains identifiable and the overflow control stays visible\n Given the host offers the applicable Filter and Sort variant\n When the tester follows this procedure: Increase text size, then narrow the viewport while a filter link has focus. Check the current selection and repeat with forced colours.\n Then The focused link stays usable, the current choice remains identifiable and the overflow control stays visible.\n\n @FILTER-AND-SORT-05\n Scenario: Every choice in the baseline can still be reached and applied\n Given the host offers the applicable Filter and Sort variant\n When the tester follows this procedure: Block scripts and reload, then apply a filter and sort.\n Then Every choice in the baseline can still be reached and applied. A horizontal baseline brings focused links into view.\n\n @FILTER-AND-SORT-06\n Scenario: The results state is clear, any waiting message is available where needed, and the person can revise or clear the choices\n Given the host offers the applicable Filter and Sort variant\n When the tester follows this procedure: Apply a filter that produces no matches. Where results update in place, repeat with a screen reader and a slow response.\n Then The results state is clear, any waiting message is available where needed, and the person can revise or clear the choices. In-place updates leave focus usable.\n```\n\n## Retrieval pack\n\n- [Markup](../Filter%20and%20Sort.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Filter%20and%20Sort.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Filter%20and%20Sort.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Filter%20and%20Sort.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Filter%20and%20Sort.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Choosing and applying options](../Filter%20and%20Sort.md#choosing-and-applying-options)\n- [Revealing overflow choices](../Filter%20and%20Sort.md#revealing-overflow-choices)\n\n## Verification and acceptance\n\nApply, clear and combine filters, sort, navigate back and repeat with zero results. Automated checks can collect Filter values, URL and item count. For agent-assisted review retain before and after observations. Human judgement: Can the person tell what changed and recover their results?\n\n- `FILTER-AND-SORT-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Filter%20and%20Sort.md#L99)\n- `FILTER-AND-SORT-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Filter%20and%20Sort.md#L100)\n- `FILTER-AND-SORT-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Filter%20and%20Sort.md#L101)\n- `FILTER-AND-SORT-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Filter%20and%20Sort.md#L102)\n- `FILTER-AND-SORT-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Filter%20and%20Sort.md#L103)\n- `FILTER-AND-SORT-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Filter%20and%20Sort.md#L104)\n\nUse the [manual and ACT procedures](../Filter%20and%20Sort.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Filter and Sort.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Filter%20and%20Sort.md","source_start_line":1,"source_end_line":78,"source_document_sha256":"b3452e70c98b618df3f5b6579c092d8474bad18ee08a6300c48f4a6aa3816832","text_sha256":"b3452e70c98b618df3f5b6579c092d8474bad18ee08a6300c48f4a6aa3816832","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-global-navigation","title":"Global Navigation","text":"---\ntitle: \"Build Global Navigation\"\ndescription: \"Specify and verify the Global Navigation pattern in the host interface.\"\n---\n\n# Build Global Navigation\n\n## Standalone build prompt\n\nBuild Global Navigation to help people reach main destinations and shared services from the header. Use global navigation for destinations people need across a service. When the header changes at a narrow width or higher zoom, keep every destination available. A link that is visually clipped but still receives focus can leave keyboard users unable to see where they are.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L9) to select additional checks.\n\n```gherkin\nFeature: Global Navigation\n\n @GLOBAL-NAVIGATION-01\n Scenario: The skip link reaches the main content\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: Tab from the beginning of the page and activate the skip link. Then navigate by landmarks with a screen reader.\n Then The skip link reaches the main content. The page header and global navigation can be identified and distinguished from other regions.\n\n @GLOBAL-NAVIGATION-02\n Scenario: Each destination or action has a clear name\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: Check Home, Search and the signed-in and signed-out account variants. Where notifications show a count, read the link or control with a screen reader.\n Then Each destination or action has a clear name. The count includes what it counts. Icon-only presentations retain their accessible names.\n\n @GLOBAL-NAVIGATION-03\n Scenario: The expanded state is available\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: At a narrow width, open More with Enter and Space in separate runs. Tab and Shift+Tab through its links. Repeat with a pointer if the drawer uses separate focus handling.\n Then The expanded state is available. Focus follows the documented variant. Links are available once and in order. A distinct navigation drawer is identifiable by its landmark name. A drawer that moves focus opens and closes without animation when operated by keyboard.\n\n @GLOBAL-NAVIGATION-04\n Scenario: Explicit dismissal restores focus when the focused item would be hidden\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: Dismiss the drawer from inside it, then reopen it and Tab onward.\n Then Explicit dismissal restores focus when the focused item would be hidden. Tabbing onward reaches the intended destination. Hidden links are skipped.\n\n @GLOBAL-NAVIGATION-05\n Scenario: The baseline destinations still work through ordinary links\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: Block scripts and reload. Use the keyboard to follow each type of destination. Where switch access is supported, repeat a representative navigation task using switches.\n Then The baseline destinations still work through ordinary links.\n\n @GLOBAL-NAVIGATION-06\n Scenario: Destinations remain reachable, focused links stay usable and the empty priority list adds no announcement\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: Increase text size up to 200%. In a separate run, test page zoom up to 400%. Resize while a priority link has focus and include a layout with no priority items visible.\n Then Destinations remain reachable, focused links stay usable and the empty priority list adds no announcement.\n\n @GLOBAL-NAVIGATION-07\n Scenario: The header, focus and controls remain distinguishable\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: Apply reduced motion, forced colours and supported user font and colour overrides.\n Then The header, focus and controls remain distinguishable. Opening the panel remains usable without motion.\n\n @GLOBAL-NAVIGATION-08\n Scenario: For the enhanced header’s design target, aim for 44 × 44 CSS pixels\n Given the host offers the applicable Global Navigation variant\n When the tester follows this procedure: Measure target sizes and contrast in the enhanced header.\n Then For the enhanced header’s design target, aim for 44 × 44 CSS pixels. Apply the text and meaningful non-text contrast criteria in the colour guide.\n```\n\n## Retrieval pack\n\n- [Markup](../Global%20Navigation.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Global%20Navigation.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Global%20Navigation.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Global%20Navigation.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Baseline navigation](../Global%20Navigation.md#baseline-navigation)\n- [More destinations](../Global%20Navigation.md#more-destinations)\n\n## Verification and acceptance\n\nCheck current link, collapsed links, focus on dismissal and bypass across pages. Automated checks can collect Expanded state and hidden focus targets. For agent-assisted review retain before and after observations. Human judgement: Can the person find a primary destination and recognise where they are?\n\n- `GLOBAL-NAVIGATION-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L94)\n- `GLOBAL-NAVIGATION-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L95)\n- `GLOBAL-NAVIGATION-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L96)\n- `GLOBAL-NAVIGATION-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L97)\n- `GLOBAL-NAVIGATION-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L98)\n- `GLOBAL-NAVIGATION-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L99)\n- `GLOBAL-NAVIGATION-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L100)\n- `GLOBAL-NAVIGATION-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Global%20Navigation.md#L101)\n\nUse the [manual and ACT procedures](../Global%20Navigation.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Global Navigation.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Global%20Navigation.md","source_start_line":1,"source_end_line":92,"source_document_sha256":"4ce3a70ac172a088aa02f6c1db0bd1c38236bacd961571b47fc361316591f96f","text_sha256":"4ce3a70ac172a088aa02f6c1db0bd1c38236bacd961571b47fc361316591f96f","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-information-panels","title":"Information Panels","text":"---\ntitle: \"Build Information Panels\"\ndescription: \"Specify and verify the Information Panels pattern in the host interface.\"\n---\n\n# Build Information Panels\n\n## Standalone build prompt\n\nBuild Information Panels to open and dismiss supplementary information without leaving the task. Use a non-modal information panel for short, contextual content people can choose to open, such as delivery details or sharing tools. Keep essential instructions available in the main content. Use Disclosure when supplementary information can expand in place and focus can stay on its trigger. Use Modal Dialogs when the underlying page needs to be inactive.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L24) to select additional checks.\n\n```gherkin\nFeature: Information Panels\n\n @INFORMATION-PANELS-01\n Scenario: The trigger is named and collapsed initially\n Given the host offers the applicable Information Panels variant\n When the tester follows this procedure: Start with the enhanced panel closed. Tab to the trigger, listen to its name and state, then open with Enter and Space in separate runs.\n Then The trigger is named and collapsed initially. Opening exposes its expanded state, moves focus to Close and makes the group name and content available.\n\n @INFORMATION-PANELS-02\n Scenario: The panel is hidden, its contents leave tab and reading order, and focus is on the opener\n Given the host offers the applicable Information Panels variant\n When the tester follows this procedure: Close with the Close button, Escape and the opener in separate runs.\n Then The panel is hidden, its contents leave tab and reading order, and focus is on the opener.\n\n @INFORMATION-PANELS-03\n Scenario: Focus can leave the panel and the page remains operable\n Given the host offers the applicable Information Panels variant\n When the tester follows this procedure: Open the panel, Tab past its last control, then repeat by clicking an unrelated control. Also try clicking outside on plain content.\n Then Focus can leave the panel and the page remains operable. Dismissal preserves a new focus destination or restores focus to the opener if the click leaves no usable target.\n\n @INFORMATION-PANELS-04\n Scenario: The panel and all controls remain visible and usable\n Given the host offers the applicable Information Panels variant\n When the tester follows this procedure: If the panel overlays the page, test near both viewport edges. Increase text size, then narrow the viewport separately. Repeat in forced colours.\n Then The panel and all controls remain visible and usable. The title, boundary and focus indication remain clear.\n\n @INFORMATION-PANELS-05\n Scenario: It dismisses only in the intended cases; focus remains usable, and dismissal does not interrupt or lose the user's task\n Given the host offers the applicable Information Panels variant\n When the tester follows this procedure: If implemented with the native Popover API, test its configured Escape and outside-click behaviour with keyboard, pointer and touch.\n Then It dismisses only in the intended cases; focus remains usable, and dismissal does not interrupt or lose the user's task.\n\n @INFORMATION-PANELS-06\n Scenario: The supplementary content or its working destination is available, and enhancement controls do not appear in an unusable state\n Given the host offers the applicable Information Panels variant\n When the tester follows this procedure: Block scripts and reload.\n Then The supplementary content or its working destination is available, and enhancement controls do not appear in an unusable state.\n```\n\n## Retrieval pack\n\n- [Markup](../Information%20Panels.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Information%20Panels.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Information%20Panels.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Information%20Panels.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Information%20Panels.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nTest configured dismissal, reading order, normal page access and return only when needed. Automated checks can collect Visibility and focus after close routes. For agent-assisted review retain before and after observations. Human judgement: Can the person find the detail and resume their task?\n\n- `INFORMATION-PANELS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Information%20Panels.md#L125)\n- `INFORMATION-PANELS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Information%20Panels.md#L126)\n- `INFORMATION-PANELS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Information%20Panels.md#L127)\n- `INFORMATION-PANELS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Information%20Panels.md#L128)\n- `INFORMATION-PANELS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Information%20Panels.md#L129)\n- `INFORMATION-PANELS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Information%20Panels.md#L130)\n\nUse the [manual and ACT procedures](../Information%20Panels.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Information Panels.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Information%20Panels.md","source_start_line":1,"source_end_line":73,"source_document_sha256":"49a36dcb74ca76f908125edbe0616a2fe98a17654db9059033cc1745cdf79e74","text_sha256":"49a36dcb74ca76f908125edbe0616a2fe98a17654db9059033cc1745cdf79e74","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-load-more","title":"Load More","text":"---\ntitle: \"Build Load More\"\ndescription: \"Specify and verify the Load More pattern in the host interface.\"\n---\n\n# Build Load More\n\n## Standalone build prompt\n\nBuild Load More to let people request another batch of results and continue from where they stopped. Use Load More when people are exploring a list and want to request more results without leaving the page. Automatic loading can move the reading position or make it hard to reach the content after the results. Give people a button to request each batch and provide working pagination as the baseline.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L10) to select additional checks.\n\n```gherkin\nFeature: Load More\n\n @LOAD-MORE-01\n Scenario: The URLs load the expected results and retain the query, filters and sort\n Given the host offers the applicable Load More variant\n When the tester follows this procedure: Block scripts and follow the pagination links with the keyboard. Check the first, intermediate and final page where available.\n Then The URLs load the expected results and retain the query, filters and sort. The current page is identifiable. Unavailable links are absent and the skip link can reach the main content.\n\n @LOAD-MORE-02\n Scenario: The loading message is visible and available to assistive technology\n Given the host offers the applicable Load More variant\n When the tester follows this procedure: Activate Load more with the keyboard. Delay the response and try activating it again.\n Then The loading message is visible and available to assistive technology. The first batch remains usable and only one request appends the next batch.\n\n @LOAD-MORE-03\n Scenario: The new results follow the earlier ones\n Given the host offers the applicable Load More variant\n When the tester follows this procedure: Let the request complete, read forward from the marker and press Tab. Repeat by moving focus away from the button while a request is pending.\n Then The new results follow the earlier ones. Focus moves to the range marker when the keyboard user is still waiting on the button. If focus has moved, it stays at its new destination and the range is announced separately.\n\n @LOAD-MORE-04\n Scenario: Earlier results remain available after failure\n Given the host offers the applicable Load More variant\n When the tester follows this procedure: Force a failed response, then retry or follow the fallback link. If filters or sort are available, change them while a request is pending.\n Then Earlier results remain available after failure. Retry loads the intended batch once. An earlier response cannot add results to a newer selection.\n\n @LOAD-MORE-05\n Scenario: The interface communicates that there are no more results\n Given the host offers the applicable Load More variant\n When the tester follows this procedure: Load the final batch. Repeat with a response that returns no further items.\n Then The interface communicates that there are no more results. Focus remains usable and the person can reach content after the results.\n\n @LOAD-MORE-06\n Scenario: Pagination and feedback remain usable\n Given the host offers the applicable Load More variant\n When the tester follows this procedure: Narrow the viewport and repeat at increased zoom. Test loading with reduced motion enabled.\n Then Pagination and feedback remain usable. Visible text communicates progress even when animation is reduced.\n```\n\n## Retrieval pack\n\n- [Markup](../Load%20More.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Load%20More.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Load%20More.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Load%20More.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Load%20More.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Pagination](../Load%20More.md#pagination)\n- [Loading another batch](../Load%20More.md#loading-another-batch)\n\n## Verification and acceptance\n\nAppend, fail, retry and exhaust results and check count, focus and continuation. Automated checks can collect Added items, retry state and active element. For agent-assisted review retain before and after observations. Human judgement: Can the person resume from the first new item without rereading the list?\n\n- `LOAD-MORE-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Load%20More.md#L100)\n- `LOAD-MORE-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Load%20More.md#L101)\n- `LOAD-MORE-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Load%20More.md#L102)\n- `LOAD-MORE-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Load%20More.md#L103)\n- `LOAD-MORE-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Load%20More.md#L104)\n- `LOAD-MORE-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Load%20More.md#L105)\n\nUse the [manual and ACT procedures](../Load%20More.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Load More.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Load%20More.md","source_start_line":1,"source_end_line":78,"source_document_sha256":"86a02add8726d9762ddda3302d3cfb3d9ee0c363f8b51616dceb79d64a583ef9","text_sha256":"86a02add8726d9762ddda3302d3cfb3d9ee0c363f8b51616dceb79d64a583ef9","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-mega-menu","title":"Mega Menu","text":"---\ntitle: \"Build Mega Menu\"\ndescription: \"Specify and verify the Mega Menu pattern in the host interface.\"\n---\n\n# Build Mega Menu\n\n## Standalone build prompt\n\nBuild Mega Menu to organise groups of navigation links in expandable panels. Use a mega menu when people need to browse several groups of destinations from a site’s main navigation. A panel can show multiple groups at once, provided people can follow their order with a keyboard or screen reader. For a simpler site hierarchy, see Site Menus.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L11) to select additional checks.\n\n```gherkin\nFeature: Mega Menu\n\n @MEGA-MENU-01\n Scenario: The trigger exposes its expanded state and shows a visible cue\n Given the host offers the applicable Mega Menu variant\n When the tester follows this procedure: Tab to each trigger and use Enter and Space in separate runs. Open a second panel after the first.\n Then The trigger exposes its expanded state and shows a visible cue. Only one panel stays open. Open links follow their trigger and closed links leave the tab order and accessibility tree.\n\n @MEGA-MENU-02\n Scenario: The open panel closes in both cases\n Given the host offers the applicable Mega Menu variant\n When the tester follows this procedure: Press Escape from a link inside the open panel. Then reopen the panel, move focus to a different navigation control without activating it and press Escape again.\n Then The open panel closes in both cases. Focus returns to the opener in the first case and stays on the other control in the second.\n\n @MEGA-MENU-03\n Scenario: The panel closes\n Given the host offers the applicable Mega Menu variant\n When the tester follows this procedure: Tab or Shift+Tab out of the navigation. Repeat with an outside click on a focusable control and on plain content.\n Then The panel closes. A new focus destination stays usable. If closing would hide the focused link, focus returns to the opener.\n\n @MEGA-MENU-04\n Scenario: The sequence remains predictable and every group label and link stays readable and reachable when the groups stack\n Given the host offers the applicable Mega Menu variant\n When the tester follows this procedure: For a multi-column panel, compare the visual, reading and focus sequences. Repeat at a narrow width and with increased text size and zoom.\n Then The sequence remains predictable and every group label and link stays readable and reachable when the groups stack.\n\n @MEGA-MENU-05\n Scenario: The open state, panel boundary and focus indicator are distinguishable\n Given the host offers the applicable Mega Menu variant\n When the tester follows this procedure: Enable forced colours and operate both panels with the keyboard.\n Then The open state, panel boundary and focus indicator are distinguishable.\n\n @MEGA-MENU-06\n Scenario: With scripts blocked, the group labels and all destinations are available\n Given the host offers the applicable Mega Menu variant\n When the tester follows this procedure: Block scripts and reload. In a separate run, restore scripts and disable CSS.\n Then With scripts blocked, the group labels and all destinations are available. With CSS disabled, the triggers still operate and the screen reader can identify their states.\n```\n\n## Retrieval pack\n\n- [Markup](../Mega%20Menu.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Mega%20Menu.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Mega%20Menu.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Mega%20Menu.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Mega%20Menu.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Behaviour](../Mega%20Menu.md#behaviour)\n\n## Verification and acceptance\n\nOpen panels and test Escape inside and outside, Tab out and outside click. Automated checks can collect Open panel count and active element. For agent-assisted review retain before and after observations. Human judgement: Can the person move between sections without losing their place?\n\n- `MEGA-MENU-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Mega%20Menu.md#L152)\n- `MEGA-MENU-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Mega%20Menu.md#L153)\n- `MEGA-MENU-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Mega%20Menu.md#L154)\n- `MEGA-MENU-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Mega%20Menu.md#L155)\n- `MEGA-MENU-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Mega%20Menu.md#L156)\n- `MEGA-MENU-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Mega%20Menu.md#L157)\n\nUse the [manual and ACT procedures](../Mega%20Menu.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Mega Menu.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Mega%20Menu.md","source_start_line":1,"source_end_line":77,"source_document_sha256":"6dbf99ed8f02cac090370e6903c6a70b88ad041ef27517a67395c7c6557fb3d8","text_sha256":"6dbf99ed8f02cac090370e6903c6a70b88ad041ef27517a67395c7c6557fb3d8","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-metadata-strips","title":"Metadata Strips","text":"---\ntitle: \"Build Metadata Strips\"\ndescription: \"Specify and verify the Metadata Strips pattern in the host interface.\"\n---\n\n# Build Metadata Strips\n\n## Standalone build prompt\n\nBuild Metadata Strips to show supporting details such as source, publication time and duration. A metadata strip, also called a **content metadata row** or **supporting details**, groups short facts that help people decide whether to open or use an item. For example, a reader might use the publication date to judge whether an article is still relevant, or the duration to decide whether they have time to listen. Use the strip alongside the content it describes, such as a Promotional Card.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L19) to select additional checks.\n\n```gherkin\nFeature: Metadata Strips\n\n @METADATA-STRIPS-01\n Scenario: Each detail is heard once with its meaning and units\n Given the host offers the applicable Metadata Strips variant\n When the tester follows this procedure: Read the strip in context with a screen reader. Compare the publication time and duration with the visible values.\n Then Each detail is heard once with its meaning and units. Decorative icons and separators add no extra speech.\n\n @METADATA-STRIPS-02\n Scenario: The list relationship or term–value order is clear\n Given the host offers the applicable Metadata Strips variant\n When the tester follows this procedure: Navigate by lists or read the term–value pairs in order. Repeat with any list markers suppressed.\n Then The list relationship or term–value order is clear. Each value can be matched to its label and the item it describes.\n\n @METADATA-STRIPS-03\n Scenario: Links are distinguishable without colour and their names identify their destinations\n Given the host offers the applicable Metadata Strips variant\n When the tester follows this procedure: Tab to any linked values. Inspect focus and link styling. Activate any link that opens a new tab.\n Then Links are distinguishable without colour and their names identify their destinations. Any new-tab behaviour is indicated in advance.\n\n @METADATA-STRIPS-04\n Scenario: Entries can wrap without clipping or overlap, and the details, links and focus remain clear\n Given the host offers the applicable Metadata Strips variant\n When the tester follows this procedure: Increase text size, then narrow the viewport in a separate run. Check a long value and repeat with forced colours.\n Then Entries can wrap without clipping or overlap, and the details, links and focus remain clear.\n```\n\n## Retrieval pack\n\n- [Markup](../Metadata%20Strips.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Metadata%20Strips.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Metadata%20Strips.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Metadata%20Strips.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Metadata%20Strips.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nInspect metadata reading order and equivalents, wrap labels and activate any link. Automated checks can collect Metadata DOM order and link name. For agent-assisted review retain before and after observations. Human judgement: Can the person tell what time, source or duration refers to?\n\n- `METADATA-STRIPS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Metadata%20Strips.md#L77)\n- `METADATA-STRIPS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Metadata%20Strips.md#L78)\n- `METADATA-STRIPS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Metadata%20Strips.md#L79)\n- `METADATA-STRIPS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Metadata%20Strips.md#L80)\n\nUse the [manual and ACT procedures](../Metadata%20Strips.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Metadata Strips.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Metadata%20Strips.md","source_start_line":1,"source_end_line":59,"source_document_sha256":"a72b891f6d036456316fd2068a531b13f7ea9cc64a49bd4b7c0a7e0ad18c988f","text_sha256":"a72b891f6d036456316fd2068a531b13f7ea9cc64a49bd4b7c0a7e0ad18c988f","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-modal-dialogs","title":"Modal Dialogs","text":"---\ntitle: \"Build Modal Dialogs\"\ndescription: \"Specify and verify the Modal Dialogs pattern in the host interface.\"\n---\n\n# Build Modal Dialogs\n\n## Standalone build prompt\n\nBuild Modal Dialogs to manage focus, dismissal and return when a task requires a dialog. \n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L25) to select additional checks.\n\n```gherkin\nFeature: Modal Dialogs\n\n @MODAL-DIALOGS-01\n Scenario: Before opening, the dialog is hidden visually and from assistive technology\n Given the host offers the applicable Modal Dialogs variant\n When the page loads\n Then the dialog is absent visually and from the accessibility tree.\n\n @MODAL-DIALOGS-02\n Scenario: The trigger has a clear name and works with the keyboard\n Given the host offers the applicable Modal Dialogs variant\n When the person opens the dialog\n Then focus moves to a useful element inside the named dialog and its role is exposed.\n\n @MODAL-DIALOGS-03\n Scenario: Tab and Shift+Tab can reach all relevant modal controls without moving focus onto the underlying page\n Given the host offers the applicable Modal Dialogs variant\n When the person tabs through its controls\n Then Tab and Shift+Tab stay inside the dialog and the underlying page is unavailable to pointer and screen reader navigation.\n\n @MODAL-DIALOGS-04\n Scenario: A visible backdrop or equivalent treatment indicates that the underlying page is inactive\n Given the host offers the applicable Modal Dialogs variant\n When the person scrolls within the dialog\n Then the underlying page remains visibly inactive and scrolling keeps the dialog usable.\n\n @MODAL-DIALOGS-05\n Scenario: The content and controls remain usable when text is resized and at narrow widths\n Given the host offers the applicable Modal Dialogs variant\n When the person enlarges the text\n Then the content and controls remain reachable at the supported text sizes and widths.\n\n @MODAL-DIALOGS-06\n Scenario: The visible close or cancel control closes the modal\n Given the host offers the applicable Modal Dialogs variant\n When the person attempts dismissal\n Then the close control works and Escape and outside activation follow the declared dismissal policy.\n\n @MODAL-DIALOGS-07\n Scenario: After closing, the underlying page is usable again and focus returns to the trigger or the next logical location\n Given the host offers the applicable Modal Dialogs variant\n When the dialog closes\n Then the underlying page is usable and focus returns to the trigger or the documented continuation.\n\n @MODAL-DIALOGS-08\n Scenario: With the enhancement script blocked, verify that the user can reach any essential information or action by the documented fallback\n Given the host offers the applicable Modal Dialogs variant\n When the person blocks scripts\n Then the essential information or action remains reachable through the fallback.\n\n @MODAL-DIALOGS-09\n Scenario: Open the dialog from a control midway through a page\n Given the host offers the applicable Modal Dialogs variant\n When the person opens the dialog midway through a task\n Then focus enters the dialog and the person can identify the decision.\n\n @MODAL-DIALOGS-10\n Scenario: Check initial focus, read the heading and choices, cancel, and resume at the trigger\n Given the host offers the applicable Modal Dialogs variant\n When the person cancels the decision\n Then the dialog closes and focus returns to the trigger with the original task available.\n\n @MODAL-DIALOGS-11\n Scenario: If a choice leads to another page, check that it is a link and opens the intended destination\n Given the host offers the applicable Modal Dialogs variant\n When the person activates a choice\n Then a navigation choice opens its named destination and an in-place action completes its stated operation.\n```\n\n## Retrieval pack\n\n- [Markup](../Modal%20Dialogs.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Modal%20Dialogs.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Modal%20Dialogs.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Modal%20Dialogs.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Managing focus](../Modal%20Dialogs.md#managing-focus)\n- [Dismissal](../Modal%20Dialogs.md#dismissal)\n- [Interrupting a task](../Modal%20Dialogs.md#interrupting-a-task)\n\n## Verification and acceptance\n\nVerify naming, initial focus, background inertness, Escape, close and return. Use CHAIN-01 only for an existing chain. Automated checks can collect Inert state and keyboard focus boundaries. For agent-assisted review retain before and after observations. Human judgement: Can the person understand the decision, cancel or complete it, and resume?\n\n- `MODAL-DIALOGS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L125)\n- `MODAL-DIALOGS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L126)\n- `MODAL-DIALOGS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L127)\n- `MODAL-DIALOGS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L128)\n- `MODAL-DIALOGS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L129)\n- `MODAL-DIALOGS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L130)\n- `MODAL-DIALOGS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L131)\n- `MODAL-DIALOGS-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L132)\n- `MODAL-DIALOGS-09` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L142)\n- `MODAL-DIALOGS-10` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L143)\n- `MODAL-DIALOGS-11` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Modal%20Dialogs.md#L144)\n\nUse the [manual and ACT procedures](../Modal%20Dialogs.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Modal Dialogs.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Modal%20Dialogs.md","source_start_line":1,"source_end_line":114,"source_document_sha256":"24c742cee0a1c76a91103616eb7dd35143ae655e19241a59267b3a03af525b2e","text_sha256":"24c742cee0a1c76a91103616eb7dd35143ae655e19241a59267b3a03af525b2e","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-notifications-and-status-messages","title":"Notifications and Status Messages","text":"---\ntitle: \"Build Notifications and Status Messages\"\ndescription: \"Specify and verify the Notifications and Status Messages pattern in the host interface.\"\n---\n\n# Build Notifications and Status Messages\n\n## Standalone build prompt\n\nBuild Notifications and Status Messages to make updates noticeable, actionable and available to revisit. Keep important feedback where people can find it. Someone may miss a short-lived toast while reading another part of the page, using magnification or listening to a screen reader. Put feedback about the current task near that task. Give people a notification centre for updates they may need to review later.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L35) to select additional checks.\n\n```gherkin\nFeature: Notifications and Status Messages\n\n @NOTIFICATIONS-AND-STATUS-MESSAGES-01\n Scenario: The result is announced without moving focus and remains readable while relevant\n Given the host offers the applicable Notifications and Status Messages variant\n When the tester follows this procedure: Trigger a routine action. Wait, then find its feedback visually and with a screen reader.\n Then The result is announced without moving focus and remains readable while relevant.\n\n @NOTIFICATIONS-AND-STATUS-MESSAGES-02\n Scenario: Errors are associated with the relevant fields or task\n Given the host offers the applicable Notifications and Status Messages variant\n When the tester follows this procedure: Trigger several field errors and a separate failed request. Follow the recovery instructions.\n Then Errors are associated with the relevant fields or task. The feedback identifies what to correct or how to retry, and the draft remains available.\n\n @NOTIFICATIONS-AND-STATUS-MESSAGES-03\n Scenario: The update leaves the current task usable\n Given the host offers the applicable Notifications and Status Messages variant\n When the tester follows this procedure: Receive a background update while working elsewhere. Open Notifications with the keyboard and read the entries.\n Then The update leaves the current task usable. The centre has a clear name and the relevant entry has understandable content and actions.\n\n @NOTIFICATIONS-AND-STATUS-MESSAGES-04\n Scenario: Read state and counts agree\n Given the host offers the applicable Notifications and Status Messages variant\n When the tester follows this procedure: Mark an entry as read, clear an entry if supported, then reopen the centre. Test the empty and failed-loading states.\n Then Read state and counts agree. A read entry remains available according to the retention policy. Clearing leaves a logical focus position and failure has a recovery path.\n\n @NOTIFICATIONS-AND-STATUS-MESSAGES-05\n Scenario: The modal identifies the decision, keeps the background inactive and can be dismissed\n Given the host offers the applicable Notifications and Status Messages variant\n When the tester follows this procedure: Test any modal used for urgent feedback. Open it, read its choices and dismiss it with the keyboard.\n Then The modal identifies the decision, keeps the background inactive and can be dismissed. Focus returns to the opener or the next logical place.\n\n @NOTIFICATIONS-AND-STATUS-MESSAGES-06\n Scenario: The same information can still be found\n Given the host offers the applicable Notifications and Status Messages variant\n When the tester follows this procedure: Review any remaining toast while magnified and with a screen reader. Let it disappear.\n Then The same information can still be found. Any action or material condition is available in a persistent place.\n\n @NOTIFICATIONS-AND-STATUS-MESSAGES-07\n Scenario: The report adds one unread entry\n Given the host offers the applicable Notifications and Status Messages variant\n When the tester follows this procedure: Follow the worked example from a background completion to marking the notice as read. Repeat with scripts blocked and simulate a failed read update separately.\n Then The report adds one unread entry. With scripts blocked, the updated count and entry are available on the next page load. The centre opens from a working link. A successful read update decreases the count without removing the report entry. A failed update leaves the count and read state consistent and gives the person a way to retry.\n```\n\n## Retrieval pack\n\n- [Markup](../Notifications%20and%20Status%20Messages.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Notifications%20and%20Status%20Messages.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Notifications%20and%20Status%20Messages.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Notifications%20and%20Status%20Messages.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Why avoid toasts](../Notifications%20and%20Status%20Messages.md#why-avoid-toasts)\n\n## Verification and acceptance\n\nTrigger success, repeated updates and failure and verify appropriate announcements, persistence and review where offered. Automated checks can collect Message visibility, live region changes and focus. For agent-assisted review retain before and after observations. Human judgement: Can the person understand what happened and find the message later?\n\n- `NOTIFICATIONS-AND-STATUS-MESSAGES-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#L116)\n- `NOTIFICATIONS-AND-STATUS-MESSAGES-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#L117)\n- `NOTIFICATIONS-AND-STATUS-MESSAGES-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#L118)\n- `NOTIFICATIONS-AND-STATUS-MESSAGES-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#L119)\n- `NOTIFICATIONS-AND-STATUS-MESSAGES-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#L120)\n- `NOTIFICATIONS-AND-STATUS-MESSAGES-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#L121)\n- `NOTIFICATIONS-AND-STATUS-MESSAGES-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Notifications%20and%20Status%20Messages.md#L122)\n\nUse the [manual and ACT procedures](../Notifications%20and%20Status%20Messages.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Notifications and Status Messages.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Notifications%20and%20Status%20Messages.md","source_start_line":1,"source_end_line":84,"source_document_sha256":"3f66d473dce55b9e0ad0e1ff06cc302b33f7d984dceeec4f6299a53b00c9a75b","text_sha256":"3f66d473dce55b9e0ad0e1ff06cc302b33f7d984dceeec4f6299a53b00c9a75b","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-promotional-cards","title":"Promotional Cards","text":"---\ntitle: \"Build Promotional Cards\"\ndescription: \"Specify and verify the Promotional Cards pattern in the host interface.\"\n---\n\n# Build Promotional Cards\n\n## Standalone build prompt\n\nBuild Promotional Cards to present featured content, a preview or a clear next action. Use a promotional card (promo) to help people decide whether to explore featured content, play a preview or take an action. Give the card one clear primary next step. If it also offers playback or a secondary action, make the choices easy to tell apart.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L20) to select additional checks.\n\n```gherkin\nFeature: Promotional Cards\n\n @PROMOTIONAL-CARDS-01\n Scenario: its text identifies the same content as the destination title and main heading\n Given the card has a headline link\n When the person reads and follows it\n Then its text identifies the same content as the destination title and main heading.\n\n @PROMOTIONAL-CARDS-02\n Scenario: only the optional image and media indicator precede the headline and the description precedes the metadata\n Given the card contains an image, headline, description and metadata\n When the person reads it in source order\n Then only the optional image and media indicator precede the headline and the description precedes the metadata.\n\n @PROMOTIONAL-CARDS-03\n Scenario: a decorative image is skipped and a meaningful image is described before the headline\n Given the card includes an image\n When the person reads the card with a screen reader and navigates its links\n Then a decorative image is skipped and a meaningful image is described before the headline. The image adds no separate link.\n\n @PROMOTIONAL-CARDS-04\n Scenario: the name conveys the format and displayed duration once and the decorative icon is hidden from assistive technology\n Given the card shows a media format and duration\n When the person reads its headline link on its own with a screen reader\n Then the name conveys the format and displayed duration once and the decorative icon is hidden from assistive technology.\n\n @PROMOTIONAL-CARDS-05\n Scenario: the primary destination has one tab stop and each focused link is apparent\n Given the card contains primary and secondary links\n When the person Tabs through it in normal and forced colours\n Then the primary destination has one tab stop and each focused link is apparent. Any boundary needed to distinguish the card remains visible.\n\n @PROMOTIONAL-CARDS-06\n Scenario: each activation reaches its own destination\n Given the card contains a headline link and a secondary link\n When the person opens the headline in a new tab, uses any extended pointer target and follows the secondary link\n Then each activation reaches its own destination.\n\n @PROMOTIONAL-CARDS-07\n Scenario: reading order is preserved, images keep their proportions and all content stays readable\n Given the card uses a wide layout\n When the person narrows the viewport until it stacks\n Then reading order is preserved, images keep their proportions and all content stays readable.\n\n @PROMOTIONAL-CARDS-08\n Scenario: the named destination opens, the format is conveyed and the still image and indicator add no tab stop\n Given the headline leads to a video\n When the person follows it and checks the link name and tab sequence\n Then the named destination opens, the format is conveyed and the still image and indicator add no tab stop.\n\n @PROMOTIONAL-CARDS-09\n Scenario: playback starts on request, the action remains available before, during and after playback, neither control triggers the other and focus stays visible\n Given the card includes an embedded video and a separate call to action\n When the person operates them separately by keyboard and pointer\n Then playback starts on request, the action remains available before, during and after playback, neither control triggers the other and focus stays visible.\n\n @PROMOTIONAL-CARDS-10\n Scenario: its role matches its behaviour, its name identifies the action or destination and relevant conditions are available before activation\n Given the card offers a call to action\n When the person reads the action independently with a screen reader\n Then its role matches its behaviour, its name identifies the action or destination and relevant conditions are available before activation.\n```\n\n## Retrieval pack\n\n- [Markup](../Promotional%20Cards.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Promotional%20Cards.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Promotional%20Cards.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Promotional%20Cards.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nCheck linked headline and media information for link-led promos and separately exercise play and secondary actions. Automated checks can collect Primary destination, play state and second action. For agent-assisted review retain before and after observations. Human judgement: Can the person tell whether activation plays a preview or takes them elsewhere?\n\n- `PROMOTIONAL-CARDS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L92)\n- `PROMOTIONAL-CARDS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L93)\n- `PROMOTIONAL-CARDS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L94)\n- `PROMOTIONAL-CARDS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L95)\n- `PROMOTIONAL-CARDS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L99)\n- `PROMOTIONAL-CARDS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L100)\n- `PROMOTIONAL-CARDS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L101)\n- `PROMOTIONAL-CARDS-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L103)\n- `PROMOTIONAL-CARDS-09` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L104)\n- `PROMOTIONAL-CARDS-10` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Promotional%20Cards.md#L105)\n\nUse the [manual and ACT procedures](../Promotional%20Cards.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Promotional Cards.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Promotional%20Cards.md","source_start_line":1,"source_end_line":101,"source_document_sha256":"e16bee971be6d18e15fa773ecefe7484cd158d7340637a822dee25f46f6d27da","text_sha256":"e16bee971be6d18e15fa773ecefe7484cd158d7340637a822dee25f46f6d27da","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-rating-stars","title":"Rating Stars","text":"---\ntitle: \"Build Rating Stars\"\ndescription: \"Specify and verify the Rating Stars pattern in the host interface.\"\n---\n\n# Build Rating Stars\n\n## Standalone build prompt\n\nBuild Rating Stars to show the score and scale, or let people choose a rating. Use a star rating when people need to read an existing rating or give one of their own. In both cases, make the value and scale clear in text. If stars are the only cue, someone who cannot see or distinguish the filled shapes may miss the score or the value they selected.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L29) to select additional checks.\n\n```gherkin\nFeature: Rating Stars\n\n @RATING-STARS-01\n Scenario: The current score and maximum are understandable in text\n Given the host offers the applicable Rating Stars variant\n When the tester follows this procedure: Read a published rating with a screen reader and compare it with the graphic. Include a fractional rating and an unrated item.\n Then The current score and maximum are understandable in text. Decorative stars add no speech, and an unrated item does not appear to have received a low score.\n\n @RATING-STARS-02\n Scenario: The question, scale, focused option and checked state are available\n Given the host offers the applicable Rating Stars variant\n When the tester follows this procedure: Tab into the group, move with the arrow keys, select with Space and Tab onward. Read the group with a screen reader.\n Then The question, scale, focused option and checked state are available. Focus stays visible. Selection can change before submission and Tab can leave the group.\n\n @RATING-STARS-03\n Scenario: Each option is independently operable and its target meets the documented size\n Given the host offers the applicable Rating Stars variant\n When the tester follows this procedure: Use a pointer or touch to select adjacent values. Measure the clickable labels.\n Then Each option is independently operable and its target meets the documented size.\n\n @RATING-STARS-04\n Scenario: The selected value stays identifiable throughout\n Given the host offers the applicable Rating Stars variant\n When the tester follows this procedure: Change themes and enable forced colours separately. Select a value, Tab to the submit button and Shift+Tab back to the group.\n Then The selected value stays identifiable throughout. The focus indicator identifies the focused control separately, without depending on colour alone.\n\n @RATING-STARS-05\n Scenario: The display stays readable and the form remains usable\n Given the host offers the applicable Rating Stars variant\n When the tester follows this procedure: Block scripts, then test with CSS disabled separately. Submit no rating, then select and submit a value.\n Then The display stays readable and the form remains usable. For the required example, a missing value can be corrected. The submitted value and confirmation agree.\n\n @RATING-STARS-06\n Scenario: Labels stay legible, groups can wrap and reading, visual and focus order remain meaningful\n Given the host offers the applicable Rating Stars variant\n When the tester follows this procedure: Increase text size to 200%, then test a narrow width and a right-to-left locale separately.\n Then Labels stay legible, groups can wrap and reading, visual and focus order remain meaningful.\n```\n\n## Retrieval pack\n\n- [Markup](../Rating%20Stars.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Rating%20Stars.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Rating%20Stars.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Rating%20Stars.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Rating%20Stars.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Interactive star rating](../Rating%20Stars.md#interactive-star-rating)\n- [Use web form elements](../Rating%20Stars.md#use-web-form-elements)\n- [Avoid background images](../Rating%20Stars.md#avoid-background-images)\n\n## Verification and acceptance\n\nTest read-only value and scale separately from interactive rating, keyboard selection and submission. Automated checks can collect Displayed value, checked state and group name. For agent-assisted review retain before and after observations. Human judgement: Can the person interpret the scale and correct an accidental rating?\n\n- `RATING-STARS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Rating%20Stars.md#L120)\n- `RATING-STARS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Rating%20Stars.md#L121)\n- `RATING-STARS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Rating%20Stars.md#L122)\n- `RATING-STARS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Rating%20Stars.md#L123)\n- `RATING-STARS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Rating%20Stars.md#L124)\n- `RATING-STARS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Rating%20Stars.md#L125)\n\nUse the [manual and ACT procedures](../Rating%20Stars.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Rating Stars.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Rating%20Stars.md","source_start_line":1,"source_end_line":79,"source_document_sha256":"77fad6ee9e5a990ef6af73898a4cf740a6b9bc054c328d0077b1bce52ce697a6","text_sha256":"77fad6ee9e5a990ef6af73898a4cf740a6b9bc054c328d0077b1bce52ce697a6","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-refusal-cancellation-and-exit","title":"Refusal, Cancellation and Exit","text":"---\ntitle: \"Build Refusal, Cancellation and Exit\"\ndescription: \"Specify and verify the Refusal, Cancellation and Exit pattern in the host interface.\"\n---\n\n# Build Refusal, Cancellation and Exit\n\n## Standalone build prompt\n\nBuild Refusal, Cancellation and Exit to let people decline an offer, leave a task or cancel a service. Give people a way to decline an optional invitation, leave an unfinished task and cancel an ongoing service. Use wording that distinguishes these outcomes. ‘Leave application’ can mean saving a draft, while ‘Cancel subscription’ changes an ongoing arrangement.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L41) to select additional checks.\n\n```gherkin\nFeature: Refusal, Cancellation and Exit\n\n @REFUSAL-CANCELLATION-AND-EXIT-01\n Scenario: The cancellation route is findable and operable\n Given the host offers the applicable Refusal, Cancellation and Exit variant\n When the tester follows this procedure: Start where a customer manages the service and follow the cancellation route by keyboard and screen reader. Compare it with the route for starting the service.\n Then The cancellation route is findable and operable. Any additional effort has a clear purpose and a usable route through it.\n\n @REFUSAL-CANCELLATION-AND-EXIT-02\n Scenario: The refusal stays in effect while applicable\n Given the host offers the applicable Refusal, Cancellation and Exit variant\n When the tester follows this procedure: Decline an optional offer, revisit the task, and cancel or go back from any confirmation dialog.\n Then The refusal stays in effect while applicable. Going back preserves the task state and restores focus to a usable location.\n\n @REFUSAL-CANCELLATION-AND-EXIT-03\n Scenario: The result and effective date are clear when confirmed\n Given the host offers the applicable Refusal, Cancellation and Exit variant\n When the tester follows this procedure: Complete cancellation, then test a failed or pending request.\n Then The result and effective date are clear when confirmed. A failure or pending request is distinguishable and provides the next step.\n```\n\n## Retrieval pack\n\n- [Markup](../Refusal%2C%20Cancellation%20and%20Exit.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Refusal%2C%20Cancellation%20and%20Exit.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Refusal%2C%20Cancellation%20and%20Exit.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Refusal%2C%20Cancellation%20and%20Exit.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Refusal%2C%20Cancellation%20and%20Exit.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Show the route and the result](../Refusal%2C%20Cancellation%20and%20Exit.md#show-the-route-and-the-result)\n- [Compare the effort](../Refusal%2C%20Cancellation%20and%20Exit.md#compare-the-effort)\n- [Respect a refusal](../Refusal%2C%20Cancellation%20and%20Exit.md#respect-a-refusal)\n\n## Verification and acceptance\n\nDecline, cancel or leave without confirmation side effects and verify cancellation state and return. Automated checks can collect Cancellation state and destination. For agent-assisted review retain before and after observations. Human judgement: Can the person find and complete refusal as readily as acceptance?\n\n- `REFUSAL-CANCELLATION-AND-EXIT-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Refusal%2C%20Cancellation%20and%20Exit.md#L62)\n- `REFUSAL-CANCELLATION-AND-EXIT-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Refusal%2C%20Cancellation%20and%20Exit.md#L63)\n- `REFUSAL-CANCELLATION-AND-EXIT-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Refusal%2C%20Cancellation%20and%20Exit.md#L64)\n\nUse the [manual and ACT procedures](../Refusal%2C%20Cancellation%20and%20Exit.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Refusal, Cancellation and Exit.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Refusal,%20Cancellation%20and%20Exit.md","source_start_line":1,"source_end_line":58,"source_document_sha256":"3f463a83221d6969161dc83be614e39ff6f0894277e5110b39ef1b302d250640","text_sha256":"3f463a83221d6969161dc83be614e39ff6f0894277e5110b39ef1b302d250640","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-reminders-and-saved-actions","title":"Reminders and Saved Actions","text":"---\ntitle: \"Build Reminders and Saved Actions\"\ndescription: \"Specify and verify the Reminders and Saved Actions pattern in the host interface.\"\n---\n\n# Build Reminders and Saved Actions\n\n## Standalone build prompt\n\nBuild Reminders and Saved Actions to optional reminders and a reliable route back. Help people save an action they intend to do later and find it again when they are ready. Someone may miss a reminder because their device suppresses it, their contact details change or delivery fails. Give them a stable route to the action inside the service.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L42) to select additional checks.\n\n```gherkin\nFeature: Reminders and Saved Actions\n\n @REMINDERS-AND-SAVED-ACTIONS-01\n Scenario: Both routes expose the task, next action and any deadline, and let the person continue\n Given the host offers the applicable Reminders and Saved Actions variant\n When the tester follows this procedure: Save without a reminder. Return through the service’s saved list. Repeat after scheduling a reminder and missing it.\n Then Both routes expose the task, next action and any deadline, and let the person continue.\n\n @REMINDERS-AND-SAVED-ACTIONS-02\n Scenario: Labels are clear and timing, channel, result and expiry are distinguishable\n Given the host offers the applicable Reminders and Saved Actions variant\n When the tester follows this procedure: Use keyboard and a supported screen reader to schedule, change and cancel a reminder. Try snooze if available.\n Then Labels are clear and timing, channel, result and expiry are distinguishable. Cancelling a reminder leaves the saved task intact.\n\n @REMINDERS-AND-SAVED-ACTIONS-03\n Scenario: Feedback identifies the failed operation\n Given the host offers the applicable Reminders and Saved Actions variant\n When the tester follows this procedure: Fail saving, scheduling and delivery in separate runs. Retry a queued request.\n Then Feedback identifies the failed operation. A saved task remains available when scheduling or delivery fails. A retry does not create a duplicate reminder.\n\n @REMINDERS-AND-SAVED-ACTIONS-04\n Scenario: The displayed time matches the scheduling rule\n Given the host offers the applicable Reminders and Saved Actions variant\n When the tester follows this procedure: Change the deadline or cross a supported time-zone or daylight-saving boundary. Complete or delete the task before a queued reminder is due.\n Then The displayed time matches the scheduling rule. Obsolete reminders are suppressed.\n\n @REMINDERS-AND-SAVED-ACTIONS-05\n Scenario: The current state is clear\n Given the host offers the applicable Reminders and Saved Actions variant\n When the tester follows this procedure: Follow an old reminder after expiry, completion or sign-out. Check previews on a shared or locked device.\n Then The current state is clear. Private task details remain protected, and any account check occurs before those details are shown.\n\n @REMINDERS-AND-SAVED-ACTIONS-06\n Scenario: Record whether they can find the task, identify the next action and complete or decline it\n Given the host offers the applicable Reminders and Saved Actions variant\n When the tester follows this procedure: In a representative task study, ask someone to save an action and return after a delay, once with a reminder and once through the saved list.\n Then Record whether they can find the task, identify the next action and complete or decline it. Record delivery separately from notice and completion.\n```\n\n## Retrieval pack\n\n- [Markup](../Reminders%20and%20Saved%20Actions.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Reminders%20and%20Saved%20Actions.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Reminders%20and%20Saved%20Actions.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Reminders%20and%20Saved%20Actions.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Reminders%20and%20Saved%20Actions.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Save the action and schedule the reminder](../Reminders%20and%20Saved%20Actions.md#save-the-action-and-schedule-the-reminder)\n- [Let people manage or stop reminders](../Reminders%20and%20Saved%20Actions.md#let-people-manage-or-stop-reminders)\n\n## Verification and acceptance\n\nOpt in, edit, disable and return from a reminder or saved item and confirm no unintended opt-in. Automated checks can collect Preference persistence and scheduled-state changes. For agent-assisted review retain before and after observations. Human judgement: Can the person control reminders and understand what remains saved?\n\n- `REMINDERS-AND-SAVED-ACTIONS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Reminders%20and%20Saved%20Actions.md#L82)\n- `REMINDERS-AND-SAVED-ACTIONS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Reminders%20and%20Saved%20Actions.md#L83)\n- `REMINDERS-AND-SAVED-ACTIONS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Reminders%20and%20Saved%20Actions.md#L84)\n- `REMINDERS-AND-SAVED-ACTIONS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Reminders%20and%20Saved%20Actions.md#L85)\n- `REMINDERS-AND-SAVED-ACTIONS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Reminders%20and%20Saved%20Actions.md#L86)\n- `REMINDERS-AND-SAVED-ACTIONS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Reminders%20and%20Saved%20Actions.md#L87)\n\nUse the [manual and ACT procedures](../Reminders%20and%20Saved%20Actions.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Reminders and Saved Actions.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Reminders%20and%20Saved%20Actions.md","source_start_line":1,"source_end_line":78,"source_document_sha256":"8e5505dcd292ae19261cde1ffcca614a66189f21e84ec2ec33c4ebff9e9a604c","text_sha256":"8e5505dcd292ae19261cde1ffcca614a66189f21e84ec2ec33c4ebff9e9a604c","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-saving-and-resuming-a-task","title":"Saving and Resuming a Task","text":"---\ntitle: \"Build Saving and Resuming a Task\"\ndescription: \"Specify and verify the Saving and Resuming a Task pattern in the host interface.\"\n---\n\n# Build Saving and Resuming a Task\n\n## Standalone build prompt\n\nBuild Saving and Resuming a Task to draft feedback, return routes and recovery. Let people pause a task they cannot complete in one sitting and return to the right place. Show what has been saved and what remains to do. After an interruption, someone may remember their goal while needing a reminder of their last step, decisions or next action.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L43) to select additional checks.\n\n```gherkin\nFeature: Saving and Resuming a Task\n\n @SAVING-AND-RESUMING-A-TASK-01\n Scenario: The save confirmation reflects the storage outcome\n Given the host offers the applicable Saving and Resuming a Task variant\n When the tester follows this procedure: Enter several answers, select ‘Save and leave’, then return through the advertised route. Where cross-device access is supported, repeat on another device.\n Then The save confirmation reflects the storage outcome. The right task, valid answers and next action are available through each advertised route.\n\n @SAVING-AND-RESUMING-A-TASK-02\n Scenario: While the save is pending or has failed, the interface does not claim success or leave unexpectedly\n Given the host offers the applicable Saving and Resuming a Task variant\n When the tester follows this procedure: Delay or fail a save, try leaving, then retry. Separately, trigger several autosaves while editing with a screen reader.\n Then While the save is pending or has failed, the interface does not claim success or leave unexpectedly. Retained input is usable for retry. Autosave does not move focus or trigger repeated announcements.\n\n @SAVING-AND-RESUMING-A-TASK-03\n Scenario: A valid draft reopens in context after sign-in\n Given the host offers the applicable Saving and Resuming a Task variant\n When the tester follows this procedure: Start from an expired session, follow the return route and sign in again. In a separate run use an expired or unavailable draft.\n Then A valid draft reopens in context after sign-in. An unavailable draft gets a clear explanation and a route to recover, start again or get help where available.\n\n @SAVING-AND-RESUMING-A-TASK-04\n Scenario: Other valid work survives\n Given the host offers the applicable Saving and Resuming a Task variant\n When the tester follows this procedure: Resume with an unavailable choice, then repeat after changing the same draft in a second tab or device.\n Then Other valid work survives. The invalid choice has a clear correction route, and conflicting updates do not silently replace newer work.\n\n @SAVING-AND-RESUMING-A-TASK-05\n Scenario: Record whether they recognise the task, understand what was retained or changed and can resume or recover\n Given the host offers the applicable Saving and Resuming a Task variant\n When the tester follows this procedure: In a representative task, pause and return after a delay. Ask the person to continue without supplying the next step.\n Then Record whether they recognise the task, understand what was retained or changed and can resume or recover. Record where assistance was needed.\n```\n\n## Retrieval pack\n\n- [Markup](../Saving%20and%20Resuming%20a%20Task.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Saving%20and%20Resuming%20a%20Task.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Saving%20and%20Resuming%20a%20Task.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Saving%20and%20Resuming%20a%20Task.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Saving%20and%20Resuming%20a%20Task.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Save and leave](../Saving%20and%20Resuming%20a%20Task.md#save-and-leave)\n- [Return and reauthenticate](../Saving%20and%20Resuming%20a%20Task.md#return-and-reauthenticate)\n- [Recover changes and expiry](../Saving%20and%20Resuming%20a%20Task.md#recover-changes-and-expiry)\n\n## Verification and acceptance\n\nSave, abandon, reload, reauthenticate and resume after changes and verify restored state. Automated checks can collect Saved fields and resume destination. For agent-assisted review retain before and after observations. Human judgement: Can the person tell what was saved and reach the correct continuation point?\n\n- `SAVING-AND-RESUMING-A-TASK-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Saving%20and%20Resuming%20a%20Task.md#L88)\n- `SAVING-AND-RESUMING-A-TASK-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Saving%20and%20Resuming%20a%20Task.md#L89)\n- `SAVING-AND-RESUMING-A-TASK-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Saving%20and%20Resuming%20a%20Task.md#L90)\n- `SAVING-AND-RESUMING-A-TASK-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Saving%20and%20Resuming%20a%20Task.md#L91)\n- `SAVING-AND-RESUMING-A-TASK-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Saving%20and%20Resuming%20a%20Task.md#L92)\n\nUse the [manual and ACT procedures](../Saving%20and%20Resuming%20a%20Task.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Saving and Resuming a Task.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Saving%20and%20Resuming%20a%20Task.md","source_start_line":1,"source_end_line":72,"source_document_sha256":"6542360752adc94a0f96489a7397a61c166c9bf75614ed8ab36f9f6b4839b069","text_sha256":"6542360752adc94a0f96489a7397a61c166c9bf75614ed8ab36f9f6b4839b069","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-search","title":"Search","text":"---\ntitle: \"Build Search\"\ndescription: \"Specify and verify the Search pattern in the host interface.\"\n---\n\n# Build Search\n\n## Standalone build prompt\n\nBuild Search to label search by scope and make suggestions usable. Help people find a page or explore a set of results by entering a query. State what the search covers before someone types. Keep the form usable without suggestions so people can still search when suggestions are unavailable.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L12) to select additional checks.\n\n```gherkin\nFeature: Search\n\n @SEARCH-01\n Scenario: Focus enters the search field\n Given the host offers the applicable Search variant\n When the tester follows this procedure: Start with site-wide search closed. Tab to its opener and activate it. Tab to Close and activate it.\n Then Focus enters the search field. Closing returns focus to the opener without submitting. Hidden controls and links are skipped.\n\n @SEARCH-02\n Scenario: The two search scopes are distinct\n Given the host offers the applicable Search variant\n When the tester follows this procedure: Open the screen reader’s landmark list on a page with both site-wide and local search. Navigate to each landmark and inspect the field and buttons.\n Then The two search scopes are distinct. The field and each button have names that identify their purpose. The names agree with any visible text.\n\n @SEARCH-03\n Scenario: The count is announced without moving focus from the input\n Given the host offers the applicable Search variant\n When the tester follows this procedure: With a screen reader running, type a query that returns suggestions. Wait for the update, then use Tab to reach a suggestion and Enter to open it.\n Then The count is announced without moving focus from the input. Suggestions are grouped and named. The link opens the expected destination.\n\n @SEARCH-04\n Scenario: Both routes submit the typed query and display results in the stated scope\n Given the host offers the applicable Search variant\n When the tester follows this procedure: Repeat the query with suggestions visible. Press Enter from the field. Repeat using the submit button.\n Then Both routes submit the typed query and display results in the stated scope.\n\n @SEARCH-05\n Scenario: Old suggestions become unavailable, late responses do not replace current suggestions and the form still submits\n Given the host offers the applicable Search variant\n When the tester follows this procedure: Clear the query, enter a query with no suggestions, then simulate a delayed or failed response and type a different query.\n Then Old suggestions become unavailable, late responses do not replace current suggestions and the form still submits.\n\n @SEARCH-06\n Scenario: Search remains findable and the results match the query and scope\n Given the host offers the applicable Search variant\n When the tester follows this procedure: Block scripts and reload. Follow the header search link if present, then submit a query through the baseline form.\n Then Search remains findable and the results match the query and scope.\n\n @SEARCH-07\n Scenario: Both paths work by touch and submission works even when the on-screen keyboard ignores the hint\n Given the host offers the applicable Search variant\n When the tester follows this procedure: On a touchscreen, enter a query, tap a suggestion, then return and submit with the button.\n Then Both paths work by touch and submission works even when the on-screen keyboard ignores the hint.\n\n @SEARCH-08\n Scenario: The controls and suggestions remain readable and operable\n Given the host offers the applicable Search variant\n When the tester follows this procedure: Increase text size, then separately narrow the viewport. Use the field, buttons and suggestions by keyboard in each condition.\n Then The controls and suggestions remain readable and operable. Focus stays visible as controls wrap.\n\n @SEARCH-09\n Scenario: Suggestions appear and disappear without the non-essential motion\n Given the host offers the applicable Search variant\n When the tester follows this procedure: Enable reduced motion if the suggestions are animated. Enter a query with suggestions and then clear it.\n Then Suggestions appear and disappear without the non-essential motion.\n```\n\n## Retrieval pack\n\n- [Markup](../Search.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Search.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Search.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Search.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Open and close search](../Search.md#open-and-close-search)\n- [Use suggestions or submit a query](../Search.md#use-suggestions-or-submit-a-query)\n\n## Verification and acceptance\n\nType a query, navigate suggestions, dismiss, submit and handle no results. Automated checks can collect Query, active suggestion and results state. For agent-assisted review retain before and after observations. Human judgement: Can the person distinguish searching from selecting a suggestion and recover from no results?\n\n- `SEARCH-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L97)\n- `SEARCH-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L98)\n- `SEARCH-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L99)\n- `SEARCH-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L100)\n- `SEARCH-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L101)\n- `SEARCH-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L102)\n- `SEARCH-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L103)\n- `SEARCH-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L104)\n- `SEARCH-09` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Search.md#L105)\n\nUse the [manual and ACT procedures](../Search.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Search.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Search.md","source_start_line":1,"source_end_line":99,"source_document_sha256":"12168d8a01d552bd2ea32d51b7bece1ee188335584a2df2945c9032fed3dd669","text_sha256":"12168d8a01d552bd2ea32d51b7bece1ee188335584a2df2945c9032fed3dd669","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-share-tools","title":"Share Tools","text":"---\ntitle: \"Build Share Tools\"\ndescription: \"Specify and verify the Share Tools pattern in the host interface.\"\n---\n\n# Build Share Tools\n\n## Standalone build prompt\n\nBuild Share Tools to let people share a page or copy its link. Help people pass on a page using a service they choose or by copying its link. A long row of sharing controls can slow someone navigating by keyboard, and an icon alone can be hard to identify. Keep the options easy to find and easy to bypass. A selectable page link is enough if people only need the address.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L36) to select additional checks.\n\n```gherkin\nFeature: Share Tools\n\n @SHARE-TOOLS-01\n Scenario: The group and links have clear names\n Given the host offers the applicable Share Tools variant\n When the tester follows this procedure: Use a supported screen reader and keyboard to reach the group and move through each service link. Activate each link.\n Then The group and links have clear names. Any new tab is identified before activation. The destination receives the intended page address.\n\n @SHARE-TOOLS-02\n Scenario: The link is visible on focus\n Given the host offers the applicable Share Tools variant\n When the tester follows this procedure: Tab to ‘Skip sharing’, activate it and press Tab again. Repeat for each group if there are several.\n Then The link is visible on focus. It moves focus past its own group, and the next Tab reaches the next control after it.\n\n @SHARE-TOOLS-03\n Scenario: The expanded state and visible contents agree\n Given the host offers the applicable Share Tools variant\n When the tester follows this procedure: Open the sharing panel from its button. Close it with Close and Escape in separate runs. Reopen and Tab onward.\n Then The expanded state and visible contents agree. Closing from inside restores focus to the opener. Closed controls are skipped and Tab can continue beyond the panel.\n\n @SHARE-TOOLS-04\n Scenario: Focusing the field leaves the clipboard alone\n Given the host offers the applicable Share Tools variant\n When the tester follows this procedure: Tab into the address field, then select all and copy using the platform shortcut. Repeat using touch selection on a supported device. Paste into a text editor.\n Then Focusing the field leaves the clipboard alone. Manual copying gives the full address from the field.\n\n @SHARE-TOOLS-05\n Scenario: Focus stays on the button\n Given the host offers the applicable Share Tools variant\n When the tester follows this procedure: Activate ‘Copy link’ with the keyboard. Paste into a text editor. Then repeat with clipboard access blocked.\n Then Focus stays on the button. The success message follows a successful copy. On failure, visible and announced instructions explain how to copy manually.\n\n @SHARE-TOOLS-06\n Scenario: The baseline sharing options are usable\n Given the host offers the applicable Share Tools variant\n When the tester follows this procedure: Block scripts and reload. Try the service link and copy the address manually.\n Then The baseline sharing options are usable. Enhancement controls that cannot work are unavailable.\n\n @SHARE-TOOLS-07\n Scenario: Labels, controls and focus remain visible\n Given the host offers the applicable Share Tools variant\n When the tester follows this procedure: Enable forced colours. Tab through the tools. Increase text size, then separately narrow the viewport.\n Then Labels, controls and focus remain visible. Tools wrap without hiding content or changing the tab order.\n```\n\n## Retrieval pack\n\n- [Markup](../Share%20Tools.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Share%20Tools.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Share%20Tools.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Share%20Tools.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Bypass the tools](../Share%20Tools.md#bypass-the-tools)\n- [Open a service or show more options](../Share%20Tools.md#open-a-service-or-show-more-options)\n- [Copy the link](../Share%20Tools.md#copy-the-link)\n\n## Verification and acceptance\n\nTest share and copy paths including cancelled sharing and blocked clipboard. Automated checks can collect Copied value and simulated clipboard rejection. For agent-assisted review retain before and after observations. Human judgement: Can the person distinguish share destinations and confirm the intended link was copied?\n\n- `SHARE-TOOLS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#L95)\n- `SHARE-TOOLS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#L96)\n- `SHARE-TOOLS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#L97)\n- `SHARE-TOOLS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#L98)\n- `SHARE-TOOLS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#L99)\n- `SHARE-TOOLS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#L100)\n- `SHARE-TOOLS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Share%20Tools.md#L101)\n\nUse the [manual and ACT procedures](../Share%20Tools.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Share Tools.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Share%20Tools.md","source_start_line":1,"source_end_line":86,"source_document_sha256":"5f4d6a325a8ddd053d3f21c060195d9c05cf4701de731eb0bc6f9a96f22ae93a","text_sha256":"5f4d6a325a8ddd053d3f21c060195d9c05cf4701de731eb0bc6f9a96f22ae93a","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-showing-what-changed-before-confirmation","title":"Showing What Changed Before Confirmation","text":"---\ntitle: \"Build Showing What Changed Before Confirmation\"\ndescription: \"Specify and verify the Showing What Changed Before Confirmation pattern in the host interface.\"\n---\n\n# Build Showing What Changed Before Confirmation\n\n## Standalone build prompt\n\nBuild Showing What Changed Before Confirmation to review changed details before committing. Show people what changed when a price, destination, selected option or condition changes before they commit. Put the current detail and its consequence together so the person can decide whether to continue without remembering an earlier screen.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L44) to select additional checks.\n\n```gherkin\nFeature: Showing What Changed Before Confirmation\n\n @SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-01\n Scenario: Both paths prevent commitment to unseen values\n Given the host offers the applicable Showing What Changed Before Confirmation variant\n When the tester follows this procedure: Review a booking or order. Change a material value before activation, then repeat with the change occurring after activation and before acceptance.\n Then Both paths prevent commitment to unseen values. The review identifies the affected item, current values, consequence and next action.\n\n @SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-02\n Scenario: The affected entity can be identified without recalling an earlier view\n Given the host offers the applicable Showing What Changed Before Confirmation variant\n When the tester follows this procedure: Compare two similar recipients or destinations. Change one distinguishing detail after review.\n Then The affected entity can be identified without recalling an earlier view. The change is clear in text and the correction action goes to the right place.\n\n @SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-03\n Scenario: Focus stays usable or reaches the review heading as appropriate\n Given the host offers the applicable Showing What Changed Before Confirmation variant\n When the tester follows this procedure: Use keyboard and a supported screen reader to review an in-place change and a change that opens a new review view. Go back to edit.\n Then Focus stays usable or reaches the review heading as appropriate. The change can be reread without competing announcements. Valid selections and answers remain available.\n\n @SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-04\n Scenario: The routine update does not force another decision\n Given the host offers the applicable Showing What Changed Before Confirmation variant\n When the tester follows this procedure: Change a routine detail that leaves the decision intact, then remove a selected option.\n Then The routine update does not force another decision. The unavailable option is explained and the person can choose a valid replacement.\n\n @SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-05\n Scenario: The accepted outcome matches the reviewed values\n Given the host offers the applicable Showing What Changed Before Confirmation variant\n When the tester follows this procedure: Accept an updated review, then repeat with a delayed response, a retry and a further material change.\n Then The accepted outcome matches the reviewed values. A retry does not duplicate the action. A further material change requires another review before commitment.\n```\n\n## Retrieval pack\n\n- [Markup](../Showing%20What%20Changed%20Before%20Confirmation.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Showing%20What%20Changed%20Before%20Confirmation.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Showing%20What%20Changed%20Before%20Confirmation.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Showing%20What%20Changed%20Before%20Confirmation.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Showing%20What%20Changed%20Before%20Confirmation.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Decide what needs another review](../Showing%20What%20Changed%20Before%20Confirmation.md#decide-what-needs-another-review)\n- [Make the review usable](../Showing%20What%20Changed%20Before%20Confirmation.md#make-the-review-usable)\n\n## Verification and acceptance\n\nCompare previous and revised data, edit again, decline and confirm and inspect state and reading order. Automated checks can collect Old/new values, state after edit and confirmation. For agent-assisted review retain before and after observations. Human judgement: Can the person explain the change and its consequence before committing?\n\n- `SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Showing%20What%20Changed%20Before%20Confirmation.md#L82)\n- `SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Showing%20What%20Changed%20Before%20Confirmation.md#L83)\n- `SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Showing%20What%20Changed%20Before%20Confirmation.md#L84)\n- `SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Showing%20What%20Changed%20Before%20Confirmation.md#L85)\n- `SHOWING-WHAT-CHANGED-BEFORE-CONFIRMATION-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Showing%20What%20Changed%20Before%20Confirmation.md#L86)\n\nUse the [manual and ACT procedures](../Showing%20What%20Changed%20Before%20Confirmation.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Showing What Changed Before Confirmation.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Showing%20What%20Changed%20Before%20Confirmation.md","source_start_line":1,"source_end_line":71,"source_document_sha256":"88076146f6e4f53294cdbde8f65bbc17267e5750023a58c41e791bf4038bd7ac","text_sha256":"88076146f6e4f53294cdbde8f65bbc17267e5750023a58c41e791bf4038bd7ac","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-site-menus","title":"Site Menus","text":"---\ntitle: \"Build Site Menus\"\ndescription: \"Specify and verify the Site Menus pattern in the host interface.\"\n---\n\n# Build Site Menus\n\n## Standalone build prompt\n\nBuild Site Menus to help people find pages within a site or service. Use a site menu to help people find pages within the current site or service and see where they are in its hierarchy. Use Global Navigation for destinations and actions shared across the wider service. Use Mega Menu when one top-level destination needs a panel with several groups of links.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L13) to select additional checks.\n\n```gherkin\nFeature: Site Menus\n\n @SITE-MENUS-01\n Scenario: The site navigation has a distinct name and the child links are nested under the correct parent\n Given the host offers the applicable Site Menus variant\n When the tester follows this procedure: Use a screen reader to list the navigation landmarks and browse the site menu’s lists.\n Then The site navigation has a distinct name and the child links are nested under the correct parent. The parent link and submenu button have distinct purposes.\n\n @SITE-MENUS-02\n Scenario: Focus stays on the button on opening\n Given the host offers the applicable Site Menus variant\n When the tester follows this procedure: Start with a collapsed submenu. Open with Enter and then Space in separate runs. Tab through its links and onward.\n Then Focus stays on the button on opening. The state changes and the first child link is next. Focus continues through the menu and into the page.\n\n @SITE-MENUS-03\n Scenario: Focus returns to the controlling button after Escape\n Given the host offers the applicable Site Menus variant\n When the tester follows this procedure: From a child link, press Escape. Reopen and close with the button.\n Then Focus returns to the controlling button after Escape. Closing updates the state and removes the links from keyboard and screen reader navigation.\n\n @SITE-MENUS-04\n Scenario: The current destination is indicated visually and programmatically\n Given the host offers the applicable Site Menus variant\n When the tester follows this procedure: Load a page linked inside a submenu, then load a top-level destination.\n Then The current destination is indicated visually and programmatically. Its containing submenu starts open when applicable. A parent link does not take the child’s current-page state.\n\n @SITE-MENUS-05\n Scenario: The menu remains operable\n Given the host offers the applicable Site Menus variant\n When the tester follows this procedure: At a narrow width, test the whole-menu button if provided. Change width or zoom while a menu link has focus.\n Then The menu remains operable. Focus stays on a visible target or moves to the control that can reveal it. Visual order matches tab order.\n\n @SITE-MENUS-06\n Scenario: Current page, keyboard focus and expanded state are distinguishable\n Given the host offers the applicable Site Menus variant\n When the tester follows this procedure: Enable forced colours and tab from the current link to another link and a submenu button.\n Then Current page, keyboard focus and expanded state are distinguishable.\n\n @SITE-MENUS-07\n Scenario: With scripts blocked, the destination links work and disclosure buttons remain hidden\n Given the host offers the applicable Site Menus variant\n When the tester follows this procedure: Block scripts and reload. In a separate run, restore scripts and disable CSS.\n Then With scripts blocked, the destination links work and disclosure buttons remain hidden. With CSS disabled, the nesting and disclosure behaviour remain available.\n```\n\n## Retrieval pack\n\n- [Markup](../Site%20Menus.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Site%20Menus.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Site%20Menus.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Site%20Menus.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Open and close a submenu](../Site%20Menus.md#open-and-close-a-submenu)\n- [Show the current page](../Site%20Menus.md#show-the-current-page)\n- [Adapt the whole menu at narrow widths](../Site%20Menus.md#adapt-the-whole-menu-at-narrow-widths)\n\n## Verification and acceptance\n\nCheck nested links, disclosure state, current branch, Escape and script fallback. Automated checks can collect Expanded state and current link. For agent-assisted review retain before and after observations. Human judgement: Can the person identify the current branch and reach a neighbouring page?\n\n- `SITE-MENUS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#L127)\n- `SITE-MENUS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#L128)\n- `SITE-MENUS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#L129)\n- `SITE-MENUS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#L130)\n- `SITE-MENUS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#L131)\n- `SITE-MENUS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#L132)\n- `SITE-MENUS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Site%20Menus.md#L133)\n\nUse the [manual and ACT procedures](../Site%20Menus.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Site Menus.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Site%20Menus.md","source_start_line":1,"source_end_line":86,"source_document_sha256":"262cfb0c7b7aef6742f4ebcac78137ed4465f0cb6c51c59b7b8a1935cc897740","text_sha256":"262cfb0c7b7aef6742f4ebcac78137ed4465f0cb6c51c59b7b8a1935cc897740","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-support-escalation-and-handoffs","title":"Support, Escalation and Handoffs","text":"---\ntitle: \"Build Support, Escalation and Handoffs\"\ndescription: \"Specify and verify the Support, Escalation and Handoffs pattern in the host interface.\"\n---\n\n# Build Support, Escalation and Handoffs\n\n## Standalone build prompt\n\nBuild Support, Escalation and Handoffs to help people reach support and understand who owns the next step. Give people a way to ask for help without repeating the barrier that stopped them. A link to support is only the first step. Check whether the person can reach a usable channel, explain the problem and get a response.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L37) to select additional checks.\n\n```gherkin\nFeature: Support, Escalation and Handoffs\n\n @SUPPORT-ESCALATION-AND-HANDOFFS-01\n Scenario: An accessible route can handle the same problem\n Given the host offers the applicable Support, Escalation and Handoffs variant\n When the tester follows this procedure: Start from a failed task and try to reach support with the available keyboard and screen reader routes. Repeat with the usual channel unavailable.\n Then An accessible route can handle the same problem. The person can find any requirements and know what to expect.\n\n @SUPPORT-ESCALATION-AND-HANDOFFS-02\n Scenario: The person knows who owns the next step and can use an existing reference\n Given the host offers the applicable Support, Escalation and Handoffs variant\n When the tester follows this procedure: Follow a request across a team or channel transfer.\n Then The person knows who owns the next step and can use an existing reference. Relevant information carries forward where appropriate.\n\n @SUPPORT-ESCALATION-AND-HANDOFFS-03\n Scenario: The original request remains available\n Given the host offers the applicable Support, Escalation and Handoffs variant\n When the tester follows this procedure: Simulate a failed transfer or no response within the stated time. Follow the retry or escalation route.\n Then The original request remains available. The person can tell who to contact and can continue without starting the original task again.\n```\n\n## Retrieval pack\n\n- [Markup](../Support%2C%20Escalation%20and%20Handoffs.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Support%2C%20Escalation%20and%20Handoffs.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Support%2C%20Escalation%20and%20Handoffs.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Support%2C%20Escalation%20and%20Handoffs.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Support%2C%20Escalation%20and%20Handoffs.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Carry the task across a handoff](../Support%2C%20Escalation%20and%20Handoffs.md#carry-the-task-across-a-handoff)\n- [Provide an escalation path](../Support%2C%20Escalation%20and%20Handoffs.md#provide-an-escalation-path)\n\n## Verification and acceptance\n\nTraverse primary and alternative support and inspect consent, status and recovery in a representative handoff. Automated checks can collect Handoff status, retained state and return destination. For agent-assisted review retain before and after observations. Human judgement: Can the person identify who owns the next step and continue without retelling unnecessarily?\n\n- `SUPPORT-ESCALATION-AND-HANDOFFS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Support%2C%20Escalation%20and%20Handoffs.md#L58)\n- `SUPPORT-ESCALATION-AND-HANDOFFS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Support%2C%20Escalation%20and%20Handoffs.md#L59)\n- `SUPPORT-ESCALATION-AND-HANDOFFS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Support%2C%20Escalation%20and%20Handoffs.md#L60)\n\nUse the [manual and ACT procedures](../Support%2C%20Escalation%20and%20Handoffs.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Support, Escalation and Handoffs.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Support,%20Escalation%20and%20Handoffs.md","source_start_line":1,"source_end_line":57,"source_document_sha256":"fe8cc0d137cd3006757ef8b43e556fa38d1e04ee4ffea512eeca110e582552f0","text_sha256":"fe8cc0d137cd3006757ef8b43e556fa38d1e04ee4ffea512eeca110e582552f0","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-tabs","title":"Tabs","text":"# Build Tabs\n\n## A. Standalone build prompt\n\nChoose a related section and read its content. For a new set assume horizontal manual activation. Confirm orientation, activation policy, fragment and history policy, first meaningful panel content and any maintained legacy keyboard model. Use ordinary links to headed sections until enhancement succeeds. Four or five labels is a design heuristic.\n\nThe supplied focus procedure expects focus in the panel. Applying it to standard tabs would make arrow exploration stop after activation. Use that procedure only for the existing panel-focus model. Standard horizontal tabs use Left and Right, vertical tabs Up and Down. Home and End are optional. Automatic activation needs confirmation with actual panel latency.\n\nUse native HTML where it supplies the behaviour. Use host components and brand tokens where they preserve these outcomes. Before coding, copy the [Cosmos semantics contract template](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Component%20Semantics%20Contract.md#contract-template) for each materially different variant. Record names, roles, states, relationships, focus, keyboard commands, feedback, fallback, recovery and the supported environments. Mark unresolved host decisions. Deliver the implementation, the contract reconciled against the rendered interface, and evidence against the [Tabs matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/testing-matrix/Design%20Patterns.md#L21). Accept each applicable scenario only with observed evidence. Record pass, fail, not applicable, not run or cannot tell and explain exclusions and gaps.\n\n```gherkin\nFeature: Tabs\n\n Scenario: TABS-P2-01 — The person selects a tab by click or tap\n Given an enhanced named tablist has two or more labelled tabs\n When the person selects a tab by click or tap\n Then only its associated labelled panel is exposed, only that tab is selected and the other panels and their controls leave the reading and Tab sequences\n\n Scenario: TABS-P2-02 — The person arrows past the last tab then activates the focused tab with Enter or Space\n Given focus has entered a standard manual tablist on its selected tab\n When the person arrows past the last tab then activates the focused tab with Enter or Space\n Then focus wraps to the first tab, selection waits for activation and focus stays on that tab\n\n Scenario: TABS-P2-03 — The person moves focus with an orientation arrow\n Given a standard automatically activated tablist has immediate panels\n When the person moves focus with an orientation arrow\n Then selection follows focus and the matching content appears without interrupting exploration\n\n Scenario: TABS-P2-04 — The person uses Down and Up across its ends\n Given a vertical tablist exposes vertical orientation\n When the person uses Down and Up across its ends\n Then focus wraps in the corresponding direction under the declared activation policy\n\n Scenario: TABS-P2-05 — The person presses Tab then Shift+Tab\n Given manual arrow navigation has left focus on an unselected tab\n When the person presses Tab then Shift+Tab\n Then Tab reaches the active panel start or its first meaningful control and reverse entry returns to the selected tab\n\n Scenario: TABS-P2-06 — The person activates a tab with Enter, Space, click or tap\n Given an existing panel-focus variant exposes each tab in the Tab sequence\n When the person activates a tab with Enter, Space, click or tap\n Then focus moves to its named panel outside the Tab sequence, Tab continues into or after the content and Shift+Tab from the panel returns to the list\n\n Scenario: TABS-P2-07 — The person follows a section link\n Given scripts are blocked or enhancement fails before initialisation\n When the person follows a section link\n Then all headed sections remain visible and each link reaches its destination without tab roles\n\n Scenario: TABS-P2-08 — The page loads\n Given a URL identifies a panel or a descendant in it\n When the page loads\n Then the matching panel opens before its target is reached, on fresh load an unrelated fragment keeps its own destination and an unmatched target leaves the first panel selected\n\n Scenario: TABS-P2-09 — The person selects another panel twice then uses Back and Forward\n Given selection updates history and the initial URL has no fragment\n When the person selects another panel twice then uses Back and Forward\n Then one Back restores the default panel, Forward restores the selected panel and focus remains usable even if its former panel closes\n\n Scenario: TABS-P2-10 — The person uses forced colours, narrow width and enlarged text in separate runs\n Given focus and selection can occupy different tabs\n When the person uses forced colours, narrow width and enlarged text in separate runs\n Then labels remain readable, focus and selection distinguishable and the visible orientation matches the keyboard commands\n\n Scenario: TABS-HISTORY-11 — Follow a link outside the tab set\n Given the second panel is selected\n When the person follows a same-page link to a heading outside the tab set\n Then the browser reaches that heading and the second panel remains selected\n\n```\n\nScenario IDs map to the following checks in scenario order. TABS-P2-01 → CTL-167, CTL-169 · TABS-P2-02 → PRACTICE-KEY-01 · TABS-P2-03 → Cosmos standard tabs · TABS-P2-04 → Cosmos standard tabs · TABS-P2-05 → PRACTICE-KEY-01 · TABS-P2-06 → Supplied Test Case 1 · TABS-P2-07 → CTL-168, PRACTICE-PE-01 · TABS-P2-08 → Cosmos direct links · TABS-P2-09 → Cosmos history check · TABS-P2-10 → CTL-004, Supplied Test Cases 4 and 5.\n\n## B. Retrieval pack\n\n| Retrieve | Question or decision |\n| --- | --- |\n| [Owning guide, recommended behaviour](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Tabs.md#recommended-behaviour) | Which focus, feedback and recovery decisions apply to this variant? |\n| [Original implementation](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Tabs.md#reference-implementation) | Which details belong to the illustrative markup? The supplied focus procedure expects focus in the panel. Applying it to standard tabs would make arrow exploration stop after activation. Use that procedure only for the existing panel-focus model. Standard horizontal tabs use Left and Right, vertical tabs Up and Down. Home and End are optional. Automatic activation needs confirmation with actual panel latency. |\n| [Contract template](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Component%20Semantics%20Contract.md#contract-template) | Which states, transitions and evidence fields must travel with the implementation? |\n| [Pinned matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/testing-matrix/Design%20Patterns.md#L21) | Which canonical IDs apply and which outcomes require the owning guide? |\n| [Client-side Routing](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Client-side%20Routing.md#back-and-forward) | Restore selection when browser history changes. |\n| [Progressive Enhancement](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/Progressive%20Enhancement.md#implementation) | Choose when to replace ordinary links with widget semantics. |\n| [PRACTICE-KEY-01](https://github.com/Double-FW/QA_Accessibility_Testing/blob/9cddf3a1ed3def130ff78bcc4592d5cc49b0c2ca/Accessibility_ACT-Style_Test_System.md#L651) | Exercise the complete keyboard route. |\n| [PRACTICE-PE-01](https://github.com/Double-FW/QA_Accessibility_Testing/blob/9cddf3a1ed3def130ff78bcc4592d5cc49b0c2ca/Accessibility_ACT-Style_Test_System.md#L699) | Check the core task without enhancement. |\n| [ARIA required owned elements (bc4a75)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/bc4a75.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [Element with role attribute has required states and properties (4e8ab6)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/4e8ab6.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [Element with aria-hidden has no content in sequential focus navigation (6cfa84)](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/w3c-act/6cfa84.md) | Formal W3C ACT rule, proposed in the baseline. Apply its applicability and expectation only to matching elements. |\n| [WHATWG HTML Living Standard](https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid) | Checked 28 November 2026. HTML fragment navigation. The tab keyboard model is a Cosmos choice based on APG. |\n| [APG tabs keyboard interaction](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/) | Compare automatic and manual interaction when choosing the standard variant. |\n\n## C. Verification plan\n\nRun each row from its Given state using its When action. Compare with the complete Then outcome. Record method and executor separately. Each row starts as **not run** for the host.\n\n| Scenario | Existing coverage | Applicability and method | Expected result | Evidence |\n| --- | --- | --- | --- | --- |\n| TABS-P2-01 | CTL-167, CTL-169 | Automated. Run when an enhanced named tablist has two or more labelled tabs. | Only its associated labelled panel is exposed, only that tab is selected and the other panels and their controls leave the reading and tab sequences. | Browser assertion trace with before and after state. |\n| TABS-P2-02 | PRACTICE-KEY-01 | Automated. Run when focus has entered a standard manual tablist on its selected tab. | Focus wraps to the first tab, selection waits for activation and focus stays on that tab. | Browser assertion trace with before and after state. |\n| TABS-P2-03 | Cosmos standard tabs | Human judgement. Run when a standard automatically activated tablist has immediate panels. | Selection follows focus and the matching content appears without interrupting exploration. | Participant or tester observation, task result and supported environment. |\n| TABS-P2-04 | Cosmos standard tabs | Automated. Run when a vertical tablist exposes vertical orientation. | Focus wraps in the corresponding direction under the declared activation policy. | Browser assertion trace with before and after state. |\n| TABS-P2-05 | PRACTICE-KEY-01 | Automated. Run when manual arrow navigation has left focus on an unselected tab. | Tab reaches the active panel start or its first meaningful control and reverse entry returns to the selected tab. | Browser assertion trace with before and after state. |\n| TABS-P2-06 | Supplied Test Case 1 | Automated. Run when an existing panel-focus variant exposes each tab in the Tab sequence. | Focus moves to its named panel outside the tab sequence, tab continues into or after the content and shift+tab from the panel returns to the list. | Browser assertion trace with before and after state. |\n| TABS-P2-07 | CTL-168, PRACTICE-PE-01 | Automated. Run when scripts are blocked or enhancement fails before initialisation. | All headed sections remain visible and each link reaches its destination without tab roles. | Browser assertion trace with before and after state. |\n| TABS-P2-08 | Cosmos direct links | Automated. Run when a URL identifies a panel or a descendant in it. | The matching panel opens before its target is reached, on fresh load an unrelated fragment keeps its own destination and an unmatched target leaves the first panel selected. | Browser assertion trace with before and after state. |\n| TABS-P2-09 | Cosmos history check | Automated. Run when selection updates history and the initial URL has no fragment. | One back restores the default panel, forward restores the selected panel and focus remains usable even if its former panel closes. | Browser assertion trace with before and after state. |\n| TABS-P2-10 | CTL-004, Supplied Test Cases 4 and 5 | Human judgement. Run when focus and selection can occupy different tabs. | Labels remain readable, focus and selection distinguishable and the visible orientation matches the keyboard commands. | Participant or tester observation, task result and supported environment. |\n\nUse the [manual procedures](https://github.com/Double-FW/Cosmos-UX-Design/blob/4925821776bbea3a5d837fac212581442a8c99e6/qa/supplied/tabs.md) to assess panel discovery by speech, screen reader browsing, forced colours and layout. Apply panel-focus expectations only to the maintained variant. These are Cosmos or supplied checks. The proposed W3C ACT rules above cover narrower element-level expectations.\n\n## D. Definition of done\n\nAccept a variant when the rendered contract matches every applicable transition, the host tests pass and the human evaluations record successful task completion. Record build, input, browser, device, assistive technology, observed outcome and evidence per scenario. Give a reason for every not applicable, not run or cannot tell result. A fail needs correction and retest. An applicable not run or cannot tell result leaves acceptance open.\n\nConfirm the chosen keyboard model with real panel content, history integration and real latency for automatic activation. Ask a person using a supported screen reader to find a panel and return.\n\nTABS-HISTORY-11 uses the Cosmos direct-link procedure. Record the selected tab and fragment destination before and after following the link.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Tabs.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Tabs.md","source_start_line":1,"source_end_line":116,"source_document_sha256":"e722b610c6afc21f52b1ae641dd9520527f42c0efddd9b745a1d7f53d3be1de1","text_sha256":"e722b610c6afc21f52b1ae641dd9520527f42c0efddd9b745a1d7f53d3be1de1","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-tooltips","title":"Tooltips","text":"---\ntitle: \"Build Tooltips\"\ndescription: \"Specify and verify the Tooltips pattern in the host interface.\"\n---\n\n# Build Tooltips\n\n## Standalone build prompt\n\nBuild Tooltips to provide brief, non-interactive supplementary information without hiding labels. A tooltip is a brief, non-interactive text description associated with a trigger. It can appear when a person points to the trigger or moves keyboard focus to it. It does not take focus and cannot contain controls, links, forms or other content that a person needs to operate.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L22) to select additional checks.\n\n```gherkin\nFeature: Tooltips\n\n @TOOLTIPS-01\n Scenario: Neither tooltip is visible or encountered as a separate item\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: Load the page with the pointer and keyboard focus away from both triggers. Browse the page with a screen reader and check its separate reading order.\n Then Neither tooltip is visible or encountered as a separate item. Trigger names and essential information remain available.\n\n @TOOLTIPS-02\n Scenario: The trigger keeps its own name and is associated with the supplemental description\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: In separate runs, Tab to the trigger and reach it with the screen reader’s browse cursor if supported. Listen and inspect the trigger’s computed name and description.\n Then The trigger keeps its own name and is associated with the supplemental description. Verify that the description is available using the supported screen reader’s normal reading or focus commands. Browse-cursor navigation may expose the description without opening the visual tooltip.\n\n @TOOLTIPS-03\n Scenario: The tooltip opens, stays visible over either area without timing out, and closes when the pointer leaves both\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: With focus elsewhere, hover the trigger. Move the pointer onto the tooltip and back, pause to read it, then move away from both.\n Then The tooltip opens, stays visible over either area without timing out, and closes when the pointer leaves both.\n\n @TOOLTIPS-04\n Scenario: The tooltip opens on focus\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: With the pointer away, Tab to the trigger. Press Escape while it has focus, wait, then Tab away. Repeat without pressing Escape.\n Then The tooltip opens on focus. Escape closes it without moving focus or reopening it while focus stays put. Moving focus away closes an open tooltip. Tab does not stop on the tooltip or its contents.\n\n @TOOLTIPS-05\n Scenario: The tooltip stays visible while focus still calls for it\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: Focus a trigger and then hover it. Move the pointer away while keeping focus there. In a separate run, hover the trigger with focus elsewhere and press Escape without moving the pointer.\n Then The tooltip stays visible while focus still calls for it. Escape dismisses the hovered tooltip without moving the pointer or focus, and the tooltip stays closed until the opening condition changes.\n\n @TOOLTIPS-06\n Scenario: When the second tooltip opens, it replaces the first\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: Keep focus on the first trigger while hovering the second. Repeat by hovering the first trigger and using the keyboard to focus the second.\n Then When the second tooltip opens, it replaces the first. Keyboard focus remains where the person put it.\n\n @TOOLTIPS-07\n Scenario: The primary action works without an extra tap or gesture\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: On a touchscreen, tap a trigger with a primary action. If the product also shows a tooltip on touch, open it and tap outside, then repeat by activating another element. Test voice activation where supported.\n Then The primary action works without an extra tap or gesture. Any touch tooltip closes on outside tap or activation of another element. Supplemental information that matters has a usable route.\n\n @TOOLTIPS-08\n Scenario: While its opening condition holds, the tooltip stays associated with its trigger and its text remains readable without clipping or\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: Open a tooltip and check it after scrolling, zooming, resizing and rotating the supported viewport. Check enlarged text and line spacing separately.\n Then While its opening condition holds, the tooltip stays associated with its trigger and its text remains readable without clipping or overlap.\n\n @TOOLTIPS-09\n Scenario: Text meets the contrast thresholds in Recommended layout\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: Measure text contrast in the default theme and other supported themes. Repeat the visual checks in forced colours and with reduced motion.\n Then Text meets the contrast thresholds in Recommended layout. Text and any essential boundary remain distinguishable in forced colours, and the tooltip works without non-essential animation.\n\n @TOOLTIPS-10\n Scenario: The control’s name and all essential task information remain available\n Given the host offers the applicable Tooltips variant\n When the tester follows this procedure: Disable scripts or the enhancement where feasible.\n Then The control’s name and all essential task information remain available.\n```\n\n## Retrieval pack\n\n- [Markup](../Tooltips.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Tooltips.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Tooltips.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Tooltips.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Tooltips.md#sources) — check the scope of each technical claim.\n\n## Verification and acceptance\n\nRun Cosmos hover/focus, Escape, description, touch and layout cases and apply field-label checks only to a relevant field trigger. Automated checks can collect Computed description, focus, Escape and visibility. For agent-assisted review retain before and after observations. Human judgement: Can a participant discover supplemental information and use the trigger without needing the tooltip?\n\n- `TOOLTIPS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L87)\n- `TOOLTIPS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L88)\n- `TOOLTIPS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L89)\n- `TOOLTIPS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L90)\n- `TOOLTIPS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L91)\n- `TOOLTIPS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L92)\n- `TOOLTIPS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L93)\n- `TOOLTIPS-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L94)\n- `TOOLTIPS-09` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L95)\n- `TOOLTIPS-10` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/a1597c4e14cb8bac2755e6ab122f51c410f2620b/Tooltips.md#L96)\n\nThe imported procedures are preserved in the owning guide. Use this crosswalk when reading older trial records. Imported keyboard-focus and screen-reader browse commands have distinct expectations. The guide’s focus scenario governs visual opening.\n\n| Imported case | Build scenarios | Former step IDs |\n| --- | --- | --- |\n| 1 · Screen reader and hidden state | 01, 02 | 11–13 |\n| 2 · Mouse visibility | 03 | 14–16 |\n| 3 · Keyboard and Escape | 04, 05 | 17–19 |\n| 4 · Single tooltip | 06 | 20–22 |\n| 5 · Touch | 07 | 23–24 |\n| 6 · Contrast and visibility | 08, 09 | 25–27 |\n\nUse the [manual and ACT procedures](../Tooltips.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Tooltips.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Tooltips.md","source_start_line":1,"source_end_line":112,"source_document_sha256":"d6e6cca2214cd832b089cde6f34aa594e67a355feb231383a70c49061697973c","text_sha256":"d6e6cca2214cd832b089cde6f34aa594e67a355feb231383a70c49061697973c","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}
{"id":"doc-build-patterns-video-controls","title":"Video Controls","text":"---\ntitle: \"Build Video Controls\"\ndescription: \"Specify and verify the Video Controls pattern in the host interface.\"\n---\n\n# Build Video Controls\n\n## Standalone build prompt\n\nBuild Video Controls to make playback, seeking, captions and audio description operable. Help people start, pause and seek through a video, control its sound and reach the available access services. Start with native browser controls. If you build a custom player, keep its most-used actions easy to find and preserve access when the enhancement fails. Use Accessible Interactive Media Control for broader media interaction and input guidance.\n\nConfirm the supported variants, inputs, content and service dependencies. Before coding complete the [component semantics contract](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Component%20Semantics%20Contract.md#contract-template). Record focus, reading order, state transitions, feedback, fallback and recovery. For a journey record each step, retained information and who owns the return route. Prefer native HTML when it supplies the required behaviour. Deliver the build, the contract reconciled with its rendered output, and evidence for each applicable scenario. Use the [QA matrix row](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/testing-matrix/Design%20Patterns.md#L30) to select additional checks.\n\n```gherkin\nFeature: Video Controls\n\n @VIDEO-CONTROLS-01\n Scenario: Native controls remain usable when media loads\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: Block scripts and reload. Repeat with an enhancement failure. Simulate an unavailable media source.\n Then Native controls remain usable when media loads. A media error is clear and any supplied alternative stays reachable. Uninitialised controls do not appear.\n\n @VIDEO-CONTROLS-02\n Scenario: Play/Pause comes first and Mute/Unmute comes next where present\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: Tab into the custom controls, start and pause playback, mute and unmute, then let playback end. Where available, change state using platform controls as well.\n Then Play/Pause comes first and Mute/Unmute comes next where present. The control label, accessible name, icon and playback state agree. The final playback action is Play. Focus remains visible and can leave the player.\n\n @VIDEO-CONTROLS-03\n Scenario: On/off controls for available services are easy to find\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: Enable and disable captions and audio description. Check alternate tracks or the described version if provided.\n Then On/off controls for available services are easy to find. The selected state agrees with what is shown or heard. Captions are legible, synchronised and clear of the controls.\n\n @VIDEO-CONTROLS-04\n Scenario: The video moves to the requested position within the available range\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: Seek by keyboard, touch and pointer. With a screen reader, check the value before and after seeking, and listen during normal playback.\n Then The video moves to the requested position within the available range. Visible and accessible elapsed time and duration agree. Continuous playback does not create repeated live announcements.\n\n @VIDEO-CONTROLS-05\n Scenario: Controls can be revealed without hover\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: Wait for controls to fade, then return to the player by keyboard and touch. Enable forced colours and repeat. Check enlarged text and narrow layouts separately.\n Then Controls can be revealed without hover. Focused controls stay visible. Labels, states, slider parts and focus remain distinguishable and targets stay usable.\n\n @VIDEO-CONTROLS-06\n Scenario: The video stays paused and silent until Play is activated\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: With autoplay off, load the page, move the pointer across the video, Tab into its controls and scroll it out of view and back. Then activate Play.\n Then The video stays paused and silent until Play is activated. Playback starts and the control reflects its state.\n\n @VIDEO-CONTROLS-07\n Scenario: Opted-in playback starts muted\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: If opt-in autoplay is supported, enable it and reload. Pause the video, move focus away and scroll away and back. Turn autoplay off and reload. In a separate run, reload with reduced motion enabled.\n Then Opted-in playback starts muted. A paused video stays paused during navigation within the page. Turning autoplay off or enabling reduced motion prevents automatic starts on load. The Play control remains usable for informational video.\n\n @VIDEO-CONTROLS-08\n Scenario: The default is one play-through\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: Let a clip finish with loop and auto-next off. Where those options exist, test them separately. Pause near the end or during any auto-next countdown. Turn auto-next off, navigate to another video and let it finish.\n Then The default is one play-through. Each opted-in mode behaves as labelled. Pausing cancels any pending start. The next item waits for activation after opt-out, and focus remains usable throughout.\n\n @VIDEO-CONTROLS-09\n Scenario: Feedback is perceivable, controls reflect the actual state and the available recovery action is clear\n Given the host offers the applicable Video Controls variant\n When the tester follows this procedure: Interrupt playback or seek with buffering, then simulate a playback failure.\n Then Feedback is perceivable, controls reflect the actual state and the available recovery action is clear.\n```\n\n## Retrieval pack\n\n- [Markup](../Video%20Controls.md#recommended-markup) — which structure and relationships does the variant need?\n- [Layout](../Video%20Controls.md#recommended-layout) — which visual states and reading order need to survive display changes?\n- [Behaviour](../Video%20Controls.md#recommended-behaviour) — which transitions apply to this host?\n- [Original example](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#reference-implementation) — inspect dependencies and starting state when translating the example.\n- [Sources](../Video%20Controls.md#sources) — check the scope of each technical claim.\n\n### Variant and interaction decisions\n\n- [Playback and sound](../Video%20Controls.md#playback-and-sound)\n- [Looping and playing the next video](../Video%20Controls.md#looping-and-playing-the-next-video)\n- [Seek through the video](../Video%20Controls.md#seek-through-the-video)\n\n## Verification and acceptance\n\nStart, pause, seek and change tracks and verify fallback, captions and relevant visual information. Automated checks can collect Playback state, current time and track presence. For agent-assisted review retain before and after observations. Human judgement: Can the person find and retain control of playback and access the media’s meaning?\n\n- `VIDEO-CONTROLS-01` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L108)\n- `VIDEO-CONTROLS-02` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L109)\n- `VIDEO-CONTROLS-03` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L110)\n- `VIDEO-CONTROLS-04` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L111)\n- `VIDEO-CONTROLS-05` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L112)\n- `VIDEO-CONTROLS-06` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L113)\n- `VIDEO-CONTROLS-07` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L114)\n- `VIDEO-CONTROLS-08` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L115)\n- `VIDEO-CONTROLS-09` · [Guide procedure and expected result](https://github.com/Double-FW/Cosmos-UX-Design/blob/6195ccd6b7c30e7ebf35eef7357aaedd11f8e068/Video%20Controls.md#L116)\n\nUse the [manual and ACT procedures](../Video%20Controls.md#testing-approach-and-act-scripts) within their stated applicability. Record pass, fail, not applicable, not run or cannot tell for each outcome, with environment and evidence.\n","record_type":"full_document","source_repository":"Double-FW/Cosmos-UX-Design","source_path":"build-patterns/Video Controls.md","source_commit":"7bfb3928c73b1bdae7147d89aeb0a06180ea1350","source_url":"https://github.com/Double-FW/Cosmos-UX-Design/blob/7bfb3928c73b1bdae7147d89aeb0a06180ea1350/build-patterns/Video%20Controls.md","source_start_line":1,"source_end_line":100,"source_document_sha256":"59691fc740d998f13a94e5e1e9f33984453ff55630fde16e72d2cc62b71b55f9","text_sha256":"59691fc740d998f13a94e5e1e9f33984453ff55630fde16e72d2cc62b71b55f9","heading_path":[],"declared_source_license":"MIT","repository_license":"MIT","dataset_version":"1.0.0","source_commit_date":"2026-11-29","language":"en-GB","review_status":"Consult the source text; the exporter does not infer approval."}