Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Media document file link formatting #177

@Adnan-cds

Description

@Adnan-cds

Media documents currently use the Generic file field formatter which uses a file icon (e.g. a PDF icon) to denote the file type. These links are also rendered as block items within an article tag (e.g. <article...><span...><a...>...</a></span></article>). Instead of this, file links shown as part of Media documents should:

  • Include the file type and file size in clear text.
  • No icons.
  • Appear as inline elements (e.g. <span...>...</span>).

Example: 2020 annual report (PDF, 42KB)

Some more explanation and examples from the Croydon Design and content guidelines.

We have already implemented this in localgov_theme_croydon. The task here is to copy and rename the necessary bits including:

Summary: File icons shown before Media document file links will be replaced with filetype and filesize in text shown after the link.

FAO @willguv @andybroomfield @finnlewis @cjstevens78 @clearspotmedia @danchamp

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions