summaryrefslogtreecommitdiff
path: root/examples/ssr/src/components/Cart.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ssr/src/components/Cart.svelte')
-rw-r--r--examples/ssr/src/components/Cart.svelte6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/ssr/src/components/Cart.svelte b/examples/ssr/src/components/Cart.svelte
index 63dd1b5a5..74db0bc79 100644
--- a/examples/ssr/src/components/Cart.svelte
+++ b/examples/ssr/src/components/Cart.svelte
@@ -12,6 +12,8 @@
.cart {
display: flex;
align-items: center;
+ text-decoration: none;
+ color: inherit;
}
.cart :first-child {
margin-right: 5px;
@@ -26,7 +28,7 @@
}
</style>
<svelte:window on:add-to-cart={onAddToCart}/>
-<div class="cart">
+<a href="/cart" class="cart">
<span class="material-icons cart-icon">shopping_cart</span>
<span class="count">{count}</span>
-</div>
+</a>