Use a confirmation pattern without inventing product behavior
Carbon's modal guidance distinguishes transactional and danger modal uses, including confirmation for destructive or irreversible actions. It provides a design-system context, not evidence that another product's Cancel reverses an operation or that every consequential action requires the same component.
Choose the actual presentation through appropriate design and accessibility review. The writing decision remains concrete: what does the action affect, what does it leave alone, and which recovery promise is supported? A technically accessible dialog can still describe the wrong target set.
The complete example below is fictional. It does not operate on real files or recommend deleting shared business data. All counts and consequences are teaching inputs that a real product would need to establish independently.
Inspect the complete fictional selection
An invented workspace contains a folder called Drafts with three direct documents and a subfolder named Notes containing two more. Another workspace has one reference to document D2. The proposed destructive operation removes both containers, Drafts and Notes, and all five contained documents from the active workspace. Its fictional contract says the shared reference will no longer open D2.
| Reference | Relationship | Selected deletion target? | Meaning for copy |
|---|---|---|---|
| D1, D2, D3 | Three direct documents | Yes | Part of the five-document count |
| D4, D5 | Two documents in Drafts/Notes | Yes | Nested scope must be stated |
| Drafts and Drafts/Notes | Parent and nested folder containers | Yes; both containers removed | Two containers, counted separately from five documents |
| R1 | External workspace reference to D2 | No separate document deletion | Known loss of reference access |
| Retained backup | Separate documented lifecycle | Not established by this operation | No all-copies-erased promise |
The target contains five documents and two containers: Drafts and Notes. That is seven selected objects under this fictional inventory, with the document count still five. R1 is an affected external reference, not a sixth document or an eighth selected object. The retained-backup row bounds the claim rather than pretending a confirmation dialog can establish universal erasure.
Write two different complete confirmation packages
| Action | Heading and body | Primary action | Secondary action |
|---|---|---|---|
| Remove a view shortcut only | Remove the Drafts shortcut? This removes the shortcut from this view. It does not delete the folder or its documents. | Remove shortcut | Keep shortcut |
| Delete the declared folder scope | Delete Drafts and its 5 documents? This removes 2 folders, Drafts and Notes, and 5 documents; 2 documents are inside Notes. This action cannot be undone here. A reference in another workspace will no longer open the affected document. Retained backups follow the separate retention policy. | Delete folder and documents | Keep folder |
These are distinct operations and therefore need different words. A shared generic Delete label would conceal the difference between removing a navigation reference and removing content. The exact text is a candidate for the fictional contract, not a claim that a real product has those capabilities.
Keep the material consequence visible where the choice is made. A help link can explain the separate retention policy, but it should not be used to hide that the action does not erase every retained copy.
Keep counts tied to the actual selection
Record how the target set is established and whether it can change before confirmation. If the implementation cannot provide a reliable count, do not invent a precise number or display an old count as though it identifies the current scope. The appropriate response may be to refresh the selection, narrow the action, or hold it.
For the fictional inventory, three direct documents plus two nested documents equals five. The wording identifies both folder containers separately so readers do not mistake the five-document count for all seven selected objects. The cross-workspace reference is an additional consequence with a different unit.
Do not make the copy more concise by dropping descendants when descendants are actually included. Conversely, do not imply recursive deletion when only direct selected items are affected. The product's actual target semantics determine the explanation.
Verify recovery and cancel wording separately
A confirmation should not promise that an action can be undone unless the supported product contract establishes that recovery. A restoration path might recover some state while leaving notifications, external references, or history changed. Keep the actual recoverability boundary precise.
The undo-state review examines that separate promise. Here the fictional destructive operation explicitly cannot be undone through the current interface, so the confirmation says so. It does not claim no authorized recovery process exists anywhere.
Likewise, the secondary action should describe the supported choice before execution. Do not call it Restore if it merely dismisses a decision that has not yet been applied. The implementation owner must verify timing and behavior rather than allowing wording to define an unbuilt guarantee.
Challenge the copy with meaningful failure cases
Test a candidate that says “Delete 3 documents” for the complete fictional selection. It fails because it omits two nested documents and does not identify both selected containers. Test “Erase every copy permanently.” It fails because the operation's known scope does not establish backup erasure.
Test an unknown selection count. The review should preserve uncertainty rather than substituting the visible card count for the actual target set. A green screenshot is not evidence that the count comes from the same selection the operation uses.
Use authorized synthetic fixtures for any implementation check. This editorial method does not authorize pressing a destructive control in a production workspace, creating real shared references, or changing retention settings to make the example easier to demonstrate.
Release the decision with an owner
Save the target inventory, count rule, actual operation contract, proposed text, recoverability evidence, external consequences, negative fixtures, and final reviewer disposition. Recheck when selection behavior, nested handling, sharing, or recovery changes.
The verification worksheet keeps the design-system pattern separate from the product facts and fictional teaching inventory. Appropriate design, accessibility, security, and product owners should inspect the actual final experience within their scope.
Approve when the person can tell what they will authorize, which meaningful consequences follow, and which choices remain. A useful confirmation reduces guessing at the decision boundary without claiming that a well-written dialog proves the operation itself is safe or complete.
