From d28bbef4a3ef9f3844ff8cd79640cd3f688df2bb Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 17 Jul 2026 23:16:03 +0100 Subject: [PATCH 1/2] fix(a11y): improve accessibility --- package.json | 3 +- src/components/App.tsx | 74 +++++++++++++--------------------------- src/layouts/Layout.astro | 5 +-- 3 files changed, 26 insertions(+), 56 deletions(-) diff --git a/package.json b/package.json index 58a3cb7..933a0c1 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,9 @@ "build": "astro build", "deploy": "wrangler deploy", "dev": "astro dev", - "format": "biome check --write --linter-enabled=false", + "format": "biome check --write", "lint": "biome check", + "preview": "astro preview", "test": "bun test", "typecheck": "tsc --noEmit" }, diff --git a/src/components/App.tsx b/src/components/App.tsx index 0b5202e..eec71b8 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -235,6 +235,17 @@ export default function App() { Limit Results (max 3000)
+ { if (e.key === "Enter") startAnalysis(); }} - class="w-full px-4 py-2.5 bg-slate-950/60 border border-r-0 border-slate-800 rounded-l-xl text-slate-100 focus:ring-2 focus:ring-blue-500/50 focus:border-blue-500 focus:outline-none transition-all duration-200 shadow-inner [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" + class="w-full px-4 py-2.5 text-center bg-slate-950/60 border border-l-0 border-r-0 border-slate-800 text-slate-100 focus:ring-2 focus:ring-blue-500/50 focus:border-blue-500 focus:outline-none transition-all duration-200 shadow-inner [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" /> -
- - -
+