From 2e591f501a886beea4935e9c17dd0a289010d7c9 Mon Sep 17 00:00:00 2001 From: jessy-david-dev Date: Wed, 29 Apr 2026 15:14:11 +0200 Subject: [PATCH] feat: replace inline SVG with radix-ui AccessibilityIcon --- package.json | 3 --- pnpm-lock.yaml | 13 ------------- src/components/AccessibilityWidget.tsx | 13 +++++++++++-- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 98437b4..325e01b 100644 --- a/package.json +++ b/package.json @@ -59,8 +59,5 @@ "typescript-eslint": "^8.58.2", "vite": "^6.4.2", "vite-plugin-dts": "^4.5.4" - }, - "dependencies": { - "@radix-ui/react-icons": "^1.3.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5a2af93..2ccaee6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,10 +7,6 @@ settings: importers: .: - dependencies: - '@radix-ui/react-icons': - specifier: ^1.3.2 - version: 1.3.2(react@19.2.5) devDependencies: '@eslint/js': specifier: ^10.0.1 @@ -387,11 +383,6 @@ packages: '@microsoft/tsdoc@0.16.0': resolution: {integrity: sha512-xgAyonlVVS+q7Vc7qLW0UrJU7rSFcETRWsqdXZtjzRU8dF+6CkozTK4V4y1LwOX7j8r/vHphjDeMeGI4tNGeGA==} - '@radix-ui/react-icons@1.3.2': - resolution: {integrity: sha512-fyQIhGDhzfc9pK2kH6Pl9c4BDJGfMkPqkyIgYDthyNYoNg3wVhoJMMh19WS4Up/1KMPFVpNsT2q3WmXn2N1m6g==} - peerDependencies: - react: ^16.x || ^17.x || ^18.x || ^19.0.0 || ^19.0.0-rc - '@rolldown/pluginutils@1.0.0-beta.27': resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==} @@ -1697,10 +1688,6 @@ snapshots: '@microsoft/tsdoc@0.16.0': {} - '@radix-ui/react-icons@1.3.2(react@19.2.5)': - dependencies: - react: 19.2.5 - '@rolldown/pluginutils@1.0.0-beta.27': {} '@rollup/pluginutils@5.3.0(rollup@4.60.2)': diff --git a/src/components/AccessibilityWidget.tsx b/src/components/AccessibilityWidget.tsx index 8501d88..40fd5cc 100644 --- a/src/components/AccessibilityWidget.tsx +++ b/src/components/AccessibilityWidget.tsx @@ -1,5 +1,4 @@ import { useState, useRef, useCallback } from "react"; -import { AccessibilityIcon } from "@radix-ui/react-icons"; import { useA11yStore } from "../store"; import { useA11yEffects } from "../useA11yEffects"; import { AccessibilityPanel } from "./AccessibilityPanel"; @@ -88,7 +87,17 @@ export function AccessibilityWidget({ aria-haspopup="dialog" onClick={() => setOpen((v) => !v)} > -