Skip to content
Snippets Groups Projects
Commit 84678a95 authored by Alex Penczko's avatar Alex Penczko
Browse files

[TASK] improve download button a11y

parent e361a8e6
No related branches found
No related tags found
1 merge request!53Task a11y
......@@ -24,9 +24,8 @@
</h2>
<f:if condition="{job.attachment}">
<div class="ms-auto">
<f:link.typolink target="_blank" parameter="{job.attachment.0.originalResource.publicUrl}" class="btn btn-outline-dark" additionalAttributes="{alt: '{f:translate(key: \'frontend.attachment\', extensionName: \'SgJobs\')} (PDF, {job.attachment.0.originalResource.size -> f:format.bytes()})'}">
<sg:renderSvg name="fontawesome/solid/download" width="20" height="20" color="currentColor" createColorAttribute="TRUE" role="img" aria-label="Download icon"/>
<span class="visually-hidden"><f:translate key="frontend.button.download" /></span>
<f:link.typolink target="_blank" parameter="{job.attachment.0.originalResource.publicUrl}" class="btn btn-outline-dark" additionalAttributes="{aria-label: '{f:translate(key: \'frontend.attachment\', extensionName: \'SgJobs\')} (PDF, {job.attachment.0.originalResource.size -> f:format.bytes()})'}">
<sg:renderSvg name="fontawesome/solid/download" width="20" height="20" color="currentColor" createColorAttribute="TRUE" aria-hidden="true" focusable="false"/>
</f:link.typolink>
</div>
</f:if>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment