From d8fdd43416a373e13fce66b07342c342d9a61639 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Sat, 11 Jul 2026 11:28:57 +0200 Subject: [PATCH] feat: enhance accessibility by adding ARIA attributes and focus styles; improve canvas and button elements --- view/App.tsx | 14 +++--- view/CanvasViewport.tsx | 9 +++- view/GenerateSheet.tsx | 1 + view/LayersSheet.tsx | 3 ++ view/bottom-controls/BrushControls.tsx | 4 +- view/bottom-controls/MagicWandControls.tsx | 4 +- view/bottom-controls/SelectMenu.tsx | 56 +++++++++++++++++++--- view/index.css | 16 +++++++ 8 files changed, 89 insertions(+), 18 deletions(-) diff --git a/view/App.tsx b/view/App.tsx index 72ec449..1009c12 100644 --- a/view/App.tsx +++ b/view/App.tsx @@ -159,25 +159,25 @@ export function App({ app }: AppProps) { />
- - - - - - -
diff --git a/view/CanvasViewport.tsx b/view/CanvasViewport.tsx index fb405c6..1f29a9a 100644 --- a/view/CanvasViewport.tsx +++ b/view/CanvasViewport.tsx @@ -42,7 +42,14 @@ export function CanvasViewport({ const hasBrushPreview = Boolean(cursorState.hasBrushPreview && !brushHint && canPreviewBrush(cursorState.document, cursorState.editor)); const cursorClass = canvasCursorClass(cursorState.editor.tools.interactionMode, cursorState.isPanning, hasBrushPreview, !brushHint); - return ; + return ( + + ); } type CanvasCursorState = { diff --git a/view/GenerateSheet.tsx b/view/GenerateSheet.tsx index 29fb834..47488b9 100644 --- a/view/GenerateSheet.tsx +++ b/view/GenerateSheet.tsx @@ -13,6 +13,7 @@ export type GenerateSheetProps = { export function GenerateSheet({ settings, resources, open, dispatch }: GenerateSheetProps) { return (