Files
notifications-admin/app/templates/partials/templates/guidance-optional-content.html
Katie Smith 792860085e Get rid of unecessary <div> and use the correct gutter class
* We don't need the inset text to be inside `<div>` tags because the
component adds its own
* Replaced `bottom-gutter` with `govuk-!-margin-bottom-6` since this
change will be needed across the app at some point.
2021-02-23 13:16:25 +00:00

22 lines
633 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% from "components/inset-text/macro.njk" import govukInsetText %}
<h2 class="heading-medium">
Optional content
</h2>
<p class="govuk-body">
Use double brackets and ?? to define optional content.
</p>
<p class="bottom-gutter-1-3">
For example if you only want to show something to people who are under
18:
</p>
{{ govukInsetText({
"text": "((under18??Please get your application signed by a parent or
guardian.))",
"classes": "govuk-!-margin-top-0 govuk-!-margin-bottom-3"})
}}
<p class="govuk-body">
For each person you send this message to, specify yes or no to
show or hide this content.
</p>