+
{getComplianceIcon(title) && (
= ({
className="h-10 w-10 min-w-10 self-start rounded-md border border-gray-300 bg-white object-contain p-1"
/>
)}
- e.stopPropagation()}
- onKeyDown={(e) => {
- if (e.key === "Enter" || e.key === " ") {
- e.stopPropagation();
- }
- }}
- role="group"
- tabIndex={0}
- >
-
-
-
+
{formatTitle(title)}
{version ? ` - ${version}` : ""}
diff --git a/ui/components/compliance/compliance-download-container.test.tsx b/ui/components/compliance/compliance-download-container.test.tsx
index cc4cdcd4420..81774b686f0 100644
--- a/ui/components/compliance/compliance-download-container.test.tsx
+++ b/ui/components/compliance/compliance-download-container.test.tsx
@@ -70,7 +70,7 @@ describe("ComplianceDownloadContainer", () => {
const trigger = screen.getByRole("button", {
name: "Open compliance export actions",
});
- expect(trigger.className).toContain("border-text-neutral-secondary");
+ expect(trigger.className).toContain("rounded-md");
});
it("should open export actions from the compact trigger", async () => {
diff --git a/ui/components/shadcn/dropdown/action-dropdown.tsx b/ui/components/shadcn/dropdown/action-dropdown.tsx
index 6a17e1f368c..9acb84515a7 100644
--- a/ui/components/shadcn/dropdown/action-dropdown.tsx
+++ b/ui/components/shadcn/dropdown/action-dropdown.tsx
@@ -15,8 +15,7 @@ import {
const ACTION_TRIGGER_STYLES = {
table: "hover:bg-bg-neutral-tertiary rounded-full p-1 transition-colors",
- bordered:
- "hover:bg-bg-neutral-tertiary rounded-full border border-text-neutral-secondary p-2 transition-colors",
+ bordered: "hover:bg-bg-neutral-tertiary rounded-md p-1.5 transition-colors",
} as const;
type ActionDropdownVariant = keyof typeof ACTION_TRIGGER_STYLES;
@@ -24,7 +23,7 @@ type ActionDropdownVariant = keyof typeof ACTION_TRIGGER_STYLES;
interface ActionDropdownProps {
/** The dropdown trigger element. Defaults to a vertical dots icon button */
trigger?: ReactNode;
- /** Trigger style variant. "table" = no border, "bordered" = circular border */
+ /** Trigger style variant. "table" = compact pill, "bordered" = card action */
variant?: ActionDropdownVariant;
/** Alignment of the dropdown content */
align?: "start" | "center" | "end";
@@ -62,7 +61,12 @@ export function ActionDropdown({
aria-label={ariaLabel}
className={ACTION_TRIGGER_STYLES[variant]}
>
-
+
)}