lib/ccs/components/govuk/warning_text.rb in ccs-frontend_helpers-0.1.2 vs lib/ccs/components/govuk/warning_text.rb in ccs-frontend_helpers-0.2.0

- old
+ new

@@ -40,10 +40,10 @@ def render tag.div(**options[:attributes]) do concat(tag.span('!', class: 'govuk-warning-text__icon', aria: { hidden: true })) concat(tag.strong(class: 'govuk-warning-text__text') do - concat(tag.span(options[:icon_fallback_text] || 'Warning', class: 'govuk-warning-text__assistive')) + concat(tag.span(options[:icon_fallback_text] || 'Warning', class: 'govuk-visually-hidden')) if text concat(text) else yield end