Skip to content

Commit

Permalink
Include width and height size attributes on image card component
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-kirwan committed Jul 25, 2022
1 parent fd43b5c commit 9fe6f8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

* GA4 analytics schema rework ([PR #2864](https://github.com/alphagov/govuk_publishing_components/pull/2864))
* Change colour palette in graphs to match GSS guidance ([PR #2782](https://github.com/alphagov/govuk_publishing_components/pull/2782))
* Include width and height size attributes on image card component ([PR #2869](https://github.com/alphagov/govuk_publishing_components/pull/2869))

## 29.15.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ body: |
An image and links, meant for use for news articles and people. Includes optional paragraph and additional links.
The component is generally to be used within a grid column but has no grid of its own, so the text and the images in the examples below may not always line up. This will normally look tidier, for example [on pages like this](https://www.gov.uk/government/organisations/attorney-generals-office).
Images should have an aspect ratio of 3:2.
accessibility_criteria: |
The component must:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def image
loading: @image_loading,
sizes: @sizes,
srcset: @srcset,
height: 200,
width: 300,
)
end
end
Expand Down

0 comments on commit 9fe6f8b

Please sign in to comment.