Skip to content

Commit ce0af66

Browse files
authored
fix: dropwdown component styles (#411)
1 parent eaee7b1 commit ce0af66

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/content/docs/components/dropdown.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ description: A dropdown is a toggleable that allows the user to choose one valu
2424
## Usage
2525

2626
<Dropdown className="w-96" >
27-
<DropdownTrigger asChild>
28-
<Button variant="outline">Open</Button>
29-
</DropdownTrigger>
30-
<DropdownContent className="max-h-72">
27+
<div className='flex justify-center'>
28+
<DropdownTrigger asChild>
29+
<Button>Open</Button>
30+
</DropdownTrigger>
31+
</div>
32+
<DropdownContent>
3133
<DropdownLabel>My Account</DropdownLabel>
3234
<DropdownSeparator />
3335
<DropdownGroup>

src/plugins/components/dropdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const dropdownSubContent = cva('z-50 min-w-[8rem] rounded-medium shadow-m
106106
* // accordion elements
107107
* </DropdownContent>
108108
*/
109-
export const dropdownContent = cva('z-50 min-w-[8rem] border border-default-300 p-3 overflow-hidden rounded-medium data-[state=open]:animate-dropdown-in data-[state=closed]:animate-dropdown-out shadow-md data-[side=top]:slide-in-from-bottom-2 data-[side=right]:slide-in-from-left-2 data-[side=bottom]:slide-in-from-top-2')
109+
export const dropdownContent = cva('z-50 min-w-56 border border-default-300 p-3 bg-background overflow-hidden rounded-medium data-[state=open]:animate-dropdown-in data-[state=closed]:animate-dropdown-out shadow-md data-[side=top]:slide-in-from-bottom-2 data-[side=right]:slide-in-from-left-2 data-[side=bottom]:slide-in-from-top-2')
110110

111111
/**
112112
* Dropdown Item **Class Variants** component

0 commit comments

Comments
 (0)