Skip to content

Commit d921993

Browse files
chore(js-ts): Fix accessibility for IconLogo component
Co-Authored-By: Joseph Gross <[email protected]>
1 parent 225f68e commit d921993

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/elements/common/header/Logo.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ interface LogoProps {
1616

1717
function getLogo(url?: string): React.ReactNode {
1818
if (url === 'box') {
19-
return <IconLogo aria-label="Box logo" role="img" />;
19+
return (
20+
<span role="img" aria-label="Box logo">
21+
<IconLogo />
22+
</span>
23+
);
2024
}
2125
if (typeof url === 'string') {
2226
return <img alt="Logo" aria-label="Custom logo" className="be-logo-custom" src={url} />;

0 commit comments

Comments
 (0)