Skip to content

Commit 28c2cfe

Browse files
committed
fix: Improve Cart button styling for dark mode
Updated the Cart component's button backgrounds and borders to better support dark mode and enhance visual clarity. Adjusted classes to use conditional dark and light styles for improved user experience.
1 parent 94aac1e commit 28c2cfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/components/Cart.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ const { order } = useCheckout();
3333
</div>
3434
</div>
3535
<div
36-
class="absolute md:opacity-0 group-hover:opacity-100 top-2 right-2 md:-top-1 md:-right-1 transition space-y-0.5 flex flex-col p-0.5 bg-neutral-800 border border-white/5 items-center justify-center rounded-full">
37-
<div class="bg-white/10 hover:bg-white/30 transition-all rounded-full p-0.5 w-5 h-5 flex items-center justify-center">
36+
class="absolute md:opacity-0 group-hover:opacity-100 top-2 right-2 md:-top-1 md:-right-1 transition space-y-0.5 flex flex-col p-0.5 dark:bg-white/10 bg-black/10 backdrop-blur border dark:border-white/5 border-black/5 items-center justify-center rounded-full">
37+
<div class="dark:bg-white/10 bg-white/50 dark:hover:bg-white/30 hover:bg-white/100 transition-all rounded-full p-0.5 w-5 h-5 flex items-center justify-center">
3838
<UIcon size="14" name="i-iconamoon-sign-plus" class="text-black dark:text-white cursor-pointer" @click="increment(product.variation.node.databaseId)" />
3939
</div>
4040
<span class="text-center text-sm">{{ product.quantity }}</span>
41-
<div class="bg-white/10 hover:bg-white/30 transition-all rounded-full p-0.5 w-5 h-5 flex items-center justify-center">
41+
<div class="dark:bg-white/10 bg-white/50 dark:hover:bg-white/30 hover:bg-white/100 transition-all rounded-full p-0.5 w-5 h-5 flex items-center justify-center">
4242
<UIcon
4343
size="14"
4444
:name="product.quantity > 1 ? 'i-iconamoon-sign-minus' : 'i-iconamoon-trash-light'"

0 commit comments

Comments
 (0)