From 37f013f0cb97082b98e86a8f80248ccdc798c264 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Tue, 3 Oct 2023 14:52:46 +0100 Subject: [PATCH] Add a space before visually-hidden-text in summary list action --- .../HtmlGeneration/ComponentGenerator.SummaryList.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GovUk.Frontend.AspNetCore/HtmlGeneration/ComponentGenerator.SummaryList.cs b/src/GovUk.Frontend.AspNetCore/HtmlGeneration/ComponentGenerator.SummaryList.cs index 2e4b17e3..8a37644d 100644 --- a/src/GovUk.Frontend.AspNetCore/HtmlGeneration/ComponentGenerator.SummaryList.cs +++ b/src/GovUk.Frontend.AspNetCore/HtmlGeneration/ComponentGenerator.SummaryList.cs @@ -134,6 +134,7 @@ static TagBuilder GenerateLink(SummaryListAction action, int rowIndex) var vht = new TagBuilder("span"); vht.MergeCssClass("govuk-visually-hidden"); vht.InnerHtml.Append(action.VisuallyHiddenText); + anchor.InnerHtml.Append(" "); anchor.InnerHtml.AppendHtml(vht); }