From f9660b4bc23d2ba8cc24d6807b9e7058f2e399b4 Mon Sep 17 00:00:00 2001 From: paco <34928425+pacocoursey@users.noreply.github.com> Date: Thu, 8 Oct 2020 18:00:05 -0600 Subject: [PATCH] Styling and icon fixes for cart sidebar --- components/cart/CartItem/CartItem.module.css | 2 +- components/cart/CartItem/CartItem.tsx | 16 ++++++++------ .../cart/CartSidebarView/CartSidebarView.tsx | 12 +++++----- components/icon/ArrowLeft.tsx | 22 +++++++++++++++++++ components/icon/Minus.tsx | 15 +++++++++++++ components/icon/Plus.tsx | 22 +++++++++++++++++++ components/icon/index.ts | 3 +++ components/ui/Button/Button.tsx | 5 +++++ components/ui/Sidebar/Sidebar.tsx | 4 ++-- 9 files changed, 85 insertions(+), 16 deletions(-) create mode 100644 components/icon/ArrowLeft.tsx create mode 100644 components/icon/Minus.tsx create mode 100644 components/icon/Plus.tsx diff --git a/components/cart/CartItem/CartItem.module.css b/components/cart/CartItem/CartItem.module.css index b6a8858b1..17715c7dc 100644 --- a/components/cart/CartItem/CartItem.module.css +++ b/components/cart/CartItem/CartItem.module.css @@ -1,6 +1,6 @@ .quantity { appearance: textfield; - @apply w-6 border-gray-300 border mx-3 rounded text-center text-sm; + @apply w-8 border-gray-300 border mx-3 rounded text-center text-sm; } .quantity::-webkit-outer-spin-button, diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index 4b4d0f01d..94fbff5c9 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -1,4 +1,4 @@ -import { Trash } from '@components/icon' +import { Trash, Plus, Minus } from '@components/icon' import { useCommerce } from '@lib/bigcommerce' import useUpdateItem from '@lib/bigcommerce/cart/use-update-item' import useRemoveItem from '@lib/bigcommerce/cart/use-remove-item' @@ -57,27 +57,29 @@ const CartItem = ({ }, [item.quantity]) return ( -