Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok committed Sep 29, 2023
1 parent 560a09c commit 98c2f4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ({
Expand Down
5 changes: 3 additions & 2 deletions src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 98c2f4f

Please sign in to comment.