lib/govspeak.rb in govspeak-6.5.2 vs lib/govspeak.rb in govspeak-6.5.3
- old
+ new
@@ -159,13 +159,13 @@
\) # match end of link text markdown
\s* # any whitespace between opening bracket and link
{\/button} # match ending bracket
(?:\r|\n|$) # non-capturing match to make sure end of line and linebreak
}x) { |attributes, text, href|
- button_classes = "button"
- button_classes << " button-start" if attributes =~ /start/
+ button_classes = "govuk-button"
/cross-domain-tracking:(?<cross_domain_tracking>.[^\s*]+)/ =~ attributes
data_attribute = ""
+ data_attribute << " data-start='true'" if attributes =~ /start/
if cross_domain_tracking
data_attribute << " data-module='cross-domain-tracking'"
data_attribute << " data-tracking-code='#{cross_domain_tracking.strip}'"
data_attribute << " data-tracking-name='govspeakButtonTracker'"
end