Skip to content

Commit

Permalink
Add width and height to header crown fallback PNG
Browse files Browse the repository at this point in the history
This addresses two issues flagged by the HTML5 validator.

Error: Element image is missing required attribute height.

From line 73, column 13; to line 73, column 117

          <image src="/assets/images/govuk-logotype-crown.png" class="govuk-header__logotype-crown-fallback-image"></imag

Error: Element image is missing required attribute width.

From line 73, column 13; to line 73, column 117

          <image src="/assets/images/govuk-logotype-crown.png" class="govuk-header__logotype-crown-fallback-image"></imag

Fixes #1298
  • Loading branch information
36degrees committed Jun 3, 2019
1 parent 5db886b commit b54f1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/header/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
In other browsers <image> is synonymous for the <img> tag and will be
interpreted as such, displaying the fallback image. #}
<image src="{{ params.assetsPath | default('/assets/images') }}/govuk-logotype-crown.png" xlink:href="" class="govuk-header__logotype-crown-fallback-image"></image>
<image src="{{ params.assetsPath | default('/assets/images') }}/govuk-logotype-crown.png" xlink:href="" class="govuk-header__logotype-crown-fallback-image" width="36" height="32"></image>
</svg>
<span class="govuk-header__logotype-text">
GOV.UK
Expand Down

0 comments on commit b54f1bf

Please sign in to comment.