-
Notifications
You must be signed in to change notification settings - Fork 109
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
Ensure logo-nhs.svg is a valid SVG file. #657
Conversation
Add the xlink namespace to address the 'Unbound namespace prefix: "xlink"' error.
Hey @codebymikey thanks for opening this pull request. Do you have a bit more information about the error you were getting so I can understand the context of this change? Where are you getting the We are aware of some issues affecting HTML validation with the fallback png logo (#572) but this doesn't seem to be related. |
I just noticed that the file wasn't valid in general (none of the svg viewers I found online could open it), see Github's own SVG preview breaking: Viewing the svg directly in Chrome spits out an error message regarding the namespace prefix, but still manages to render. The error I referenced in particular was coming from running the assets through gulp-image's svgo optimizer which apparently uses |
Thanks @codebymikey that makes sense - I'm surprised we haven't spotted this before! The change looks good but there are a couple of other places that we'll need to make this change; Header component template file (Line 17) https://github.com/nhsuk/nhsuk-frontend/blob/master/packages/components/header/template.njk#L17 Header component template file (Line 28) https://github.com/nhsuk/nhsuk-frontend/blob/master/packages/components/header/template.njk#L28 Header component README file (There are a couple of places here) https://github.com/nhsuk/nhsuk-frontend/blob/master/packages/components/header/README.md We'll need a Thanks again. |
Applied the namespace to all known instances of I'll leave the CHANGELOG part to you guys to handle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @codebymikey looks good, I'll update the CHANGELOG
before the next release
Add the xlink namespace to address the 'Unbound namespace prefix: "xlink"' error.
Description
The SVG is currently not valid.
Checklist