File tree 2 files changed +4
-1
lines changed
src/components/navigation
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import React, {
9
9
useMemo ,
10
10
} from 'react' ;
11
11
import { useTheme } from '../../../theme/theme' ;
12
+ import * as R from 'ramda' ;
12
13
13
14
// Context
14
15
import NavigationContext from '../context/navigation.context' ;
@@ -46,6 +47,7 @@ const NavigationItem: FC<NavigationItemProps> = (
46
47
mainTooltipText = '' ,
47
48
secondaryTooltipText = '' ,
48
49
href,
50
+ sx,
49
51
...restProps
50
52
} = props ;
51
53
const isOpen =
@@ -83,7 +85,7 @@ const NavigationItem: FC<NavigationItemProps> = (
83
85
< Box
84
86
tx = { tx }
85
87
variant = { getVariant ( disabled , isActiveItem ) }
86
- sx = { styles }
88
+ sx = { R . mergeDeepLeft ( styles , sx ?? { } ) as object }
87
89
onClick = { ! disabled ? handleClick : undefined }
88
90
className = { key == 'oldui' ? 'oldui' : '' }
89
91
{ ...restProps }
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ export const TreeObject: Story<NavigationProps> = () => {
133
133
title : 'Data' ,
134
134
icon : < GetIcon icon = { IconName . folder } /> ,
135
135
id : '8' ,
136
+ sx : { color : 'red' , backgroundColor : 'blue' } ,
136
137
} ,
137
138
{
138
139
title : 'Activity' ,
You can’t perform that action at this time.
0 commit comments