From 1af4ab1f26447f5622636dbd8ead541efbc1b3da Mon Sep 17 00:00:00 2001 From: Ed Horsford Date: Tue, 11 Jun 2024 10:39:28 +0100 Subject: [PATCH] Add visually hidden text to summary list examples --- .../SummaryList.stories.tsx | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/stories/Content Presentation/SummaryList.stories.tsx b/stories/Content Presentation/SummaryList.stories.tsx index 6758b19a..1b3fe488 100644 --- a/stories/Content Presentation/SummaryList.stories.tsx +++ b/stories/Content Presentation/SummaryList.stories.tsx @@ -29,14 +29,18 @@ export const Standard: Story = { Name Sarah Philips - Change + + Change name + Date of birth 5 January 1978 - Change + + Change date of birth + @@ -49,7 +53,9 @@ export const Standard: Story = { SE23 6FH - Change + + Change contact information + @@ -59,11 +65,20 @@ export const Standard: Story = { sarah.phillips@example.com - Change + + Change contact details + ), + parameters: { + docs: { + description: { + story: 'Change links must include visually hidden text. This means a screen reader user will hear a meaningful action, like "Change name" or "Change date of birth".' + } + } + } }; export const SummaryListWithoutActions: Story = {