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

Add feedback section partial to component layout #74

Merged
merged 2 commits into from
May 8, 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: 4 additions & 0 deletions docs/_includes/layouts/component.njk
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
</h1>
<p class="nhsuk-body-l nhsuk-u-margin-bottom-7">{{ description }}</p>
{{ content | safe }}
{% if tags and "component" in tags %}
{% include "./partials/feedback-section.njk" %}
{% else %}
{% endif %}
{% endblock %}
3 changes: 3 additions & 0 deletions docs/_includes/layouts/partials/feedback-section.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h2>Help improve this component</h2>
<p>If you have used or researched this component, please let us know what you found so we can make it better for everyone.</p>
<p>Take part in the <a href="https://github.com/nhsuk/nhsuk-service-manual-community-backlog/issues/{{ backlogID }}">'{{ title }}' discussion on GitHub</a> where you can share anything you think might be useful.</p>
1 change: 1 addition & 0 deletions docs/components/card-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: layouts/component.njk
title: Card links
description: Use card links to help users reach the next stage of their NHS App journey.
backlogID: 249
tags:
- component
---
Expand Down