fix: styling of dropdown component (#6440)

* fix: styling of dropdown component

Signed-off-by: Udit Takkar <[email protected]>

* Apply suggestions from code review

* fix: use dropdown item in all pages

Signed-off-by: Udit Takkar <[email protected]>

* chore: undo

Signed-off-by: Udit Takkar <[email protected]>

Signed-off-by: Udit Takkar <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Udit TakkarandPeer Richelsen authored and GitHub committed 2023-01-15 11:40:40 +00:00
1 parent 34a61214d3
commit 636e88d467
17 files changed
+189 -183

No files matched your search

@@ -6,6 +6,7 @@ import {
Dropdown,
DropdownMenuContent,
DropdownMenuItem,
DropdownItem,
DropdownMenuPortal,
DropdownMenuTrigger,
ButtonBaseProps,
@@ -53,16 +54,15 @@ export const DropdownActions = ({
<DropdownMenuContent>
{actions.map((action) => (
<DropdownMenuItem key={action.id}>
<Button
<DropdownItem
type="button"
color={action.color || "minimal"}
className="w-full rounded-none font-normal"
href={action.href}
color={action.color}
data-testid={action.id}
StartIcon={action.icon}
onClick={action.onClick || defaultAction}
data-testid={action.id}>
href={action.href}
onClick={action.onClick || defaultAction}>
{action.label}
</Button>
</DropdownItem>
</DropdownMenuItem>
))}
</DropdownMenuContent>