Skip to content

Commit ba305c3

Browse files
committed
Add xmlns:xlink to NHS Logo
1 parent 3345d95 commit ba305c3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/header/components/NHSLogo.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ export interface NHSLogoNavProps extends AsElementLink<HTMLAnchorElement> {}
1111

1212
const SVGImageWithSrc: React.FC<SVGImageWithSrc> = props => <image {...props} />;
1313

14-
const NHSLogo: React.FC<NHSLogoNavProps> = ({ className, alt, asElement: Component = 'a', ...rest }) => {
14+
const NHSLogo: React.FC<NHSLogoNavProps> = ({
15+
className,
16+
alt,
17+
asElement:
18+
Component = 'a',
19+
...rest
20+
}) => {
1521
const { serviceName, hasMenuToggle, hasSearch } = useContext<IHeaderContext>(HeaderContext);
1622
return (
1723
<div
@@ -30,6 +36,7 @@ const NHSLogo: React.FC<NHSLogoNavProps> = ({ className, alt, asElement: Compone
3036
<svg
3137
className="nhsuk-logo"
3238
xmlns="http://www.w3.org/2000/svg"
39+
xmlnsXlink="http://www.w3.org/1999/xlink"
3340
role="img"
3441
focusable="false"
3542
viewBox="0 0 40 16"

0 commit comments

Comments
 (0)