Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/components/CartComponent/CartDrawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default function CartDrawer({ isOpen, onClose }) {
className="p-2 hover:bg-gray-100 rounded-full transition"
aria-label="Close cart"
>
<X className="h-5 w-5 text-gray-700" />
<X className="close-icon h-5 w-5 text-gray-700" />
</button>
</div>

Expand All @@ -196,7 +196,11 @@ export default function CartDrawer({ isOpen, onClose }) {
<p className="text-gray-600 text-sm font-medium mb-6">
Your cart is empty
</p>
<Link to="/products" onClick={onClose} className="text-gray-800 underline">
<Link
to="/products"
onClick={onClose}
className="text-gray-800 underline"
>
Explore our products.
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/SearchBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default function SearchBox({ onClose, isOpen }) {
className="p-2 rounded-full hover:bg-gray-100 transition-colors duration-200 cursor-pointer"
aria-label="Close search"
>
<X className="w-5 h-5 text-gray-600" />
<X className="close-icon w-5 h-5 text-gray-600 " />
</button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/components/WishList/WishListScreen.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const WishListScreen = ({ wishListData, setWishListOpen }) => {
className="text-gray-600 hover:text-red-500 cursor-pointer"
onClick={() => setWishListOpen(false)}
>
<X size={24} />
<X className="close-icon" />
</button>
</div>

Expand Down
17 changes: 17 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,20 @@
transition: none !important;
}
}

.close-icon {
height: 1.25rem;
width: 1.25rem;
color: #374151;
transition-property: transform, color;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transform-origin: center;
transform: rotate(0deg) scale(1);
}

.close-icon:hover,
.close-icon:focus {
transform: rotate(90deg) scale(1.1);
color: #ef4444;
}