Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Latest release: Component Library: v56.6.1 released on Jun 9, 2026 | Guidance: Sprint 1 released on Jun 16, 2026 | Figma: Changelog

Components

Link - Design decisions

Key design decisions for the Link component.

What is an ADR?

We use the ADR (Architecture Decision Record) to structure design decision documentation. Each ADR covers three things: the context that prompted the decision, the decision itself, and its consequences — including trade-offs and any open questions.

  • Date raised: January 9, 2026
  • Decision date: January 29, 2026

Context

Browsers don’t reliably support the HTML download attribute for files hosted on a different origin. When a file is cross-origin (including different subdomains), the browser may ignore the attribute and instead navigate to or preview the file in the same tab.

In single-page applications and multi-step form flows, same-tab navigation to a file can interrupt task completion, replace application state, or cause users to lose their place. Preventing disruption to in-progress tasks is a higher priority than enforcing download behavior.

Opening file links in a new tab avoids interrupting application state, but does not guarantee a file download; actual behavior depends on browser handling, file type, and server headers. This creates ambiguity between the visual affordance of a download and the actual behavior of the link.

The design system needs to distinguish between:

  • same-origin file links where download behavior can be requested via the download attribute or where opening in the same window is acceptable, and
  • cross-origin file links where download behavior cannot be enforced and non-disruptive navigation is required.

Note: The download attribute only works for same-origin URLs (). When files are at a different domain or even a different subdomain, the file will open in the same window.

Decision

We will:

  • Retain the download icon for all file-related links to preserve a consistent visual affordance
  • Update the download prop to apply the native HTML download attribute to the rendered <a>
  • Introduce a new external-download prop for file links that must not interrupt an SPA page or form flow:
    • When external-download is used, the link will open in a new tab (target="_blank"), visible disclosure text (opens in a new tab) will be appended, the download icon will be used, and the download attribute will not be applied
  • Prevent prop overlap by treating download and external-download as mutually exclusive

These changes are backward-compatible. Existing implementations will continue to function without modification. Teams may opt into external-download when linking to files.

We can’t guarantee download behavior for cross-origin files; this process guarantees only safe, non-disruptive navigation.

Consequences

Positive

  • Prevents task disruption in forms. Opening the file in a new tab reliably avoids replacing the current state and reduces risk for users losing their place mid-flow.

Tradeoffs / Negative

  • Potential mismatch between icon and outcome. With external-download, the icon implies download, but the real behavior is open in a new tab.

Open Questions

Edit this page in GitHub (Permissions required)
Last updated: May 15, 2026