Skip to content

Commit

Permalink
(fix) Replace deprecated xlinkHref SVG prop with href
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Aug 13, 2024
1 parent 983d981 commit 79dd2ab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/apps/esm-login-app/src/login/login.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const Login: React.FC = () => {
<p className={styles.poweredByTxt}>{t('poweredBy', 'Powered by')}</p>
<div>
<svg role="img" className={styles.poweredByLogo}>
<use xlinkHref="#omrs-logo-partial-mono"></use>
<use href="#omrs-logo-partial-mono"></use>
</svg>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/esm-login-app/src/logo.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Logo: React.FC<{ t: TFunction }> = ({ t }) => {
) : (
<svg role="img" className={styles.logo}>
<title>{t('openmrsLogo', 'OpenMRS logo')}</title>
<use xlinkHref="#omrs-logo-full-color"></use>
<use href="#omrs-logo-full-color"></use>
</svg>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Logo: React.FC = () => {
logo.name
) : (
<svg role="img" width={110} height={40}>
<use xlinkHref="#omrs-logo-white" />
<use href="#omrs-logo-white" />
</svg>
)}
</>
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/esm-styleguide/src/icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ export const Icon = memo(
width={size}
viewBox="0 0 16 16"
>
<use xlinkHref={`#${icon}`} />
<use href={`#${icon}`} />
</svg>
);
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Pictogram = memo(

return (
<svg ref={ref} className={classNames(className)} height={size} width={size}>
<use xlinkHref={`#${pictogram}`} />
<use href={`#${pictogram}`} />
</svg>
);
}),
Expand Down

0 comments on commit 79dd2ab

Please sign in to comment.