Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove IE8 fallback PNG with broken image reference #248

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Jul 28, 2021

In 0e9ac92 we updated the header in line with changes made in GOV.UK Frontend v3.13.0, which involved changing the <image> tag to an <img> tag.

The path is incorrect (and was before), as the fallback PNG is actually located at /assets/govuk/images/govuk-logotype-crown.png.

$ tree build/assets 
build/assets
└── govuk
    └── assets
        ├── fonts
        │   ├── bold-affa96571d-v2.woff
        │   ├── bold-b542beb274-v2.woff2
        │   ├── light-94a07e06a1-v2.woff2
        │   └── light-f591b13f7d-v2.woff
        └── images
            ├── favicon.ico
            ├── govuk-apple-touch-icon-152x152.png
            ├── govuk-apple-touch-icon-167x167.png
            ├── govuk-apple-touch-icon-180x180.png
            ├── govuk-apple-touch-icon.png
            ├── govuk-crest-2x.png
            ├── govuk-crest.png
            ├── govuk-logotype-crown.png
            ├── govuk-mask-icon.svg
            └── govuk-opengraph-image.png

4 directories, 14 files

Because of the change of tag (presumably) this is now causing downstream builds that have link checkers to fail, like in alphagov/govuk-frontend-docs#139 (build log: https://app.travis-ci.com/github/alphagov/govuk-frontend-docs/builds/233880666).

We could fix the path, but given the layout is already completely broken in IE8 anyway, it seems like it makes more sense just to remove the fallback logic at this point.

Broken page layout in IE8

In 0e9ac92 we updated the header in line with changes made in GOV.UK Frontend v3.13.0, which involved changing the `<image>` tag to an `<img>` tag.

The path is incorrect (and was before), as the fallback PNG is actually located at `/assets/govuk/images/govuk-logotype-crown.png`.

Because of the change of tag (presumably) this is now causing downstream builds that have link checkers to fail, like in alphagov/govuk-frontend-docs#139 (build log: https://app.travis-ci.com/github/alphagov/govuk-frontend-docs/builds/233880666).

We could fix the path, but given the layout is already completely broken in IE8 anyway, it seems like it makes more sense just to remove the fallback logic at this point.
@36degrees 36degrees merged commit 1408fa0 into master Jul 28, 2021
@36degrees 36degrees deleted the broken-header-fallback-png branch July 28, 2021 14:32
@36degrees 36degrees mentioned this pull request Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants