From c7e5d903554b25a9146b046036a6b08df15c6cf5 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Thu, 20 Mar 2025 19:49:25 +0100 Subject: [PATCH] Error screens --- .../a11y/src/components/A11YPanel.stories.tsx | 31 ++++--- code/addons/a11y/src/components/A11YPanel.tsx | 85 +++++++++++++++---- .../a11y/src/components/A11yContext.tsx | 23 ++++- .../TestDiscrepancyMessage.stories.tsx | 1 + code/addons/a11y/src/constants.ts | 3 + code/addons/test/src/node/reporter.ts | 2 +- 6 files changed, 114 insertions(+), 31 deletions(-) diff --git a/code/addons/a11y/src/components/A11YPanel.stories.tsx b/code/addons/a11y/src/components/A11YPanel.stories.tsx index 61335372db5..794de646fb7 100644 --- a/code/addons/a11y/src/components/A11YPanel.stories.tsx +++ b/code/addons/a11y/src/components/A11YPanel.stories.tsx @@ -29,21 +29,13 @@ const managerContext: any = { state: {}, api: { getDocsUrl: fn().mockName('api::getDocsUrl'), + getCurrentParameter: fn().mockName('api::getCurrentParameter'), }, }; const meta: Meta = { title: 'Panel', component: A11YPanel, - decorators: [ - (Story) => ( - - - - - - ), - ], parameters: { layout: 'fullscreen', }, @@ -73,7 +65,11 @@ const Template = (args: Pick - + + + + + ); @@ -154,7 +150,7 @@ export const Error: Story = {