Skip to content

Commit 4ecf5c2

Browse files
committed
adjust colors
1 parent b171681 commit 4ecf5c2

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/ButtonGroupMinimized.styles.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,27 @@ export const ComponentBadge = styled(RiBadge)<{ isActive?: boolean }>`
1212
pointer-events: none;
1313
}
1414
15+
background-color: transparent !important;
16+
1517
${({ isActive, theme }) => {
16-
console.log('theme', theme)
1718
// TODO: try to replace with semantic colors once the palette is bigger.
1819
const bgColorActive =
1920
theme.name === 'dark'
20-
? theme.semantic.color.background.primary300
21-
: theme.semantic.color.background.primary300
21+
? theme.semantic.color.background.primary400
22+
: theme.semantic.color.background.primary400
2223
const bgColorHover =
2324
theme.name === 'dark'
2425
? theme.semantic.color.background.primary500
25-
: theme.semantic.color.background.primary200
26+
: theme.semantic.color.background.primary300
2627
27-
const color =
28-
theme.name === 'dark'
29-
? theme.semantic.color.text.primary600
30-
: theme.semantic.color.text.primary600
28+
const textColorActiveHover = theme.semantic.color.text.primary50
3129
3230
return `
3331
${isActive ? `background-color: ${bgColorActive} !important;` : ''}
34-
${isActive ? `color: ${color} !important;` : ''}
32+
${isActive ? `color: ${textColorActiveHover} !important;` : ''}
3533
&:hover {
3634
background-color: ${bgColorHover} !important;
37-
color: ${color} !important;
35+
color: ${textColorActiveHover} !important;
3836
}
3937
`
4038
}}

0 commit comments

Comments
 (0)