I'll update the CustomSelect component to adjust the height and padding of the SelectItem as you've requested.
I've made the following changes to the CustomSelect component:
These changes will ensure that each item in the select dropdown has a height of 32px and padding of 4px vertically and 8px horizontally.
Is there anything else you'd like me to modify or improve in the custom select component?
I'll remove the position absolute from the SelectItem's selected icon. Let's update the CustomSelect component to achieve this.
I've made the following changes to the CustomSelect component:
relative class from the SelectItem.absolute positioning from the Check icon.flex items-center justify-between to the SelectItem to position the label and icon side by side.px-2 pr-6 to accommodate the icon without absolute positioning.These changes will remove the absolute positioning from the selected icon while maintaining the desired layout. The icon will now be part of the normal flow of the SelectItem.
Is there anything else you'd like me to modify or improve in the custom select component?