Closed (fixed)
Project:
File Download Link
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2022 at 10:26 UTC
Updated:
14 Jul 2026 at 12:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
iyyappan.govindHere is the patch. Please review my patch.
Comment #3
iyyappan.govindComment #5
danflanagan8Thank you very much for this issue, @iyyappan.govind!
I have always suspected there was more a11y stuff that could be done here, but I am far from an expert in that realm.
I have a question about aria-label. Would it be typical for the aria-label to be identical to any of the other fields we already have? For example, is the aria-label usually the same as the title? Or is the aria-label usually the same as the visible label?
Comment #6
iyyappan.govindHi @danflanagan8
Yes ARIA labels should explain actual context of the file to screen reader. If we have a 4 Download link in same page then it will not have more information to screen readers. So it is difficult for user to understand the what that Download link will do. So ARIA label should not be static. I used Media name or Media Description field as token in ARIA label in formatter configuration after I added the above patch which is more informative. I hope this helps. Thanks!!
Comment #9
chrissnyderThank you for your work on this @iyyappan.govind!
I've opened a MR with the changes from the above patch and made a few changes to ensure that tests still pass and this functionally will still work if the token module is not installed.
Attached is a patch mirroring the MR for patching your own project.
Comment #10
chrissnyderUpdate patch file with the recent fix to aria label HTML attribute.
Comment #11
chrissnyderNote: Currently, the patch will not apply to the current stable 2.0.3 version of this module. In order to apply this patch to your site/project, you will need to include additional commits/patches that are currently only on the dev branch.
If using composer-patches, update your composer.json with the following in the "patches" config:
Comment #14
astonvictor commented