Skip to content

Commit 88ee9a4

Browse files
authored
Refactor SortDropdown component for clarity and functionality
1 parent f8b1db4 commit 88ee9a4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/Products/SortDropdown.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function SortDropdown({ sortBy = 'featured', sortOrder = 'desc',
6161
</button>
6262

6363
<div
64-
className={`absolute top-0 left-0 right-0 z-50 w-full bg-white border border-gray-200 rounded-lg shadow-xl overflow-hidden transition-[max-height,opacity] duration-300 ease-out ${
64+
className={`absolute top-0 left-0 right-0 z-10 w-full bg-white border border-gray-200 rounded-lg shadow-xl overflow-hidden transition-[max-height,opacity] duration-300 ease-out ${
6565
isOpen ? 'max-h-96 opacity-100' : 'max-h-0 opacity-0'
6666
}`}
6767
aria-hidden={!isOpen}
@@ -105,4 +105,5 @@ export default function SortDropdown({ sortBy = 'featured', sortOrder = 'desc',
105105
</div>
106106
</div>
107107
);
108-
}
108+
109+
}

0 commit comments

Comments
 (0)