Skip to content

Commit

Permalink
apply colour styles to radio/check items in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
esizer committed Apr 5, 2024
1 parent 4858ebc commit 4d3871d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/ui/src/components/DropdownMenu/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,13 @@ const CheckboxItem = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
>((props, forwardedRef) => (
<DropdownMenuPrimitive.CheckboxItem
{...itemStyleProps}
ref={forwardedRef}
{...{
...getBaseStyle({ mode: "inline" }),
...getFontColor({ mode: "inline", color: "secondary" }),
...getBackgroundColor({ mode: "inline", color: "secondary" }),
}}
{...itemStyleProps}
{...props}
/>
));
Expand All @@ -136,8 +141,13 @@ const RadioItem = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
>((props, forwardedRef) => (
<DropdownMenuPrimitive.RadioItem
{...itemStyleProps}
ref={forwardedRef}
{...{
...getBaseStyle({ mode: "inline" }),
...getFontColor({ mode: "inline", color: "secondary" }),
...getBackgroundColor({ mode: "inline", color: "secondary" }),
}}
{...itemStyleProps}
{...props}
/>
));
Expand Down

0 comments on commit 4d3871d

Please sign in to comment.