-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a04113
commit 5cf4fa1
Showing
3 changed files
with
136 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{% from "back-link/macro.njk" import govukBackLink %} | ||
|
||
{% extends "layout.njk" %} | ||
|
||
{% block beforeContent %} | ||
{{ govukBackLink({ | ||
"href": "/" | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
|
||
<h1 class="govuk-heading-xl"> | ||
Details polyfill examples | ||
</h1> | ||
|
||
<p class="govuk-body"> | ||
In order to test our polyfill code for details we need to have examples that do not use the native elements. | ||
</p> | ||
|
||
|
||
<h2 class="govuk-heading-m"> | ||
Default | ||
</h2> | ||
|
||
<div class="govuk-details" data-module="govuk-details" id="default"> | ||
<summary class="govuk-details__summary"> | ||
<span class="govuk-details__summary-text"> | ||
Help with nationality | ||
</span> | ||
</summary> | ||
<div class="govuk-details__text"> | ||
We need to know your nationality so we can work out which elections you’re entitled to vote in. If you cannot provide your nationality, you’ll have to send copies of identity documents through the post. | ||
</div> | ||
</div> | ||
|
||
<h2 class="govuk-heading-m"> | ||
Expanded | ||
</h2> | ||
|
||
<div class="govuk-details" data-module="govuk-details" open id="expanded"> | ||
<summary class="govuk-details__summary"> | ||
<span class="govuk-details__summary-text"> | ||
Help with nationality | ||
</span> | ||
</summary> | ||
<div class="govuk-details__text"> | ||
We need to know your nationality so we can work out which elections you’re entitled to vote in. If you cannot provide your nationality, you’ll have to send copies of identity documents through the post. | ||
</div> | ||
</div> | ||
|
||
<script> | ||
window.__GOVUKFRONTEND_FORCE_DETAILS_POLYFILL = true | ||
</script> | ||
|
||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters