Skip to content

Commit e3a6d4d

Browse files
authored
fix(compass-connections): background color on selected connection (#4179)
1 parent 8141186 commit e3a6d4d

File tree

1 file changed

+5
-5
lines changed
  • packages/compass-connections/src/components/connection-list

1 file changed

+5
-5
lines changed

packages/compass-connections/src/components/connection-list/connection.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const connectionButtonStyles = css({
8686

8787
const connectionButtonStylesLight = css({
8888
'&:hover': {
89-
backgroundColor: palette.gray.light2,
89+
background: palette.gray.light2,
9090
},
9191
});
9292

@@ -207,9 +207,7 @@ function Connection({
207207
const hasColoredBackground = isActive && favoriteColorHex;
208208
const normalTitleColor = darkMode ? palette.white : palette.gray.dark3;
209209
const titleColor = hasColoredBackground ? palette.black : normalTitleColor;
210-
const backgroundColor = hasColoredBackground
211-
? `${favoriteColorHex} !important`
212-
: 'none';
210+
const backgroundColor = hasColoredBackground ? favoriteColorHex : 'none';
213211

214212
const normalDescriptionColor = darkMode
215213
? palette.gray.light1
@@ -280,7 +278,9 @@ function Connection({
280278
connectionButtonStyles,
281279
darkMode ? connectionButtonStylesDark : connectionButtonStylesLight
282280
)}
283-
style={{ backgroundColor }}
281+
style={{
282+
background: backgroundColor,
283+
}}
284284
data-testid={`saved-connection-button-${connectionInfo.id || ''}`}
285285
onClick={onClick}
286286
onDoubleClick={() => onDoubleClick(connectionInfo)}

0 commit comments

Comments
 (0)