Skip to content

Commit

Permalink
Merge pull request #806 from nhsuk/fix/card-component-format
Browse files Browse the repository at this point in the history
fix card component format
  • Loading branch information
DomBaker authored Jan 11, 2022
2 parents 10c92e0 + 3c00694 commit 5d4cfd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@

- Added utility classes `nhsuk-u-text-align-left`, `nhsuk-u-text-align-centre` and `nhsuk-u-text-align-right`

:wrench: **Fixes**
- Updated dependancies in `package.json` & generated new `package-lock.json`
- Changed spelling mistake `charitiest` to `charities`
- Fixed card component example format

## 6.0.1 - 29 November 2021

#:wrench: **Fixes**
:wrench: **Fixes**

- Added missing utility classes `nhsuk-u-display-block`, `nhsuk-u-display-inline-block`, `nhsuk-u-float-left` and `nhsuk-u-float-right`

Expand Down
6 changes: 3 additions & 3 deletions packages/components/card/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
{%- if params.imgURL %}
<img class="nhsuk-card__img" src="{{ params.imgURL }}" alt="{{ params.imgALT }}">
{%- endif %}
<div class="{% if not params.type %}nhsuk-card__content
{% if params.feature %} nhsuk-card__content--feature{% endif %}
{% else %}nhsuk-card--care__heading-container{% endif %}">
<div class="{%- if not params.type %}nhsuk-card__content
{%- if params.feature %} nhsuk-card__content--feature{% endif %}
{%- else %}nhsuk-card--care__heading-container{% endif %}">
{%- if params.headingHtml %}
{{ params.headingHtml | safe }}
{%- else %}
Expand Down

0 comments on commit 5d4cfd8

Please sign in to comment.