Skip to content

Fix adjacent links in the related documents/attachments links#15291

Merged
alecslupu merged 2 commits intodevelopfrom
fix/a11y/related-documents-adjacent-links
Oct 10, 2025
Merged

Fix adjacent links in the related documents/attachments links#15291
alecslupu merged 2 commits intodevelopfrom
fix/a11y/related-documents-adjacent-links

Conversation

@andreslucena
Copy link
Copy Markdown
Member

🎩 What? Why?

There's an accessibility problem with the current Related Documents sections, where there are two adjacent links that point to the same resource: the link to the attached document itself.

This PR fixes it by removing the link on the title.

Mind that we don't have this problem in the Collections (Folder), as the button is one big clickable element.

📌 Related Issues

Testing

  1. Go to a page with related documents (for instance a Process with the "Related documents" content block)
  2. Tab on these elements
  3. Apply this patch
  4. See that the focus is correct and you only have one link

📷 Screenshots

Before

image

After

image image

♥️ Thank you!

github-actions[bot]
github-actions bot previously approved these changes Oct 3, 2025
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

👍

@alecslupu alecslupu added release: v0.29 Issues or PRs that need to be tackled for v0.29 release: v0.30 Issues or PRs that need to be tackled for v0.30 release: v0.31 Issues or PRs that need to be tackled for v0.31 labels Oct 10, 2025
@alecslupu alecslupu merged commit 9ec24d9 into develop Oct 10, 2025
93 of 99 checks passed
@alecslupu alecslupu deleted the fix/a11y/related-documents-adjacent-links branch October 10, 2025 13:51
MariaDascaluPublicis pushed a commit to i-need-another-coffee/decidim that referenced this pull request Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: core module: proposals project: 2025-NGI release: v0.29 Issues or PRs that need to be tackled for v0.29 release: v0.30 Issues or PRs that need to be tackled for v0.30 release: v0.31 Issues or PRs that need to be tackled for v0.31 team: accessibility type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WCAG: Adjacent links to the same resource at proposal preview (attachments)

2 participants