Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update link/button guidance for downloads #3744

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

rsmithadhoc
Copy link
Contributor

#3579

Updated links vs. button section with a bullet point for download links.

Copy link
Contributor

@danbrady danbrady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested an update to point to the download link component.

@@ -4,3 +4,4 @@
- It is important to use Action Links for calls to actions that link to another page rather than buttons, because screen readers always say “link” before links, and “button” before buttons.
- A good rule is if the action changes the URL, it should not be a button.
- Button and link confusion can be very frustrating for assistive technology users. A user with a screen reader may pull up a list of links and may not find a specific link because it turns out that it’s been designated as a button in the markup.
- When a file download is involved, it is best to use a link. This is because links are intended for navigation, and downloading a file is a navigational action to a resource.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- When a file download is involved, it is best to use a link. This is because links are intended for navigation, and downloading a file is a navigational action to a resource.
- When a file download is involved, it is best to use the [download link](https://design.va.gov/components/link/#download) component. This is because links are intended for navigation, and downloading a file is a navigational action to a resource.

@rsmithadhoc rsmithadhoc merged commit 365148f into main Jan 29, 2025
4 checks passed
@rsmithadhoc rsmithadhoc deleted the download-link-guidance branch January 29, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants