fix(ui): resolve accessibility warnings for Sheet and SVG elements (#8019)

Co-authored-by: Pablo Lara <larabjj@gmail.com>
This commit is contained in:
sumit-tft
2025-06-23 16:55:05 +05:30
committed by GitHub
parent 7ab503a096
commit 6a331c05e8
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -35,6 +35,7 @@ All notable changes to the **Prowler UI** are documented in this file.
- Sync between filter buttons and URL when filters change [(#7928)](https://github.com/prowler-cloud/prowler/pull/7928)
- Improve heatmap perfomance [(#7934)](https://github.com/prowler-cloud/prowler/pull/7934)
- SelectScanProvider warning fixed with empty alias [(#7998)](https://github.com/prowler-cloud/prowler/pull/7998)
- Prevent console warnings for accessibility and SVG[(#8019)](https://github.com/prowler-cloud/prowler/pull/8019)
---
+2 -2
View File
@@ -1002,9 +1002,9 @@ export const AzureIcon: React.FC<IconSvgProps> = ({
{...props}
>
<path
fill-rule="evenodd"
fillRule="evenodd"
d="m15.37 13.68l-4-12a1 1 0 0 0-1-.68H5.63a1 1 0 0 0-.95.68l-4.05 12a1 1 0 0 0 1 1.32h2.93a1 1 0 0 0 .94-.68l.61-1.78l3 2.27a1 1 0 0 0 .6.19h4.68a1 1 0 0 0 .98-1.32m-5.62.66a.32.32 0 0 1-.2-.07L3.9 10.08l-.09-.07h3l.08-.21l1-2.53l2.24 6.63a.34.34 0 0 1-.38.44m4.67 0H10.7a1 1 0 0 0 0-.66l-4.05-12h3.72a.34.34 0 0 1 .32.23l4.05 12a.34.34 0 0 1-.32.43"
clip-rule="evenodd"
clipRule="evenodd"
/>
</svg>
);
+4
View File
@@ -5,7 +5,9 @@ import { ProwlerExtended } from "@/components/icons";
import {
Sheet,
SheetContent,
SheetDescription,
SheetHeader,
SheetTitle,
SheetTrigger,
} from "@/components/ui/sheet";
import { Menu } from "@/components/ui/sidebar/menu";
@@ -25,6 +27,8 @@ export function SheetMenu() {
side="left"
>
<SheetHeader>
<SheetTitle className="sr-only">Sidebar</SheetTitle>
<SheetDescription className="sr-only" />
<Button
className="flex items-center justify-center pb-2 pt-1"
variant="link"