mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 14:55:45 +00:00
fix(ui): move Card bg prop after spread to allow overrides
This commit is contained in:
@@ -16,16 +16,19 @@ export function Card<T extends React.ElementType = 'div'>({
|
||||
return (
|
||||
<Flex
|
||||
shadow
|
||||
bg={isInteractive ? surface.defaultInteractive : surface.default}
|
||||
direction="column"
|
||||
p="md"
|
||||
position="relative"
|
||||
r="lg"
|
||||
{...(props as FlexProps<T>)}
|
||||
bg={{
|
||||
...(isInteractive ? surface.defaultInteractive : surface.default),
|
||||
...props.bg
|
||||
}}
|
||||
style={{
|
||||
...(isInteractive ? { cursor: 'pointer', transition: 'all 0.2s' } : {}),
|
||||
...style
|
||||
}}
|
||||
{...(props as FlexProps<T>)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user