govuk_publishing_components
govuk_publishing_components copied to clipboard
HTML validation bug in cookie banner
What:
Noted by Anika, https://gds.slack.com/archives/CARGH33JS/p1692285458097259 we have <p>
tags inside a <span>
tag in the cookie banner - the fix is probably to simply switch the span to a div.
Why:
No visible issues, but invalid HTML is not a good look. Affects all pages as the banner is presented to whatever page is the first landing page.
Prioritisation score: 3
Reach: 3
, Severity: 1
, Effort: 1
Is the span even doing anything useful? Like, could those P tags just be straight inside the enclosing div?
Is the span even doing anything useful? Like, could those P tags just be straight inside the enclosing div?
It's the parent container that gets hidden upon choosing a preference, so it does serve a purpose.