@@ -61,24 +61,27 @@ export const GroupingComponentListItem = styled('li')<{isCollapsible?: boolean}>
61
61
` }
62
62
` ;
63
63
64
- export const GroupingValue = styled ( 'code' ) < { valueType : string } > `
64
+ export const GroupingValue = styled ( 'code' ) < {
65
+ valueType : string ;
66
+ contributes ?: boolean ;
67
+ } > `
65
68
display: inline-block;
66
69
margin: ${ space ( 0.25 ) } ${ space ( 0.5 ) } ${ space ( 0.25 ) } 0;
67
70
font-size: ${ p => p . theme . fontSize . sm } ;
68
71
padding: 0 ${ space ( 0.25 ) } ;
69
- background: rgba(112, 163, 214, 0.1);
70
- color: ${ p => p . theme . textColor } ;
72
+ background: ${ p => ( p . contributes ? ' rgba(112, 163, 214, 0.1)' : 'transparent' ) } ;
73
+ color: ${ p => ( p . contributes ? p . theme . textColor : p . theme . subText ) } ;
71
74
72
- ${ ( { valueType, theme} ) =>
75
+ ${ ( { valueType, theme, contributes } ) =>
73
76
( valueType === 'function' || valueType === 'symbol' ) &&
74
77
css `
75
- font-weight : ${ theme . fontWeight . bold } ;
76
- color : ${ theme . textColor } ;
78
+ font-weight : ${ contributes ? theme . fontWeight . bold : 'normal' } ;
79
+ color : ${ contributes ? theme . textColor : theme . subText } ;
77
80
` }
78
81
` ;
79
82
80
83
const GroupingComponentWrapper = styled ( 'div' ) < { isContributing : boolean } > `
81
- color: ${ p => ( p . isContributing ? null : p . theme . textColor ) } ;
84
+ color: ${ p => ( p . isContributing ? p . theme . textColor : p . theme . subText ) } ;
82
85
83
86
${ GroupingValue } , button {
84
87
opacity: 1;
0 commit comments