From 98c2f4f693e4f9edfcdecef63797e6a0b2e0bcfe Mon Sep 17 00:00:00 2001 From: VINEETH ASOK KUMAR Date: Fri, 29 Sep 2023 15:10:26 +0200 Subject: [PATCH] Fix styling --- src/components/Dropdown/Dropdown.tsx | 3 +++ src/components/Popover/Popover.tsx | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Dropdown/Dropdown.tsx b/src/components/Dropdown/Dropdown.tsx index 28283d45d..847e5c536 100644 --- a/src/components/Dropdown/Dropdown.tsx +++ b/src/components/Dropdown/Dropdown.tsx @@ -36,6 +36,9 @@ type DropdownTriggerProps = DropdownMenu.DropdownMenuTriggerProps & MainDropdown const Trigger = styled(DropdownMenu.Trigger)` cursor: pointer; width: fit-content; + &[disabled] { + cursor: not-allowed; + } `; const DropdownTrigger = ({ diff --git a/src/components/Popover/Popover.tsx b/src/components/Popover/Popover.tsx index de4866798..8d9c6265b 100644 --- a/src/components/Popover/Popover.tsx +++ b/src/components/Popover/Popover.tsx @@ -12,10 +12,11 @@ export const Popover = ({ children, ...props }: RadixPopover.PopoverProps) => { const Trigger = styled(RadixPopover.Trigger)` width: fit-content; - background: transparent; + font: inherit; + color: inherit; + background: inherit; border: none; `; - interface TriggerProps extends RadixPopover.PopoverTriggerProps { anchor?: ReactNode; }