polishup-cli 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.opencode/commands/polishup.md +6 -0
  2. package/LICENSE +21 -0
  3. package/README.md +177 -3
  4. package/cli/hosts.mjs +171 -0
  5. package/cli/index.mjs +256 -0
  6. package/cli/installations.mjs +300 -0
  7. package/cli/update.mjs +57 -0
  8. package/package.json +53 -6
  9. package/skills/polishup/LICENSE.txt +21 -0
  10. package/skills/polishup/SKILL.md +84 -0
  11. package/skills/polishup/references/code/implementation.md +43 -0
  12. package/skills/polishup/references/code/index.md +13 -0
  13. package/skills/polishup/references/code/rules.md +24 -0
  14. package/skills/polishup/references/colors.md +65 -0
  15. package/skills/polishup/references/research.md +50 -0
  16. package/skills/polishup/references/tools.md +57 -0
  17. package/skills/polishup/references/ui-ux/accessibility.md +136 -0
  18. package/skills/polishup/references/ui-ux/art-direction.md +127 -0
  19. package/skills/polishup/references/ui-ux/audio-and-video.md +121 -0
  20. package/skills/polishup/references/ui-ux/data-visualization.md +130 -0
  21. package/skills/polishup/references/ui-ux/design-ethics.md +98 -0
  22. package/skills/polishup/references/ui-ux/design-evaluation.md +123 -0
  23. package/skills/polishup/references/ui-ux/design-systems.md +110 -0
  24. package/skills/polishup/references/ui-ux/foundations.md +23 -0
  25. package/skills/polishup/references/ui-ux/index.md +29 -0
  26. package/skills/polishup/references/ui-ux/information-architecture.md +132 -0
  27. package/skills/polishup/references/ui-ux/interaction-design.md +155 -0
  28. package/skills/polishup/references/ui-ux/motion-design.md +110 -0
  29. package/skills/polishup/references/ui-ux/performance.md +109 -0
  30. package/skills/polishup/references/ui-ux/responsive-design.md +98 -0
  31. package/skills/polishup/references/ui-ux/rules.md +36 -0
  32. package/skills/polishup/references/ui-ux/ux-research.md +110 -0
  33. package/skills/polishup/references/ui-ux/visual-design.md +147 -0
  34. package/skills/polishup/references/writing/accessibility-and-inclusion.md +57 -0
  35. package/skills/polishup/references/writing/content-and-evidence.md +83 -0
  36. package/skills/polishup/references/writing/content-structure.md +94 -0
  37. package/skills/polishup/references/writing/foundations.md +19 -0
  38. package/skills/polishup/references/writing/index.md +17 -0
  39. package/skills/polishup/references/writing/language-and-style.md +83 -0
  40. package/skills/polishup/references/writing/multilingual-writing.md +51 -0
  41. package/skills/polishup/references/writing/purpose-audience-context.md +72 -0
  42. package/skills/polishup/references/writing/review-and-revision.md +81 -0
  43. package/skills/polishup/references/writing/rules.md +26 -0
  44. package/skills/polishup/references/writing/voice-and-tone.md +72 -0
  45. package/skills/polishup/scripts/NOTICE.txt +27 -0
  46. package/skills/polishup/scripts/color.mjs +5626 -0
@@ -0,0 +1,132 @@
1
+ # Information Architecture
2
+
3
+ Use to organize information and capabilities, select navigation, sequence work, or diagnose findability and continuity. Preserve effective structures; a navigation edit does not require rebuilding the product architecture.
4
+
5
+ ## Map content and tasks
6
+
7
+ Reuse established goals and constraints. For an unfamiliar collection, inspect representative real content, core objects, attributes, relationships, ownership, tasks, and exceptions within the affected area.
8
+
9
+ Distinguish:
10
+
11
+ - **Information architecture:** what exists, what it means, and how it relates.
12
+ - **Navigation:** routes for discovering and moving between destinations.
13
+ - **Task flow:** actions, dependencies, alternatives, and continuation toward an outcome.
14
+
15
+ A sitemap is not a task flow; a sidebar is not the architecture. Include relevant cross-person or external handoffs without requiring a complete journey map.
16
+
17
+ Make consequential scope differences visible, such as changing one project versus the whole workspace. Investigate mismatches with user expectations rather than silently copying them or declaring them wrong.
18
+
19
+ ## Group and prioritize information
20
+
21
+ Organize by useful relationships: subject, object, task, stage, time, location, or audience. Use hierarchies for parent-child relationships, facets for independent attributes such as status or owner, and contextual links for related items across groups.
22
+
23
+ Keep sibling categories distinguishable. Hybrid schemes can work when their sections and meanings remain clear. Role-based entries help only when people recognize their role and can handle overlapping roles. Internal departments are useful categories only if they match how users seek information.
24
+
25
+ Prioritize by importance, consequence, frequency, sequence, and affected groups. Rare emergency or recovery paths may need prominence; stakeholder ownership does not automatically justify primary navigation.
26
+
27
+ Keep names and meanings stable. Cross-links or aliases can support several plausible entry points while retaining one maintained resource. Avoid cross-listing everything until categories lose meaning.
28
+
29
+ **Check:** Can intended users predict where representative items belong? Investigate items fitting nowhere or everywhere. A structure requiring the designer's explanation needs clearer distinctions or available context.
30
+
31
+ ## Balance navigation breadth and depth
32
+
33
+ Information scent means the clues that help users predict a destination, such as labels, descriptions, and recognizable images. Make these clues match what users will find. “Resources” can fit a small familiar site; a developer portal may need “API reference” and “Setup guides.”
34
+
35
+ Flattening exposes choices but increases scanning. Extra levels reduce local clutter but add categorical decisions and recovery effort. Assess understanding, route choice, arrival, correction, and completion together.
36
+
37
+ Do not impose a three-click rule, a fixed menu-item count, or a memory-based maximum depth. Hiding choices may transfer effort from scanning to discovery and recall. A cleaner screenshot does not establish lower cognitive load.
38
+
39
+ ## Choose navigation by scope and movement
40
+
41
+ | Need | Candidate approach | Check |
42
+ | --- | --- | --- |
43
+ | Move among major product areas | Persistent primary destinations | Content-space cost and priority |
44
+ | Explore a substantial section | Local navigation, overview, grouped submenu | Scope is clear rather than duplicating primary navigation |
45
+ | Move from an object to related work | Contextual routes | Discovery from other entry points remains possible |
46
+ | Understand containment | Breadcrumbs or another location cue | Hierarchy is real; this is not the only navigation |
47
+ | Find a specific resource in a large collection | Search with suitable browsing and filters | Scope and result distinctions are understandable |
48
+ | Complete dependent decisions | Guided sequence | Order has a purpose; comparison and revision remain possible |
49
+ | Complete independent or recurring work | Task overview or workspace | Prerequisites and completion states are clear |
50
+
51
+ Retain useful project and platform conventions. A small page may need only section links; a large product may combine several scopes.
52
+
53
+ Support arrival through notifications, search, saved links, and shared resources. Identify the destination, relevant object or workspace, and useful next routes. Handle missing prerequisites, changed permissions, or unavailable resources without an unrelated restart.
54
+
55
+ Distinguish a destination from an action and an account/workspace switch from movement within it. Breadcrumbs describe containment; browser Back retraces visits; “Back to results” should restore relevant result context. They need not lead to the same place.
56
+
57
+ ## Integrate browsing, search, and refinement
58
+
59
+ Support the current information-seeking task rather than classifying people permanently as search or browse users. Known-item lookup may favor search; learning available options may need categories and comparison.
60
+
61
+ Use facets for meaningful, sufficiently reliable attributes. A facet defines a dimension, a filter constrains the set, and sorting changes its order. Avoid creating nested categories for every attribute combination.
62
+
63
+ Show the relevant query, collection or workspace, restrictions, and ordering. Distinguish global from within-collection search. Allow broadening the query or removing constraints without restarting. Scope changes should not silently preserve incompatible restrictions or discard useful ones.
64
+
65
+ Explain filter combinations when they affect results. Selecting two statuses might include either status, while an owner filter narrows both. Choose AND or OR for the intended task. Update results immediately when useful; costly queries or dependent filters may justify an Apply action.
66
+
67
+ Results need enough information to judge relevance and distinguish similar items. For no matches, preserve the query and offer a route to broaden it. Distinguish no matches, unavailable data, and failed search. [Baymard's applied-filter guidance](https://baymard.com/research-articles/how-to-design-applied-filters) illustrates scope visibility in ecommerce; adapt the principle without adding a filter sidebar to every list.
68
+
69
+ ## Sequence work around dependencies and meaningful stages
70
+
71
+ Identify entry, decisions, dependencies, alternative paths, completion, and consequential exceptions. Put prerequisite information before the decisions needing it. Keep necessary comparisons available.
72
+
73
+ | A single page or workspace can fit when | A staged flow can fit when |
74
+ | --- | --- |
75
+ | Related inputs need frequent comparison or repeated editing | Earlier answers determine later branches |
76
+ | People need overview and flexible order | Coherent groups reduce simultaneous demands |
77
+ | Short work remains understandable in one place | Long work benefits from checkpoints and supported resumption |
78
+
79
+ A crowded page can hide priorities; unnecessary stages can hide context and increase revision effort. Independent sections may fit an overview better than a rigid wizard. Choose by content, effort, dependencies, recovery, and device constraints, not screen count or frontend architecture.
80
+
81
+ For linear work, distinguish completed, current, remaining, and optional stages. For branching work, do not promise a fixed remaining count that answers can change. The indicator need not be navigation.
82
+
83
+ Allow appropriate revision. Explain when an answer invalidates dependent work; preserve unaffected sections and identify the next required action. Distinguish final submission from saving a draft or proceeding.
84
+
85
+ ## Preserve context and return paths
86
+
87
+ Define the return path as well as the forward path. Preserve task-relevant object, query, filters, ordering, position, draft, and decisions when viewing details, seeking help, authenticating, or returning later.
88
+
89
+ Restore relevant context where supported. If a resource, permission, price, or dependency changed, identify what needs attention rather than presenting stale work as current.
90
+
91
+ Make saved versus submitted work and the next unfinished action clear. Specify persistence, expiry, authorization, and re-entry needs without promising unsupported saving or retaining sensitive data indefinitely.
92
+
93
+ For external payment or approval, handle users leaving, not returning, returning later, and finding a pending or failed result. Restoring navigation must not repeat a payment or approval.
94
+
95
+ ## Plan progressive disclosure
96
+
97
+ Keep necessary information available now; defer supporting detail or uncommon options when people can recognize how to access them.
98
+
99
+ Do not conceal material prices, prerequisites, essential comparison attributes, or necessary recovery paths to simplify appearance. If comparison requires repeatedly opening several groups, consider an overview, parallel presentation, or persistent summary. Preserve context and a clear return from deeper routes.
100
+
101
+ ## Check navigation and task flows
102
+
103
+ | Question | Useful check | Limit |
104
+ | --- | --- | --- |
105
+ | Do groupings match expectations? | Card sorting with open or supplied categories as appropriate | Associations do not determine priority or prove findability |
106
+ | Can people predict a route? | Tree testing with realistic tasks and acceptable destinations | Omits visual cues, search, content, and contextual links |
107
+ | Can people use the actual presentation? | Task sessions with the relevant prototype or product | First click or preference alone does not prove completion |
108
+ | Where do current routes fail? | Search logs, paths, support reports, targeted observation | Backtracking and drop-off do not establish causes |
109
+ | Does the flow preserve work? | Trace a branch, correction, detour, and resumption | Diagrams cannot verify implemented persistence |
110
+
111
+ [NN/g's card-sorting and tree-testing comparison](https://www.nngroup.com/articles/card-sorting-tree-testing-differences/) explains their distinct purposes. A simple text tree can answer a focused question without specialist tooling.
112
+
113
+ Use goal-based tasks without revealing the category label. Include plausible ambiguity and consequential cases. Accept several valid routes when the product supports them.
114
+
115
+ Evaluate destination accuracy, route choices, backtracking, effort, and confidence together. A direct route to the wrong destination fails; backtracking may reflect comparison. Use equivalent tasks and relevant participants when comparing designs, accounting for learning and test order. No score band or participant count fits every study.
116
+
117
+ ### Standards relevant to this scope
118
+
119
+ For web work targeting [WCAG 2.2](https://www.w3.org/TR/WCAG22/):
120
+
121
+ - **2.4.5 Multiple Ways, AA:** provide more than one way to locate pages in a set, except pages resulting from or forming a process step. It does not require search on every interface.
122
+ - **3.2.3 Consistent Navigation, AA:** repeated navigation retains relative order unless the user initiates a change. Presentation can adapt to viewport size.
123
+ - **3.3.7 Redundant Entry, A:** information already entered or provided and required again in the same process is auto-populated or selectable, except essential re-entry, content security, or invalid information. This does not require cross-session draft storage.
124
+ - **2.4.8 Location, AAA:** location information is available within a page set. Breadcrumbs are one technique, not a universal AA requirement.
125
+
126
+ A tree test or successful task session does not establish conformance.
127
+
128
+ ## Keep responsibilities distinct
129
+
130
+ Use [UX Research](ux-research.md#choose-research-methods) for unresolved needs and research selection; [Interaction Design](interaction-design.md) for controls, feedback, validation, and recovery; [Responsive Design](responsive-design.md) for changing presentation; and [Data Visualization](data-visualization.md) for data-specific exploration.
131
+
132
+ [Content Structure](../writing/content-structure.md) concerns explanation within content; [Language & Style](../writing/language-and-style.md) concerns expression. Engineering implements routing, retrieval, persistence, and permission enforcement. Specify the experience without claiming uninspected implementation behavior.
@@ -0,0 +1,155 @@
1
+ # Interaction Design
2
+
3
+ Use for controls, action scope, states, validation, feedback, recovery, and interruptions. [Performance](performance.md) develops waiting and delivery; [Information Architecture](information-architecture.md) develops destinations and task sequence.
4
+
5
+ ## Contents
6
+
7
+ - [Actions and consequences](#define-actions-and-consequences), [controls](#make-controls-recognizable), and [priority](#set-action-priority)
8
+ - [States](#define-relevant-states) and [feedback](#give-accurate-feedback)
9
+ - [Validation](#prevent-errors-and-validate-input) and [recovery](#provide-useful-recovery)
10
+ - [Safe retries](#retry-without-duplicating-consequences) and [cancel, undo, and compensation](#distinguish-cancel-undo-and-compensation)
11
+ - [Notifications and confirmations](#choose-notifications-and-confirmations), [background work](#keep-complex-and-background-work-understandable)
12
+ - [Behavior checks](#check-interaction-behavior) and [accessibility requirements](#accessibility-requirements-and-pattern-guidance)
13
+
14
+ ## Define actions and consequences
15
+
16
+ For actions with important consequences, define the purpose, affected items, availability, when the action takes effect, and how completion is confirmed. Distinguish selecting, previewing, applying, saving, submitting, and publishing. Immediate settings, saved drafts, and external actions need different feedback.
17
+
18
+ Make scope clear before commitment: one record, a workspace, selected items, or all matching results. An accepted request may still be running. Transfer can finish before processing; local saving can precede synchronization. Say when the outcome is unknown.
19
+
20
+ ## Make controls recognizable
21
+
22
+ Match labels, shape, placement, and state to the actual behavior. A clickable-looking surface must offer the expected action. Map controls to the correct target; a row control must not silently affect another row or a shared setting.
23
+
24
+ | Decision | Starting choice | Check |
25
+ | --- | --- | --- |
26
+ | Navigate | Link or established navigation control | Predictable destination |
27
+ | Execute | Button or established action control | Clear target and consequence |
28
+ | Choose one option | Radio group or single-selection picker | Visible comparison versus space and hidden choices |
29
+ | Choose independent options | Checkboxes or multi-selection | Selection remains separate from execution; mixed states are accurate |
30
+ | Change a setting | Switch or established two-state control | Current state and save timing; accurate rollback after failure |
31
+ | Find a value in a large/changing set | Searchable selection | Recognizable values without exact internal names |
32
+ | Set a quantity | Direct entry, stepper, or range control | Precision, limits, units, and usable alternatives |
33
+ | Manipulate directly | Dragging or gestures when useful | Discoverability, scope, accidental activation, and alternatives |
34
+
35
+ Keep focus, hover, selection, and commitment distinct. Do not make required actions available only through hover, hidden gestures, or shortcuts. Retain discoverable paths while adding accelerators for experienced users when useful. A cue being noticed does not establish that its meaning is understood.
36
+
37
+ ### Set action priority
38
+
39
+ Use the project's supported button hierarchy to distinguish the main action from supporting or routine actions. A toolbar or repeated record list may need low-emphasis controls rather than a prominent button for every action. Communicate destructive consequences without making every destructive option the dominant action. [Carbon's button guidance](https://www.carbondesignsystem.com/building-blocks/core/components/button/guidelines) explains emphasis and variants; its secondary-button semantics, placement, and action counts are system conventions, not universal rules.
40
+
41
+ Keep equivalent actions predictably labeled and sized within their context. Use a label that states the actual outcome; let it wrap or choose a supported layout when necessary rather than removing essential meaning. Add an icon only when it improves recognition. A different input mode, density, or task importance can justify a supported size or emphasis variation.
42
+
43
+ Use concise labels that distinguish actions in their visible and accessible context. A conventional label such as Continue can work when the next step is clear; replace generic wording when distinct destinations or consequences are otherwise unclear. Keep helper text for constraints, formats, prerequisites, or recovery, and remove text that only repeats the label. Preserve needed labels and accessible descriptions. Use [Writing](../writing/index.md) for substantive wording or tone decisions.
44
+
45
+ ## Define relevant states
46
+
47
+ Choose the distinctions relevant to this task. States can coexist; refreshing one panel need not replace the entire screen with loading.
48
+
49
+ | Situation | Communicate |
50
+ | --- | --- |
51
+ | Initial loading | What is being prepared and what remains available |
52
+ | Refresh | Existing usable content, update scope, and freshness |
53
+ | Empty collection | Why no items exist and a relevant permitted next action |
54
+ | No results | Query or filters and a way to broaden them |
55
+ | Queued/running/waiting | Actual stage and useful available actions |
56
+ | Confirmed success | What completed, at which scope |
57
+ | Failure/invalid input | Affected work, retained input, and useful correction or recovery |
58
+ | Partial outcome | Completed, failed, pending, or skipped items separately |
59
+ | Disabled/read-only | Unavailable capability and a useful reason or prerequisite |
60
+ | Permission/session problem | Access or authentication issue and a permitted next step |
61
+ | Offline/unsynchronized | Local, cached, queued, and unconfirmed work |
62
+ | Stale/conflicting content | What changed and how to review or resolve it |
63
+
64
+ Do not treat unloaded content as empty, filtered results as the entire collection, or a connection loss as confirmed transaction failure. Do not conceal protected content through an explanation. A read-only record can still contain useful information.
65
+
66
+ ## Give accurate feedback
67
+
68
+ Acknowledge meaningful input promptly; distinguish receipt, pending work, and completion. Keep safe unaffected content usable. Scope blocking to the actual dependency, and preserve selection and context during updates.
69
+
70
+ Make feedback available through relevant access modes, not only color, sound, animation, or a transient visual change. Associate messages with their task. Do not repeatedly move focus or announce every small update.
71
+
72
+ An optimistic update shows the expected result before server confirmation. Use it for low-risk, reversible actions only when failure can be handled. Define pending feedback, rollback, retained input, and an explanation. Wait for confirmation when a false success could mislead an important decision. Progress measurement and waiting patterns belong in [Performance](performance.md).
73
+
74
+ ## Prevent errors and validate input
75
+
76
+ Expose important requirements before commitment. Distinguish required input, accept legitimate formats, and preserve meaningful names or identifiers when normalizing presentation.
77
+
78
+ Keep a field's purpose recognizable after entry. Prefer a persistent visible label; when context makes it redundant, retain an appropriate programmatic name. A placeholder alone is not a dependable label. Keep necessary units, formats, and help available rather than disappearing with input. [WAI's labeling guidance](https://www.w3.org/WAI/tutorials/forms/labels/) explains the distinction between visible context and accessible naming. Group related fields and keep labels clearly associated with their controls; choose widths for expected content without forcing users to guess missing information.
79
+
80
+ Validate when enough evidence exists: before submission, after a completed entry, or when a corrected error can be reassessed. An incomplete value during typing is not necessarily wrong. Check submission even when inline validation exists.
81
+
82
+ Update an error when reliably corrected. Re-evaluate dependent fields together, distinguish a pending remote check from valid/invalid, and prevent an older response from overriding newer input.
83
+
84
+ Place correctable errors near their controls. A summary can help locate multiple errors but does not replace local explanation. Preserve valid entries and useful focus. Explain what a positive check proves: valid syntax does not establish deliverability, authorization, or successful payment.
85
+
86
+ ## Provide useful recovery
87
+
88
+ Explain what is affected, what remains intact, and the useful next action. A service failure, expired session, forbidden action, invalid entry, and edit conflict need different recovery. Avoid unsupported causes, blame, or recovery-time promises.
89
+
90
+ Offer an action that can change the situation: correct input, reauthenticate, request access, inspect newer information, safely retry, or use an alternative/support route. A specialist may need diagnostic detail, but an opaque code is not the entire explanation.
91
+
92
+ ### Retry without duplicating consequences
93
+
94
+ For an unconfirmed consequential request, provide a way to check or reconcile its status before another commitment. Loss of payment confirmation does not establish a failed payment. [Safe-retry guidance](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/) explains the underlying uncertainty; Engineering must establish actual duplicate protection.
95
+
96
+ When automatic retries are supported, limit them, show waiting status, prevent overlapping submissions, and offer a stop or next action where feasible. Choose retry timing for the service. Disabling a button alone cannot guarantee that an action runs only once.
97
+
98
+ ### Distinguish cancel, undo, and compensation
99
+
100
+ - **Cancel:** request that unfinished work stop; it may arrive too late or leave completed portions.
101
+ - **Undo:** reverse a supported prior change within a defined scope and availability.
102
+ - **Compensation:** counter an effect with another action, such as a refund; it may take time or not restore every consequence.
103
+
104
+ Closing a dialog or dismissing a notice need not stop a job. Keep cancellation pending until confirmed. If completion came first, explain the outcome and remaining choices.
105
+
106
+ Undo must restore the relevant state, not just remove a message. Consider shared edits and dependencies. A fleeting toast may not provide sufficient time or a durable recovery route for the task.
107
+
108
+ ## Choose notifications and confirmations
109
+
110
+ Choose placement, persistence, and interruption by urgency, context, required action, and the cost of being missed.
111
+
112
+ | Need | Starting response |
113
+ | --- | --- |
114
+ | Correct local input | Nearby accessible guidance |
115
+ | Understand an ongoing condition | Persistent contextual status |
116
+ | Receive a routine result | Evident state change or nonblocking acknowledgment |
117
+ | Act later | Retrievable notification or status |
118
+ | Decide before safely proceeding | Focused blocking interaction when justified |
119
+
120
+ Dismissal does not resolve the condition. Group redundant low-urgency notices without hiding distinct important events.
121
+
122
+ Use a modal for a focused task or decision that justifies blocking the current view. Frequent work, long comparisons, or tasks needing background context may fit an inline region, panel, or page better. Scrolling alone does not make a modal wrong. [Carbon's modal guidance](https://www.carbondesignsystem.com/building-blocks/core/components/modal/guidelines) illustrates task and sizing choices; preserve focus, dismissal, return context, and access under the chosen pattern.
123
+
124
+ For destructive actions, expose affected objects, scope, cascading effects, and reversibility. Choose separation from routine actions, review, confirmation, or recovery according to risk. Repeated trivial confirmations can become automatic clicking. A confirmation should help detect mistakes; keep meaningful cancellation and avoid bundled promotion or misleading emphasis. Use [Design Ethics](design-ethics.md) for choice and pressure concerns.
125
+
126
+ ## Keep complex and background work understandable
127
+
128
+ Expose outcomes needed for decisions without reproducing every internal step. If work continues away from the view, provide a way to return to status and results. Clarify the effect of leaving, closing, canceling, and retrying.
129
+
130
+ Make bulk-selection scope explicit, including selections beyond the visible page or changing search results. Recheck important eligibility before commitment; a refresh must not silently broaden selection.
131
+
132
+ For example, "7 updated, 2 failed, 1 still running" describes a partial outcome when those counts are known. Identify affected items and allow retry or correction of that subset when supported. Do not repeat completed external actions.
133
+
134
+ Distinguish local edits, queued changes, remote confirmation, and conflicts. Promise persistence through closing or reauthentication only when supported. Reconnection can reveal changed data or permissions; it is not permission to replay everything.
135
+
136
+ ## Check interaction behavior
137
+
138
+ Exercise relevant alternatives: corrected input, repeated activation, delay, lost confirmation, denied access, partial completion, cancellation, and return. Check recognition, predictable scope, accepted versus completed work, recovery, and retained focus/input. A small control does not require every scenario.
139
+
140
+ Use actual behavior and relevant input/access modes when available. A screenshot cannot establish keyboard operation, live announcements, persistence, or recovery. For broader method choices use [Design Evaluation](design-evaluation.md).
141
+
142
+ ### Accessibility requirements and pattern guidance
143
+
144
+ For web work targeting [WCAG 2.2](https://www.w3.org/TR/WCAG22/):
145
+
146
+ | Criterion | Level | Boundary |
147
+ | --- | --- | --- |
148
+ | 2.1.1 Keyboard | A | Keyboard-operable functionality, except functions inherently dependent on movement paths rather than endpoints |
149
+ | 2.5.7 Dragging Movements | AA | Single-pointer alternative without dragging, except essential dragging or unmodified user-agent functionality; keyboard alone is insufficient for this criterion |
150
+ | 3.3.1 Error Identification; 3.3.3 Error Suggestion | A; AA | Describe automatically detected input errors in text; give known correction suggestions unless they jeopardize security or purpose |
151
+ | 3.3.4 Error Prevention (Legal, Financial, Data) | AA | For legal/financial commitments, stored user-controllable data changes/deletions, and user test-response submissions, supply reversibility, input checking/correction, or review/confirmation/correction; not a modal for every save |
152
+ | 4.1.2 Name, Role, Value | A | Programmatically available control identity, state, value, and changes |
153
+ | 4.1.3 Status Messages | AA | Relevant status messages in markup can be presented by assistive technology without receiving focus; not every update must be announced |
154
+
155
+ [ARIA APG patterns](https://www.w3.org/WAI/ARIA/apg/patterns/) are informative behavior guidance. A modal needs appropriate entry focus, contained interaction, usable exit, and logical return focus; the original trigger may no longer exist. Delivered semantics and support require actual checks. Use [Accessibility](accessibility.md) for wider barriers and conformance scope.
@@ -0,0 +1,110 @@
1
+ # Motion Design
2
+
3
+ Use to decide whether movement helps, choose its treatment, or evaluate an effect. [Interaction Design](interaction-design.md) defines action and state meaning; motion defines how the change is presented.
4
+
5
+ ## Define the purpose of motion
6
+
7
+ Identify what people should notice, understand, control, or experience. Feedback, orientation, explanation, attention, and expression are valid purposes. Match the effect to frequency of use and context.
8
+
9
+ Use local feedback to acknowledge input without implying success. Movement can show a change of location; repeated decorative effects can interrupt routine work. Compare static changes, short transitions, or longer sequences only when useful. Apply the [default restrictions on decorative motion](rules.md) before adding new effects; retain useful feedback and approved motion patterns.
10
+
11
+ [Carbon's motion guidance](https://www.carbondesignsystem.com/building-blocks/foundations/motion/overview) illustrates productive and expressive roles; its exact values are system choices. Attracting attention does not prove that users understand an action or can find it again.
12
+
13
+ ## Define animation states
14
+
15
+ Identify meaningful start, intermediate, and end states; what persists; and what must remain understandable without the effect. Keep identity through useful labels, grouping, anchors, and spatial relationships.
16
+
17
+ | Relationship | Possible treatment | Check |
18
+ | --- | --- | --- |
19
+ | Local state change | Restrained response | Neighboring controls remain stable |
20
+ | Appearance/disappearance | Direct change or opacity | Spatial information is not needed or lost |
21
+ | Move between meaningful locations | Trackable path | Source and destination remain clear |
22
+ | Expand/contract | Reveal containment | Preserve readable content and a useful anchor |
23
+ | Navigate | Contextual transition | Do not imply a false hierarchy or direction |
24
+ | Explain a process | Staged changes | Important intermediate relationships can be inspected |
25
+
26
+ Do not morph unrelated objects into false equivalence. Scaling text or controls can distort them; fading can remove needed continuity. Choose for the relationship, not physical realism. If exact before/after comparison matters, keep values, annotations, a trail, replay, or another persistent view.
27
+
28
+ ## Set timing and response
29
+
30
+ Check when input is acknowledged, how the effect develops, and when the next action is available. Shortening duration does not fix delayed acknowledgment. A smooth animation can still block work.
31
+
32
+ Reuse suitable project animation patterns. Adjust timing for distance, affected area, complexity, repetition, user control, and information to understand. Neither distance alone nor one fixed duration suits every effect.
33
+
34
+ Inspect cumulative delay: many short effects can become a long wait. Do not hold ready content or controls behind decorative timing. A small stagger can clarify order, but should not delay required acknowledgment.
35
+
36
+ For complex explanations, allow pause, revisit, or inspection when needed. Simplify or retain comparison information instead of merely slowing everything.
37
+
38
+ ## Choose easing and motion behavior
39
+
40
+ Easing controls progression over time.
41
+
42
+ | Behavior | Starting consideration | Risk |
43
+ | --- | --- | --- |
44
+ | Arrive and settle | Deceleration | Long tail obscures readiness |
45
+ | Leave | Acceleration when tracking is unnecessary | Recoverable nearby content may need continuity |
46
+ | Begin and end in view | Balanced acceleration/deceleration | Slow start delays visible response |
47
+ | Represent constant rate or timing | Linear progression | Expressive easing changes the meaning |
48
+ | Gesture release or changing target | Dynamics from current position and useful velocity | Excessive bounce or settling interferes with work |
49
+
50
+ Spring-based motion can redirect an object from its current position and velocity. It is not always better or more accessible. Bouncing may suit playful expression but misrepresent a precise value. Coordinate related effects without forcing identical timing.
51
+
52
+ Commitment and cancellation must not depend on a decorative effect completing. Engineering must preserve correct state if motion stops, changes, or is reduced.
53
+
54
+ ## Coordinate animation sequences
55
+
56
+ Group movement that represents one change; stage changes when their order helps understanding. Preserve useful anchors and coherent layers. Avoid unnecessary crossing paths, occlusion, and competing effects.
57
+
58
+ Use staggering for meaningful order or suitable expression. Check total arrival time, especially the last item. Do not serially reveal every row in a large work list or hide important text behind a parent animation.
59
+
60
+ Keep content intended to be available usable if an entrance effect or its JavaScript fails, or motion is reduced. Do not make essential information or actions depend on a reveal completing. Preserve intentionally hidden states such as closed menus and dialogs; this is not a requirement to expose every state at once.
61
+
62
+ Persistent context can reduce the need to remember a disappearing state. Evaluate tracking, understanding, pacing, and expression separately; a more elaborate sequence does not automatically explain more.
63
+
64
+ ## Keep gestures and repeated input responsive
65
+
66
+ During dragging or other direct manipulation, keep movement tied to the input. When the user changes direction, continue from the visible position instead of restarting a preset animation.
67
+
68
+ Handle immediate reversal, repeated input, changing targets, resizing, late content, and return from background. Avoid queues of obsolete effects and finishing at stale coordinates. Show current state instead of replaying irrelevant missed animation.
69
+
70
+ Preserve positional continuity and useful velocity. A deliberate snap can clarify a boundary better than continuous but misleading motion.
71
+
72
+ Early press feedback need not commit the action on press. Reversing a panel animation is not cancellation of a job or undo of a transaction. Respect [Interaction's recovery definitions](interaction-design.md#distinguish-cancel-undo-and-compensation). Do not make hover, focus, selection, or repeated touch/keyboard use depend on watching a moving target.
73
+
74
+ ## Keep scroll-driven motion usable
75
+
76
+ Distinguish entry-triggered transitions, scroll-coupled movement, and media on an independent timeline. Make what advances and what pauses predictable.
77
+
78
+ Keep meaningful text, controls, and progress reachable through forward/backward movement, fast scrolling, keyboard navigation, deep links, and return visits. Pinned visuals should stay related to the current explanation without trapping normal navigation.
79
+
80
+ Do not require an exact scroll position to reveal essential information. Provide a usable static or reduced route if effects do not run. Do not present a looping video as scroll-controlled; use [Audio & Video](audio-and-video.md) when independent playback matters.
81
+
82
+ Use an expressive scroll treatment when it serves the brief and remains controllable. Avoid adding it by default to every landing page.
83
+
84
+ ## Provide reduced-motion alternatives
85
+
86
+ Identify meaning and possible difficulty: spatial movement, zoom, parallax, oscillation, peripheral effects, or essential information available only during motion.
87
+
88
+ Choose a direct state change, reduced displacement, restrained opacity, persistent highlight, or static sequence according to the need. A fade, shorter effect, or fewer frames is not automatically comfortable or equivalent.
89
+
90
+ Honor relevant system and supported preferences before large effects begin. If preference changes during use, settle into an accurate state without replaying the effect. Describe the alternative's behavior rather than only requesting reduced motion.
91
+
92
+ Keep functional updates and feedback available when animation is disabled or interrupted. A hidden panel must not remain operable as open; revealed controls must become usable appropriately. Essential state must not rely solely on an animation-completion event.
93
+
94
+ Use [Accessibility's sensory criteria](accessibility.md#plan-motion-and-media-alternatives) for motion, auto-updating content, and flashes. They have different scopes and levels. Reduced motion does not establish flash safety.
95
+
96
+ ## Check animation performance
97
+
98
+ Check initial response, smooth rendering, and task completion separately. Large animated areas, simultaneous effects, complex styling, and unnecessary layers can slow rendering. Simplify where useful while preserving needed feedback.
99
+
100
+ Inspect actual content, input, relevant hardware, and concurrent work when available. Use existing profiling to investigate a demonstrated issue; no library, property whitelist, or universal frame rate is required.
101
+
102
+ A recording can hide or introduce frame problems. Smooth playback does not establish input latency or another device's behavior. Use [Performance](performance.md) for broader waiting and delivery metrics.
103
+
104
+ ## Check animation and interruption
105
+
106
+ Inspect start, intermediate, and final states at normal speed. Slow playback can diagnose paths or overlaps, but clarity only in slow motion does not establish normal-speed usability.
107
+
108
+ Exercise relevant reversal, rapid input, resize/content change, and reduced/no-motion conditions. Check content availability, state, operability, and the next action. A screenshot cannot establish timing or interruption.
109
+
110
+ For a narrow repair, check the effect and affected neighbors. For claims of improved understanding or discovery, use suitable task evidence when warranted. When documenting motion, state the trigger, states, movement, timing, interruption behavior, and reduced-motion alternative. Use [Design Evaluation](design-evaluation.md) for diagnosis and evidence limits.
@@ -0,0 +1,109 @@
1
+ # Performance
2
+
3
+ Use for loading feedback, content availability, slow operations, work preservation, and performance measurement. [Interaction Design](interaction-design.md) defines states and recovery; this reference covers waiting and delivery.
4
+
5
+ ## Identify the operation and wait
6
+
7
+ Identify the operation and what must be available or confirmed for the next meaningful action. Loading a shell, fetching choices, transferring, processing, saving, and confirming are different stages.
8
+
9
+ Keep three questions separate: measured system timing; perceived speed, predictability, and effort; and successful task completion with work retained. A pleasant wait need not be shorter, and a quick acknowledgment need not mean completion.
10
+
11
+ ## Choose loading feedback
12
+
13
+ Choose feedback for the affected area, expected delay and variation, measurable progress, risk, and content that remains usable. Prefer product evidence over fixed timing rules.
14
+
15
+ | Situation | Starting treatment | Important limit |
16
+ | --- | --- | --- |
17
+ | Prompt, predictable response | Control acknowledgment and actual result | Avoid unnecessary loading flicker |
18
+ | Local wait with no meaningful total | Scoped indeterminate indicator and useful context | Not proof of server liveness or remaining time |
19
+ | Known content structure, pending values | Faithful skeleton or reserved region | Avoid fictional structure and distracting motion |
20
+ | Known total and completed work | Labeled progress, count, or stage measure | Work proportion need not equal time proportion |
21
+ | Useful partial content | Reveal coherent safe portions | Do not expose dependent actions too early |
22
+ | Long independent operation | Durable status and a return route | Leaving, closing, and canceling have different effects |
23
+
24
+ [Carbon's loading guidance](https://www.carbondesignsystem.com/building-blocks/core/patterns/loading) illustrates alternatives, not a universal ranking. Combine indicators only when each adds information. Defer an optional flashing indicator rather than delay a ready result. A transition must not keep completed work falsely labeled as running.
25
+
26
+ ## Communicate honest progress
27
+
28
+ Define what a number measures: bytes, items, stages, or another observable amount. Keep the total being measured clear when moving between transfer, validation, processing, and publication.
29
+
30
+ Use a percentage only when total and completed work are meaningful. Otherwise show the known stage or count. Unequal items can support a count without predicting equal remaining time. "Upload complete. Processing file." distinguishes transfer from task completion.
31
+
32
+ Use supported estimates with appropriate uncertainty; update those that no longer fit. Do not manufacture percentages, race to an arbitrary limit, restart countdowns, or manipulate apparent progress to retain users.
33
+
34
+ For stalled progress, distinguish queued work, a dependency, lost observation, and confirmed failure where known. No visible movement does not prove failure; a looping animation does not prove continuing backend work. Communicate usable next actions without irrelevant internal detail.
35
+
36
+ ## Show usable partial content
37
+
38
+ Separate shell, content, and task dependencies. An input can work before images load; a decision may remain unsafe until required data or validation is ready.
39
+
40
+ Reveal coherent groups: value, unit, label, condition, and action together. Keep guesses out of final content. Explain a dependent action's pending or unavailable state when useful.
41
+
42
+ On refresh, retain safe useful content and identify material freshness limits. Preserve selection, edits, and reading position. Constrain a consequential action when stale information could mislead. A late response to an old query must not replace current results.
43
+
44
+ Resolve loading into ready, empty, partial, or failed states. Do not leave a failed resource as a permanent skeleton or label unavailable data "no results."
45
+
46
+ ## Prevent disruptive layout shifts
47
+
48
+ Inspect late images, fonts, media, messages, recommendations, and data. Reserve space when useful geometry is predictable; avoid rigid guesses that clip enlarged content or leave misleading gaps.
49
+
50
+ Preserve the reading or task anchor when content changes. Do not move targets beneath active pointers, shift focus unnecessarily, or reveal a control before it is usable and then relocate it. Check banners and errors after initial rendering, not only the first frame.
51
+
52
+ A deliberate layout change can help; zero movement is not an absolute goal. Animation can smooth a shift while leaving the underlying loss of orientation unresolved. Use [Responsive Design](responsive-design.md) for changing layout and content, or [Motion Design](motion-design.md) for intended movement.
53
+
54
+ ## Prioritize media loading
55
+
56
+ Prioritize content and controls needed for useful work. Optional video, galleries, or effects must not block unrelated essential actions.
57
+
58
+ A low-detail preview can preserve context, but a blurred price or product condition cannot support a decision. A poster or first frame is not playback readiness. Plan buffering/failure feedback, controls, and relevant alternatives; autoplay is not a loading indicator.
59
+
60
+ Consider bandwidth, devices, and optional deferred media. Report file size or duration only when known and useful. Asset purpose belongs in [Art Direction](art-direction.md); playback and alternatives in [Audio & Video](audio-and-video.md). Engineering verifies actual delivery.
61
+
62
+ ## Preserve work during interruptions
63
+
64
+ Identify what should survive delay, connection loss, expiry, refresh, or switching tasks, and what the product actually supports.
65
+
66
+ | Evidence | Honest status |
67
+ | --- | --- |
68
+ | Input in the current view | Active edit, not necessarily persisted |
69
+ | Confirmed local save | Stored locally within supported limits; remote acceptance may remain pending |
70
+ | Queued or acknowledged request | Waiting or accepted, not necessarily complete |
71
+ | Lost response | Outcome may be unknown |
72
+ | Confirmed result | Known completed scope and remaining work |
73
+ | Partial completion | Useful completed portion and affected remaining subset |
74
+
75
+ Retain usable content and input during temporary interruptions where permitted. Privacy, permissions, expiry, and storage can limit retention. Promise recovery after closing or signing in again only when supported.
76
+
77
+ For an unconfirmed consequential action, use [Interaction's safe-retry guidance](interaction-design.md#retry-without-duplicating-consequences). Prefer a supported status check over a potentially duplicating retry. Reconnection alone does not establish success or current validity. Bound supported retries and explain when another action is needed; avoid endless waiting and repeated notices.
78
+
79
+ ## Support long-running operations
80
+
81
+ When work can continue independently, let people leave and return to its status and results. Keep enough context to recognize the job: target, submitted scope, useful time context, and current outcome.
82
+
83
+ Keep useful results and remaining failures available after switching tasks. An expiring toast should not be the only record when later action matters. Group routine events without losing important results.
84
+
85
+ Closing the view does not imply background execution or cancellation. Stopping transfer, canceling queued work, requesting processing cancellation, and undoing a completed effect are different capabilities. Explain actual limits and completed portions using Interaction's definitions.
86
+
87
+ ## Choose relevant metrics
88
+
89
+ [Core Web Vitals](https://web.dev/articles/vitals) describe selected web experience signals:
90
+
91
+ | Metric | Meaning | Limit |
92
+ | --- | --- | --- |
93
+ | LCP (Largest Contentful Paint) | Largest eligible content element's render time in the viewport | Not all resources, controls, or dependencies ready |
94
+ | INP (Interaction to Next Paint) | Qualifying click, tap, and keyboard responsiveness through the next paint | Not remote-operation completion; excludes continuous scrolling, hover, and zoom |
95
+ | CLS (Cumulative Layout Shift) | Unexpected layout-shift impact under session-window rules | Not every movement or disruptive change |
96
+
97
+ The recommended good boundaries are LCP at most 2.5 seconds, INP at most 200 milliseconds, and CLS at most 0.1, evaluated at the 75th percentile of field page loads with mobile/desktop segmentation. They are web-metric guidance, not universal task waits, native-app standards, or guarantees for every person. Recheck official definitions for a new measurement plan.
98
+
99
+ Separate field observations from controlled lab runs. A load-only test misses later shifts and interactions; without meaningful interaction it cannot establish INP. Lab proxies do not replace field measurements.
100
+
101
+ Measure the relevant task when necessary: useful content, acknowledgment, next-action availability, completion, retained work, failure, and recovery effort. Define start and end points. Inspect relevant user groups and unusually slow cases rather than relying only on an average. A screenshot cannot supply measured performance.
102
+
103
+ ## Check loading and recovery
104
+
105
+ Choose informative conditions: cached response, ordinary/variable wait, lost observation, failed dependency, partial results, and return. Add only relevant content, device, and access variations.
106
+
107
+ Inspect real flow with controlled delays or failures when available; label artificial conditions accordingly. Check recovery as well as waiting. Use reader evidence for perceived wait and understanding, and technical measurement for defined timings. Neither alone establishes the whole experience.
108
+
109
+ Keep status accessible without announcing every increment or requiring animation perception. Use [Design Evaluation](design-evaluation.md) for broader evidence choices. Report measured improvements only from comparable measurements, not a design rationale converted into a percentage.
@@ -0,0 +1,98 @@
1
+ # Responsive Design
2
+
3
+ Use when space, content, language, orientation, or input changes can affect usability. Reuse [Visual Design](visual-design.md) for hierarchy and [Interaction Design](interaction-design.md) for control behavior.
4
+
5
+ ## Identify changing conditions
6
+
7
+ Identify what varies: the available region, task, content, language, enlargement, input, orientation, obstructions, and concurrent work. A desktop can have a narrow split window; a large touch device can use a keyboard. Do not infer exclusive capabilities from a device label.
8
+
9
+ Choose mobile-first, desktop-first, or another starting point from actual use and constraints. Keep required work available across supported conditions rather than shrinking one ideal mockup.
10
+
11
+ ## Choose a responsive layout
12
+
13
+ Use fluid sizing, wrapping, stacking, or a different arrangement of panels as the content requires.
14
+
15
+ | Constraint | Possible response | Preserve |
16
+ | --- | --- | --- |
17
+ | Structure still works at another size | Expand/contract within useful limits | Reading, targets, and proportions |
18
+ | Adjacent groups become too narrow | Wrap, stack, or reallocate space | Meaningful order and associations |
19
+ | List and detail no longer fit | Show the active pane with a clear route to the other | Selected item, filters, list position, and draft |
20
+ | Secondary controls compete with work | Use a recognizable panel or alternative presentation | Discoverability, active restrictions, and required functions |
21
+ | Comparison needs two dimensions | Bounded scrolling or a useful alternate view | Row/column relationships, labels, and actions |
22
+ | Extra room becomes available | Expose useful context or constrain content | Task priority; no obligation to fill space |
23
+
24
+ Compare costs: a filter panel can hide restrictions, and cards can make row comparison harder. Preserve semantic groups instead of rearranging visual fragments independently. Reading and focus order need appropriate implementation.
25
+
26
+ Use [Art Direction](art-direction.md#check-cropping-and-placement) when a crop changes meaning, and [Data Visualization](data-visualization.md) for representation-specific decisions. Technically fitting a chart or screenshot does not make it readable.
27
+
28
+ ## Choose content-based breakpoints
29
+
30
+ Inspect actual regions through widths and heights. Change presentation where content collides, essential text clips, panes become unusable, or a useful relationship can be restored. A component can be narrow inside a wide window.
31
+
32
+ Reuse project breakpoints when suitable. Prefer flexible wrapping or a better constraint over adding a new threshold for every mismatch. [Responsive-design guidance](https://web.dev/articles/responsive-web-design-basics) supports content-led transitions.
33
+
34
+ Check sizes below, above, and between breakpoints, including resizing during work. Prevent layouts from repeatedly switching back and forth. Record important rules, such as stacking editor and preview when either becomes unreadable while preserving the draft and access to the preview.
35
+
36
+ ## Preserve navigation context
37
+
38
+ Adapt the presentation of navigation to space, destinations, movement frequency, and platform expectations. Keep taxonomy, recognizable destinations, current location, selected state, and routes to important work.
39
+
40
+ When panes become sequential, preserve the active task. An open record editor should not reset to the collection on resize. Keep a route back to the actual filtered list; expanding the window should not trigger unrelated navigation.
41
+
42
+ Consider open menus, dialogs, and panels during transition. Keep them usable or deliberately change presentation. If their trigger disappears, use a visible counterpart or logical focus continuation instead of resetting focus to the page start.
43
+
44
+ ## Handle variable text and data
45
+
46
+ Use representative extremes: long names, localized dates/numbers, error messages, identifiers, unusual units, valid zero/negative values, and late content.
47
+
48
+ - Allow wrapping or growth when content must be read; preserve labels and control associations.
49
+ - Truncate only when omitted content is not essential now and its full value remains available through a usable route, including touch and keyboard.
50
+ - Preserve accurate inspection/copying of long identifiers; do not alter their contents to fit.
51
+ - Distinguish empty, missing, partial, and large datasets; missing is not zero.
52
+ - Keep late content from moving an active target or losing task context.
53
+
54
+ Adjust the layout before shortening a translation in ways that change its meaning. Check supported scripts, glyphs, line breaks, direction, and local formatting using [Multilingual Writing](../writing/multilingual-writing.md). Text expansion tests can expose layout failures but do not verify a translation.
55
+
56
+ ## Support text resizing and zoom
57
+
58
+ Text enlargement, zoom, and spacing overrides are separate conditions. Let content grow and reflow while keeping essential controls and relationships usable. Reconsider fixed heights and persistent headers/footers; do not force zooming out.
59
+
60
+ Use [Visual Design's scoped requirements](visual-design.md#standards-and-reading-flexibility): text resizing to 200%, combined spacing overrides, and reflow have different conditions and exceptions. For vertical content, the 320 CSS-pixel reflow condition corresponds to a 1280 CSS-pixel starting viewport at 400% zoom; horizontal content uses the corresponding 256 CSS-pixel height condition.
61
+
62
+ An essential two-dimensional table or map can qualify for a scoped exception, not exemption of the surrounding page or all text cells. Keep necessary comparison relationships while other content reflows.
63
+
64
+ ## Support different input methods
65
+
66
+ Provide usable routes through supported touch, pointer, keyboard, and relevant assistive modes. Input can change during one task. Focus, hover, selection, and activation are different states.
67
+
68
+ Keep essential information and actions available without hover. Additional hover/focus content subject to WCAG 1.4.13, AA, must be dismissible, hoverable, and persistent under its exceptions. Keep the pointer route between trigger and revealed content usable.
69
+
70
+ Check target area and spacing at actual scale. An icon's visual size need not equal its hit area, but hit areas must not overlap ambiguously. CSS pixels, physical pixels, points, and density-independent units are not interchangeable.
71
+
72
+ Choose target dimensions for supported input and the actual component or platform. As contextual examples, [Material's density guidance](https://m3.material.io/foundations/layout/grids-spacing/density) uses a 48 by 48 CSS-pixel default target; [Android guidance](https://developer.android.com/guide/topics/ui/accessibility/apps) recommends 48 by 48 dp for touch; and [Apple HIG](https://developer.apple.com/design/human-interface-guidelines/accessibility) lists a 44 by 44 pt iOS/iPadOS default separately from smaller minimum values. These are different contexts and units, not one required dimension for every control. A visual icon can remain smaller than its target. Preserve readable text when adjusting density, and inspect target separation, reach, and accidental activation. Dense pointer work and touch use may need different treatments while meeting applicable requirements.
73
+
74
+ Under [WCAG 2.2](https://www.w3.org/TR/WCAG22/), 2.5.8 Target Size (Minimum), AA, specifies 24 by 24 CSS pixels with spacing, equivalent-control, inline, user-agent, and essential-presentation exceptions. It is a minimum, not an ideal size for all tasks. 2.5.6 Concurrent Input Mechanisms is AAA, with essential, security, and user-setting exceptions; it does not mandate every imaginable input.
75
+
76
+ Use [Interaction's accessibility guidance](interaction-design.md#accessibility-requirements-and-pattern-guidance) for keyboard and dragging alternatives. Actual semantics and operation require delivered checks.
77
+
78
+ ## Handle orientation and obstructions
79
+
80
+ Keep essential content clear of relevant cutouts, hinge gaps, persistent overlays, and keyboards. A decorative background can extend into space that important controls cannot.
81
+
82
+ Inspect short windows and keyboard-open states. Maintain access to the active field, instructions/errors, and next action. Allow scrolling, reduce nonessential persistent chrome, or change presentation when a sticky bar or modal consumes the view.
83
+
84
+ Use actual platform obstruction behavior, not a universal fixed inset. Under WCAG, 1.3.4 Orientation, AA, permits restriction only when essential. 2.4.11 Focus Not Obscured (Minimum), AA, addresses focused components not entirely hidden by author-created content, with its notes; it does not guarantee full visibility or specify operating-system keyboard behavior.
85
+
86
+ ## Preserve work during layout changes
87
+
88
+ Preserve relevant item, values, selections, filters, step, expanded regions, pending work, and reading context within supported limits. Restore the relevant item or section rather than exact pixel coordinates.
89
+
90
+ Respect persistence, privacy, authorization, and expiry constraints; Engineering must establish actual behavior. Fitting content into another region is not personalization: reordering tasks based on inferred preferences requires a separate justified decision.
91
+
92
+ ## Check responsive behavior
93
+
94
+ Exercise useful extremes and transitions: narrow/short regions, enlargement, long or localized text, input changes, open overlays, missing or partial content, and return to a previous size. Combine conditions where they could expose a failure, without a full device matrix for every edit.
95
+
96
+ For example, rotate while editing a selected record and verify the draft and return path; compare a table before replacing it with stacked cards; inspect a long translated label in a narrow keyboard-open form.
97
+
98
+ A static design can specify rules and reveal geometry problems. Resizing or emulation cannot reproduce every device, browser, input method, or assistive setup. Mark untested focus, operation, saved work, and obstruction behavior as unverified.