Skip to content

Commit

Permalink
update va-link for event details page
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kim authored and Chris Kim committed Jul 23, 2024
1 parent 2b88627 commit b9146c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
19 changes: 6 additions & 13 deletions src/site/includes/directions-google-maps.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@ directionsLinkOnClickPropName
directionsLinkOnClickPropValue
{% endcomment %}

{% assign onClick = "" %}
{% if directionsLinkOnClickPropName != empty and directionsLinkOnClickPropValue != empty %}
{% capture onClick %}
onclick="recordEvent({ event: 'directions-link-click', '{{ directionsLinkOnClickPropName }}': '{{ directionsLinkOnClickPropValue }}'});"
{% endcapture %}
{% endif %}

<div>
<a
{{ onClick | strip }}
href="https://maps.google.com?saddr=Current+Location&amp;daddr={{ directionsLinkAddress | strip }}">
Get directions on Google Maps
<span class="sr-only">to {{ directionsLinkTitle | strip }}</span>
</a>
<va-link
aria-label="to {{ directionsLinkTitle | strip }}"
href="https://maps.google.com?saddr=Current+Location&amp;daddr={{ directionsLinkAddress | strip }}"
text="Get directions on Google Maps"
/>
</va-link>
</div>
1 change: 0 additions & 1 deletion src/site/layouts/event.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@
<va-link
class="vads-u-display--block vads-u-margin-top--2"
href="{{ fieldListing.entity.entityUrl.path }}"
onclick="recordEvent({ event: 'nav-secondary-button-click' });"
text="Browse the {{ vamcLocation }} events calendar"
></va-link>
{% endif %}
Expand Down

0 comments on commit b9146c2

Please sign in to comment.