diff --git a/app/components/calls_to_action/apply_component.rb b/app/components/calls_to_action/apply_component.rb index 900a24b2dd..fdb3d73225 100644 --- a/app/components/calls_to_action/apply_component.rb +++ b/app/components/calls_to_action/apply_component.rb @@ -20,7 +20,7 @@ def before_render fail(ArgumentError, "a title or text\/content must be present") if [title, text, content].all?(&:nil?) @icon = icon_element(@icon_filename) - @link = link_to(@link_text, @link_target, class: "button") if @link_text.present? + @link = link_to(@link_text, @link_target, class: "button", role: "button", "data-promo-type": "apply") if @link_text.present? end private diff --git a/app/components/calls_to_action/find_component.rb b/app/components/calls_to_action/find_component.rb index b9ca136da9..fc96e4573b 100644 --- a/app/components/calls_to_action/find_component.rb +++ b/app/components/calls_to_action/find_component.rb @@ -20,7 +20,7 @@ def before_render fail(ArgumentError, "a title or text\/content must be present") if [title, text, content].all?(&:nil?) @icon = icon_element(@icon_filename) - @link = link_to(@link_text, @link_target, class: "button") if @link_text.present? + @link = link_to(@link_text, @link_target, class: "button", role: "button", "data-promo-type": "find") if @link_text.present? end private