Skip to content

Commit

Permalink
wcag example
Browse files Browse the repository at this point in the history
  • Loading branch information
vickytnz committed Sep 4, 2024
1 parent ccb96fb commit 1efea31
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/_layouts/example.njk
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,24 @@
{{ description | markdown("inline") | noOrphans }}
</p>
{% endif %}
{% if wcag %}



<div class="govuk-inset-text">

<p class="govuk-body">This mistake can mean a failure of

{% for i in wcag %}
<a class="govuk-link" href="{{i.link}}">{{ i.text}}</a>

{% endfor %}
</p>
</div>
{% endif %}




{#
{% if date or modified or authors or author or tags %}
Expand Down
3 changes: 3 additions & 0 deletions app/examples/link-focus/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ layout: example
title: Do not forget link focus states
description: Links must be distinct when focused and with sufficient colour contrast. This is a WCAG requirement.
tags: "Code"
wcag:
- text: "WCAG 2.2 2.4.7: Focus Visible (Level AA)"
link: https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html
mistake:
- link: link-focus/mistake
description: This example is most likely to happen if the GOV.UK Frontend is being rebuilt in a codebase as an abstraction rather than using default templates.
Expand Down

0 comments on commit 1efea31

Please sign in to comment.