Skip to content

Commit f889ee9

Browse files
authored
Merge pull request #81 from NHSDigital/feature/addxmlnsXlinkToNhsLogo
NHS.UK 4 - Add xmlns:xlink to NHS Logo
2 parents 3345d95 + 61931c3 commit f889ee9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/header/components/NHSLogo.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ 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: Component = 'a',
18+
...rest
19+
}) => {
1520
const { serviceName, hasMenuToggle, hasSearch } = useContext<IHeaderContext>(HeaderContext);
1621
return (
1722
<div
@@ -30,6 +35,7 @@ const NHSLogo: React.FC<NHSLogoNavProps> = ({ className, alt, asElement: Compone
3035
<svg
3136
className="nhsuk-logo"
3237
xmlns="http://www.w3.org/2000/svg"
38+
xmlnsXlink="http://www.w3.org/1999/xlink"
3339
role="img"
3440
focusable="false"
3541
viewBox="0 0 40 16"

0 commit comments

Comments
 (0)