{{ aspExample({ code: "<button class=\"asp-help asp-js-toggle-button\" type=\"button\" aria-expanded=\"false\" data-toggle-element=\".hint-example-1\" style=\"display:none\">
<span class=\"sr-only\"></span>
<span aria-hidden=\"true\">?</span>
</button>

<!– not part of the nunjucks template –>
<div class=\"hint-example-1\">
<p>Hidden content</p>
</div>", nunjucks: "", json: "", title: "", example: "", id: "66a3a3d25d1a9" }) }}

Help with expanded content

{{ aspExample({ code: "<button class=\"asp-help asp-js-toggle-button\" type=\"button\" aria-expanded=\"false\" data-toggle-element=\".hint-example-2\" style=\"display:none\">
<span class=\"sr-only\"></span>
<span aria-hidden=\"true\">?</span>
</button>

<!– not part of the nunjucks template –>
<div class=\"hint-example-2\">
<p>Hidden content</p>
</div>", nunjucks: "", json: "", title: "", example: "", id: "66e024995cf4f" }) }}

WIP – This toggle functionality uses JavaScript. If JavaScript is enabled, the button is hidden, on page load JavaScript checks for the corresponding content. If the corresponding content is found, the button is unhidden and the content is either shown or hidden, depending upon the aria-expanded attribute set on the button. If JavaScript is disabled, the button remains hidden and content visible. (Same as Filter and Steps. Header – not yet documented, will utilise the same JavaScript functionality with an addition data attribute to hide other content when a button is pressed. See also tabs)


{{ aspTable({
head: [
{ text: 'Development criteria'},
{ text: 'Status'}
],
rows: [
{
cells: [
{ text: 'WCAG 2.2 compliant'},
{ html: '<span class="status">Not started</span>'}
]
},
{
cells: [
{ text: 'WCAG 2.1 compliant'},
{ html: '<span class="status status–green">Completed</span>'}
]
},
{
cells: [
{ text: 'HTML / Nunjucks version'},
{ html: '<span class="status status–green">Completed</span>'}
]
},
{
cells: [
{ text: 'Figma version'},
{ html: '<span class="status status">Not started</span>'}
]
},
{
cells: [
{ text: 'M365 versions'},
{ html: '<span class="status status">Not started</span>'}
]
},
{
cells: [
{ text: 'Documentation'},
{ html: '<span class="status status–yellow">In progress</span>'}
]
}
]
}) }}