Skip to content

Commit

Permalink
Merge pull request #74 from nhsuk/feedback-section
Browse files Browse the repository at this point in the history
Add feedback section partial to component layout
  • Loading branch information
mikemonteith authored May 8, 2024
2 parents 6a21069 + 72e15a0 commit 5d8e489
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
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

0 comments on commit 5d8e489

Please sign in to comment.