From d8078a0c51d4aa2a57e4a41d1d596f49eb149101 Mon Sep 17 00:00:00 2001 From: sarahmwong Date: Wed, 5 Jun 2024 15:42:50 +0100 Subject: [PATCH] update css element for warning text --- R/warning_text.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/warning_text.R b/R/warning_text.R index 11ef0d5..ef80dc6 100644 --- a/R/warning_text.R +++ b/R/warning_text.R @@ -31,7 +31,7 @@ warning_text <- function(inputId, text){ "!", class="govuk-warning-text__icon", `aria-hidden`="true" ), shiny::tags$strong(text, class="govuk-warning-text__text", - shiny::tags$span("Warning", class="govuk-warning-text__assistive") + shiny::tags$span("Warning", class="govuk-visually-hidden") ) ) attachDependency(govWarning)