Skip to content

Commit

Permalink
Fix axe link-in-text-block
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Aug 4, 2023
1 parent 38f0a05 commit 998c4ef
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
@using OrchardCore
@using OrchardCore.Commerce.Abstractions
@using OrchardCore.DisplayManagement.TagHelpers

@{
var line = (ShoppingCartLineViewModel)Model.Line;
var attributes = (IList<(IProductAttributeValue Value, string Type, int Index)>)Model.ProductAttributes;
}

<a href="@Orchard.GetItemDisplayUrl(line.Product.ContentItem)" class="link-primary">@line.ProductName</a>
<div class="cart-product-name">
<a href="@Orchard.GetItemDisplayUrl(line.Product.ContentItem)" class="link-primary">@line.ProductName</a>
</div>

@if (line.Attributes?.Any() == true)
{
<ul class="cart-product-attributes list-inline">
Expand Down

0 comments on commit 998c4ef

Please sign in to comment.