Skip to content

Commit

Permalink
add tracking to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jenhadfield-dfe committed Jan 15, 2025
1 parent 2943932 commit 913d89b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/calls_to_action/apply_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/components/calls_to_action/find_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 913d89b

Please sign in to comment.