Skip to content

Commit

Permalink
Turning a links to button links as a links are not picked up on GA
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Sep 16, 2024
1 parent 823dda4 commit 8d78992
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/app/page/component/tract-page/tract-page.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ app-tract-new-page {
margin-top: 48px !important;
}

#tool-navigation .button .hidden {
display: none;
}

#tool-navigation .button:first-child:not(:last-child) {
border-right-width: 0;
border-top-right-radius: 0;
Expand Down
16 changes: 8 additions & 8 deletions src/app/page/component/tract-page/tract-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,43 @@
<ng-container *ngIf="(dir$ | async) === 'ltr'">
<!-- If not first page -->
<ng-container *ngIf="(isFirstPage$ | async) === false">
<a
<button
(click)="previous()"
href="javascript:void(0)"
class="button button-white far hide-text fa-arrow-left"
><span class="hidden">Previous</span></a
>Previous</button
>
</ng-container>

<!-- If not last page -->
<ng-container *ngIf="(isLastPage$ | async) === false">
<a
<button
(click)="next()"
href="javascript:void(0)"
class="button far fa-arrow-right"
><span class="hidden">Next</span></a
>Next</button
>
</ng-container>
</ng-container>

<ng-container *ngIf="(dir$ | async) === 'rtl'">
<!-- If not first page -->
<ng-container *ngIf="(isLastPage$ | async) === false">
<a
<button
(click)="next()"
href="javascript:void(0)"
class="button far fa-arrow-left"
><span class="hidden">Next</span></a
>Next</button
>
</ng-container>

<!-- If not last page -->
<ng-container *ngIf="(isFirstPage$ | async) === false">
<a
<button
(click)="previous()"
href="javascript:void(0)"
class="button button-white far hide-text fa-arrow-right"
><span class="hidden">Previous</span></a
>Previous</button
>
</ng-container>
</ng-container>
Expand Down

0 comments on commit 8d78992

Please sign in to comment.