@@ -61,24 +61,27 @@ export const GroupingComponentListItem = styled('li')<{isCollapsible?: boolean}>
6161 ` }
6262` ;
6363
64- export const GroupingValue = styled ( 'code' ) < { valueType : string } > `
64+ export const GroupingValue = styled ( 'code' ) < {
65+ valueType : string ;
66+ contributes ?: boolean ;
67+ } > `
6568 display: inline-block;
6669 margin: ${ space ( 0.25 ) } ${ space ( 0.5 ) } ${ space ( 0.25 ) } 0;
6770 font-size: ${ p => p . theme . fontSize . sm } ;
6871 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 ) } ;
7174
72- ${ ( { valueType, theme} ) =>
75+ ${ ( { valueType, theme, contributes } ) =>
7376 ( valueType === 'function' || valueType === 'symbol' ) &&
7477 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 } ;
7780 ` }
7881` ;
7982
8083const 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 ) } ;
8285
8386 ${ GroupingValue } , button {
8487 opacity: 1;
0 commit comments