From 7ab5e6d0cef2ea95247ea86f7eed752078fc6b45 Mon Sep 17 00:00:00 2001 From: Ebad Yousefzadeh Date: Fri, 8 May 2026 23:28:47 +0330 Subject: [PATCH] fix(a11y): default icons to aria-hidden=true --- icon-sprite/src/_shared.tsx | 4 +-- icon-sprite/tests/run-all-tests.js | 5 +++ .../tests/test-accessibility-defaults.test.js | 31 +++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 icon-sprite/tests/test-accessibility-defaults.test.js diff --git a/icon-sprite/src/_shared.tsx b/icon-sprite/src/_shared.tsx index f3afbc74..0d49cd62 100644 --- a/icon-sprite/src/_shared.tsx +++ b/icon-sprite/src/_shared.tsx @@ -20,10 +20,10 @@ export type IconProps = React.SVGProps & { }; // Ultra-minimal renderUse - all logic in one place -export function renderUse(id: string, path: string, { size, width, height, style, strokeWidth, ...rest }: IconProps) { - return ( +export function renderUse(id: string, path: string, { size, width, height, style, strokeWidth, "aria-hidden": ariaHidden, ...rest }: IconProps) { return (