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

Update card macro paths #137

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/card/card.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% from "badge/large/macro.njk" import nhsappBadgeLarge %}
{% from "icon/macro.njk" import nhsappIcon %}
{% from "../badge/large/macro.njk" import nhsappBadgeLarge %}
{% from "../../styles/icon/macro.njk" import nhsappIcon %}
edwardscull marked this conversation as resolved.
Show resolved Hide resolved

{% set hasBadgeLarge = true if params.badgeLarge.count > 1 %}

Expand Down
28 changes: 14 additions & 14 deletions src/styles/icon/icons.njk
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
{% macro account() %}
{% include "icons/account.svg" %}
{% include "../../assets/icons/account.svg" %}
{% endmacro %}

{% macro chevronRight() %}
{% include "icons/chevron-right.svg" %}
{% include "../../assets/icons/chevron-right.svg" %}
{% endmacro %}

{% macro crossFilled() %}
{% include "icons/cross-filled.svg" %}
{% include "../../assets/icons/cross-filled.svg" %}
{% endmacro %}

{% macro cross() %}
{% include "icons/cross.svg" %}
{% include "../../assets/icons/cross.svg" %}
{% endmacro %}

{% macro heartFilled() %}
{% include "icons/heart-filled.svg" %}
{% include "../../assets/icons/heart-filled.svg" %}
{% endmacro %}

{% macro heart() %}
{% include "icons/heart.svg" %}
{% include "../../assets/icons/heart.svg" %}
{% endmacro %}

{% macro help() %}
{% include "icons/help.svg" %}
{% include "../../assets/icons/help.svg" %}
{% endmacro %}

{% macro homeFilled() %}
{% include "icons/home-filled.svg" %}
{% include "../../assets/icons/home-filled.svg" %}
{% endmacro %}

{% macro home() %}
{% include "icons/home.svg" %}
{% include "../../assets/icons/home.svg" %}
{% endmacro %}

{% macro messagesFilled() %}
{% include "icons/messages-filled.svg" %}
{% include "../../assets/icons/messages-filled.svg" %}
{% endmacro %}

{% macro messages() %}
{% include "icons/messages.svg" %}
{% include "../../assets/icons/messages.svg" %}
{% endmacro %}

{% macro messagesUnreadFilled() %}
{% include "icons/messages-unread-filled.svg" %}
{% include "../../assets/icons/messages-unread-filled.svg" %}
{% endmacro %}

{% macro messagesUnread() %}
{% include "icons/messages-unread.svg" %}
{% include "../../assets/icons/messages-unread.svg" %}
{% endmacro %}

{% macro switchProfile() %}
{% include "icons/switch-profile.svg" %}
{% include "../../assets/icons/switch-profile.svg" %}
{% endmacro %}
2 changes: 1 addition & 1 deletion src/styles/icon/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% import "icon/icons.njk" as iconHtml %}
{% import "../icon/icons.njk" as iconHtml %}

{% macro nhsappIcon(iconName) %}
{{ iconHtml[iconName]() }}
Expand Down