CSR-1843: fix places where link causes scroll to top

This commit is contained in:
Adam Caouette 2023-11-29 08:04:31 -05:00
parent 7f37cd6db1
commit e725baf852
2 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@
@click="toggleIsExpanded()">
<a
aria-label="expand cart"
href="#!"
href="javascript:void(0)"
class="col d-flex justify-content-between py-0">
<span class="label">{{ amountDueText }}</span>
<span class="label amount-due">{{ getFormattedAmount("", amountDue) }}</span>
@ -30,7 +30,7 @@
ref="removeLink"
linkType="text"
:text="removeLinkText"
href="#!"
href="javascript:void(0)"
@click-event="removeItem(cartItem.cartItemType, cartItem.category)">
<template v-slot:after-text>
<span class="sr-only">{{ cartItem.name }}</span>
@ -53,13 +53,13 @@
ref="removeLink"
linkType="text"
:text="removeLinkText"
href="#!"
href="javascript:void(0)"
@click-event="removeItem(cartItem.cartItemType, cartItem.category)" />
<textLink
v-else-if="cartItem == recycleFeeCartItem && recyclingModalCmsWidgetName"
linkType="text"
:text="recycleFeeCartItem.name"
href="#!"
href="javascript:void(0)"
@click-event="openModal(recyclingModalCmsWidgetName)" />
<span v-else-if="cartItem == recycleFeeCartItem">
{{ recycleFeeCartItem.name }}

View file

@ -4,7 +4,7 @@
id="promoLinkPromptId"
linkType="text"
:text="promoLinkText"
href="#!"
href="javascript:void(0)"
@click-event="openModal" />
<modal
:ref="modalName"
@ -57,7 +57,7 @@
ref="removeLink"
linkType="text"
:text="removeLinkText"
href="#!"
href="javascript:void(0)"
@click-event="removeItem(promoCode)" />
</div>
</modal>