Skip to content

chore: add chevronIconClassName prop to CustomMenu #7163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: preview
Choose a base branch
from
Draft
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
7 changes: 5 additions & 2 deletions packages/ui/src/dropdowns/custom-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const CustomMenu = (props: ICustomMenuDropdownProps) => {
noChevron = false,
optionsClassName = "",
menuItemsClassName = "",
chevronClassName = "",
verticalEllipsis = false,
portalElement,
menuButtonOnClick,
Expand Down Expand Up @@ -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>
) : (
Expand All @@ -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>
)}
Expand Down