diff --git a/src/components/popover-menu/popover-menu-panel-button.tsx b/src/components/popover-menu/popover-menu-panel-button.tsx index bba0ec44..b40162af 100644 --- a/src/components/popover-menu/popover-menu-panel-button.tsx +++ b/src/components/popover-menu/popover-menu-panel-button.tsx @@ -3,7 +3,7 @@ import { PopoverButton as HeadlessUiPopoverButton } from "@headlessui/react"; import { classNames } from "../../util/class-names"; const itemIntents = { - neutral: "text-neutral-700 fill-neutral-700 hover:bg-primary-100", + neutral: "text-neutral-700 fill-neutral-700 hover:bg-neutral-100", danger: "text-danger-500 fill-danger-500 hover:bg-danger-100", }; @@ -18,6 +18,7 @@ export interface PopoverMenuPanelButtonProps { Icon?: React.ComponentType<{ className: string }>; variant?: keyof typeof itemIntents; selected?: boolean; + disabled?: boolean; } export const PopoverMenuPanelButton = ({ @@ -26,6 +27,7 @@ export const PopoverMenuPanelButton = ({ Icon, variant = "neutral", selected, + disabled, }: PopoverMenuPanelButtonProps) => { return ( {Icon && } {children} diff --git a/src/components/popover-menu/popover-menu-panel-item.tsx b/src/components/popover-menu/popover-menu-panel-item.tsx index bb3faeeb..1e7a1e50 100644 --- a/src/components/popover-menu/popover-menu-panel-item.tsx +++ b/src/components/popover-menu/popover-menu-panel-item.tsx @@ -2,13 +2,14 @@ import React from "react"; import { classNames } from "../../util/class-names"; const itemIntents = { - neutral: "text-neutral-700 fill-neutral-700 hover:bg-primary-100", - danger: "text-danger-500 fill-danger-500 hover:bg-danger-100", + neutral: "text-neutral-700 fill-neutral-700 hover:bg-neutral-100", + danger: "text-danger-500 fill-danger-500 hover:bg-danger-50", }; const selectedItemIntents = { - neutral: "bg-primary-100 fill-primary-400 text-primary-400 before:bg-primary-400", - danger: "bg-danger-100 fill-danger-400 text-danger-500 before:bg-danger-400", + neutral: + "bg-primary-100 fill-primary-400 text-primary-400 before:bg-primary-400 hover:text-primary-400 hover:fill-primary-400 hover:bg-primary-100", + danger: "bg-danger-100 fill-danger-700 text-danger-500 before:bg-danger-400 hover:text-danger-500 hover:fill-danger-400 hover:bg-danger-100", }; export interface PopoverMenuPanelItemProps { @@ -17,6 +18,7 @@ export interface PopoverMenuPanelItemProps { Icon?: React.ComponentType<{ className: string }>; variant?: keyof typeof itemIntents; selected?: boolean; + disabled?: boolean; } export const PopoverMenuPanelItem = ({ @@ -25,6 +27,7 @@ export const PopoverMenuPanelItem = ({ Icon, variant = "neutral", selected, + disabled, }: PopoverMenuPanelItemProps) => { return (
{Icon && } diff --git a/src/components/popover-menu/popover-menu.stories.tsx b/src/components/popover-menu/popover-menu.stories.tsx index fdfea675..3bcbd964 100644 --- a/src/components/popover-menu/popover-menu.stories.tsx +++ b/src/components/popover-menu/popover-menu.stories.tsx @@ -39,7 +39,9 @@ export const Default: Story = { Activate Mfa - Support + + Support +