Compare commits

...

1 Commits

Author SHA1 Message Date
JayashTripathy
e47b8f4522 chore: utilised chevronClassname inside of custom-menu 2025-06-05 10:38:05 +05:30

View File

@@ -30,6 +30,7 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
noChevron = false,
optionsClassName = "",
menuItemsClassName = "",
chevronClassName = "",
verticalEllipsis = false,
portalElement,
menuButtonOnClick,
@@ -168,7 +169,9 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
tabIndex={customButtonTabIndex}
aria-label={ariaLabel}
>
<MoreHorizontal className={`h-3.5 w-3.5 ${verticalEllipsis ? "rotate-90" : ""}`} />
<MoreHorizontal
className={cn(`h-3.5 w-3.5 ${verticalEllipsis ? "rotate-90" : ""}`, chevronClassName)}
/>
</button>
</Menu.Button>
) : (
@@ -189,7 +192,7 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
aria-label={ariaLabel}
>
{label}
{!noChevron && <ChevronDown className="h-3.5 w-3.5" />}
{!noChevron && <ChevronDown className={cn("h-3.5 w-3.5", chevronClassName)} />}
</button>
</Menu.Button>
)}