Skip to content

Commit 639652d

Browse files
committed
remove special highlighting, only grey out non contributing components
1 parent f84cf66 commit 639652d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

static/app/components/events/groupingInfo/groupingComponent.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,14 @@ export const GroupingValue = styled('code')<{
7070
margin: ${space(0.25)} ${space(0.5)} ${space(0.25)} 0;
7171
font-size: ${p => p.theme.fontSize.sm};
7272
padding: 0 ${space(0.25)};
73-
background: ${p =>
74-
p.contributes && p.showNonContributing
75-
? 'rgba(64, 123, 255, 0.15)'
76-
: 'rgba(112, 163, 214, 0.1)'};
77-
color: ${p => p.theme.textColor};
73+
background: rgba(112, 163, 214, 0.1);
74+
color: ${p => (p.contributes ? p.theme.textColor : p.theme.subText)};
7875
79-
${({valueType, theme}) =>
76+
${({valueType, theme, contributes}) =>
8077
(valueType === 'function' || valueType === 'symbol') &&
8178
css`
82-
font-weight: ${theme.fontWeight.bold};
83-
color: ${theme.textColor};
79+
font-weight: ${contributes ? theme.fontWeight.bold : 'normal'};
80+
color: ${contributes ? theme.textColor : theme.subText};
8481
`}
8582
`;
8683

0 commit comments

Comments
 (0)