mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 20:48:25 -04:00
* 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.
22 lines
633 B
HTML
22 lines
633 B
HTML
{% 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>
|