Skip to content

Commit 767ac85

Browse files
feat(clerk-js,types): Add menuButtonEllipsis descriptor (#5090)
1 parent 51af43d commit 767ac85

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.changeset/heavy-eggs-deliver.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/types': patch
4+
---
5+
6+
Add `menuButtonEllipsis` element descriptor.

packages/clerk-js/src/ui/customizables/elementDescriptors.ts

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export const APPEARANCE_KEYS = containsAllElementsConfigKeys([
222222
'selectOption',
223223

224224
'menuButton',
225+
'menuButtonEllipsis',
225226
'menuList',
226227
'menuItem',
227228

packages/clerk-js/src/ui/elements/ThreeDotsMenu.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { MenuId } from '@clerk/types';
22

33
import type { LocalizationKey } from '../customizables';
4-
import { Button, Icon } from '../customizables';
4+
import { Button, descriptors, Icon } from '../customizables';
55
import { ThreeDots } from '../icons';
66
import { Menu, MenuItem, MenuList, MenuTrigger } from './Menu';
77

@@ -33,6 +33,7 @@ export const ThreeDotsMenu = (props: ThreeDotsMenuProps) => {
3333
})}
3434
variant='ghost'
3535
colorScheme='neutral'
36+
elementDescriptor={[descriptors.menuButton, descriptors.menuButtonEllipsis]}
3637
>
3738
<Icon
3839
icon={ThreeDots}

packages/types/src/appearance.ts

+1
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ export type ElementsConfig = {
346346
selectOption: WithOptions<SelectId>;
347347

348348
menuButton: WithOptions<MenuId>;
349+
menuButtonEllipsis: WithOptions;
349350
menuList: WithOptions<MenuId>;
350351
menuItem: WithOptions<MenuId>;
351352

0 commit comments

Comments
 (0)