Skip to content

Commit

Permalink
Add examples of inverse links
Browse files Browse the repository at this point in the history
  • Loading branch information
36degrees committed Apr 30, 2021
1 parent 415fa11 commit 3e4108b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/examples/links/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
'Link': '',
'Link with no visited state': 'govuk-link--no-visited-state',
'Text link': 'govuk-link--text-colour',
'Muted link': 'govuk-link--muted'
'Muted link': 'govuk-link--muted',
'Inverse': 'govuk-link--inverse'
} %}

{% set states = {
Expand Down Expand Up @@ -45,8 +46,8 @@

{% for variant_description, variant_class in variants %}

<section class="govuk-!-margin-top-8">
<h2 class="govuk-heading-l">{{ variant_description }}</h2>
<section class="govuk-!-margin-top-8"{% if variant_class == "govuk-link--inverse"%} style="background: #1d70b8; padding: 15px; margin: -15px;"{% endif %}>
<h2 class="govuk-heading-l"{% if variant_class == "govuk-link--inverse"%} style="color: #fff;"{% endif %}>{{ variant_description }}</h2>

{% for state_description, state_class in states %}
<p class="govuk-body">
Expand Down

0 comments on commit 3e4108b

Please sign in to comment.