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

[Link] Showing file types in links #2899

Open
renow-luxembourg opened this issue Nov 26, 2024 · 0 comments
Open

[Link] Showing file types in links #2899

renow-luxembourg opened this issue Nov 26, 2024 · 0 comments

Comments

@renow-luxembourg
Copy link
Contributor

renow-luxembourg commented Nov 26, 2024

Feature Request

Is your feature request related to a problem? Please describe.
Users have no information about links to download files.
It confuses users when a file starts downloading without warning when they were only expecting to be redirected to another page.
In addition to this, it is also important for people to know the language, size (weight) and format of the file before downloading it (for example: people with limited data or those who do not have a PDF viewer).

Describe the solution you'd like
Add the file language, size (weight), and format in parentheses next to the file link.

  • Language if relevant (and different from current page) and if we get the information (from DAM)
  • Size (weight) if we get the information (from DAM)
  • File format for all links to download files (even for external files)

Example
<a href="/my_file.pdf" title="My file (Fr - 153 Mo – PDF) - new window">My file (Fr - 153 Mo – PDF)</a>

Are there alternatives?
An alternative can be to add images with the format and lang with a relevant alternative text or with a .sr-only class but this not work with the file size.

Documentation

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

No branches or pull requests

1 participant