Skip to content

Commit

Permalink
fix: remove patch-package and add correct accessibility to SVG (#159)
Browse files Browse the repository at this point in the history
* fix: remove patch-package

* fix: remove patch-package

* fix(svg): accessibility with title instead of alt text
  • Loading branch information
panvourtsis authored Jul 2, 2024
1 parent c389441 commit 99670ac
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 19 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"jsdom": "^24.1.0",
"jwt-encode": "^1.0.1",
"lint-staged": "^12.4.1",
"patch-package": "^8.0.0",
"prettier": "^2.6.2",
"prettier-plugin-organize-imports": "^3.2.2",
"react": "^18.1.0",
Expand Down Expand Up @@ -101,8 +100,7 @@
"test": "vitest run",
"test:watch": "node --experimental-vm-modules ./node_modules/.bin/jest --watch",
"documentation:generate": "typedoc --out typeDocs src",
"documentation:up": "cd documentation && yarn start",
"postinstall": "patch-package"
"documentation:up": "cd documentation && yarn start"
},
"keywords": [
"Orfium",
Expand Down
13 changes: 0 additions & 13 deletions patches/vite-plugin-svgr+4.2.0.patch

This file was deleted.

2 changes: 1 addition & 1 deletion src/ui/ErrorFallback/ErrorFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
const ErrorFallback = ({ error, resetErrorBoundary }: any) => {
return (
<Wrapper role="alert">
<ErrorCover alt="Error fallback cover" />
<ErrorCover title="Error fallback cover" />
<ContentWrapper>
<div style={{ textAlign: 'center' }}>
<Box>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Navigation/components/GlobalNav/GlobalNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function GlobalNavLink(props: GlobalNavLinkProps) {
return adminNavigationIsActive;
}}
>
<AdminIcon alt={adminButtonTooltipText} />
<AdminIcon title={adminButtonTooltipText} />
</AppIconRRLink>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/TopBar/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function TopBar({ utilitySlot, menuItems = [] }: TopBarProps) {

return (
<TopAppBarWrapper role="banner" aria-label="Top Application Banner">
<Logo alt={'Orfium logo'} height={28} width={28} />
<Logo title={'Orfium logo'} height={28} width={28} />
<UserDefinedSlot>{topBarUtilitySlot || utilitySlot}</UserDefinedSlot>
<UserSection>
<UserMenu menuItems={menuItems} />
Expand Down

0 comments on commit 99670ac

Please sign in to comment.