Skip to content

Commit 2d24e73

Browse files
hannalaaksoowenatgov
authored andcommitted
Add examples of visually hidden text to review app
1 parent b28f809 commit 2d24e73

File tree

1 file changed

+67
-0
lines changed
  • packages/govuk-frontend-review/src/views/examples/typography

1 file changed

+67
-0
lines changed

packages/govuk-frontend-review/src/views/examples/typography/index.njk

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,74 @@
536536

537537
</section>
538538

539+
<section class="govuk-!-margin-top-8">
540+
<h2 class="govuk-heading-l govuk-!-padding-bottom-2" style="border-bottom: 4px solid;">Visually hidden text</h2>
541+
542+
<h3 class="govuk-heading-m">Heading with visually hidden text at the beginning</h3>
543+
544+
<h4 class="govuk-heading-s"><span class="govuk-visually-hidden">Countries starting with </span>A</h4>
545+
546+
<h3 class="govuk-heading-m">Heading with visually hidden text at the end</h3>
547+
548+
<h4 class="govuk-heading-s">Search <span class="govuk-visually-hidden">all content</span></h4>
549+
550+
<h3 class="govuk-heading-m">Heading that is visually hidden</h3>
551+
552+
<h4 class="govuk-visually-hidden">Navigation menu</h4>
553+
554+
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--xl">
555+
556+
<h3 class="govuk-heading-m">Paragraph that contains visually hidden text</h3>
557+
558+
<p class="govuk-body">This is a paragraph <span class="govuk-visually-hidden">with some visually hidden text</span>.</p>
539559

560+
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--xl">
561+
562+
<h3 class="govuk-heading-m">Table with visually hidden text</h3>
563+
564+
{{ govukTable({
565+
caption: "2019",
566+
captionClasses: "govuk-!-margin-bottom-4",
567+
head: [
568+
{
569+
text: "Date",
570+
classes: "govuk-visually-hidden"
571+
},
572+
{
573+
text: "Day",
574+
classes: "govuk-visually-hidden"
575+
},
576+
{
577+
text: "Name",
578+
classes: "govuk-visually-hidden"
579+
}
580+
],
581+
rows: [
582+
[
583+
{
584+
text: "19 April"
585+
},
586+
{
587+
text: "Friday"
588+
},
589+
{
590+
text: "Good Friday"
591+
}
592+
],
593+
[
594+
{
595+
text: "22 April"
596+
},
597+
{
598+
text: "Monday"
599+
},
600+
{
601+
text: "Easter Monday"
602+
}
603+
]
604+
]
605+
}) }}
606+
</section>
540607
</div>
541608
</div>
542609
{% endblock %}

0 commit comments

Comments
 (0)