File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/compass-connections/src/components/connection-list Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ const connectionButtonStyles = css({
8686
8787const 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 ) }
You can’t perform that action at this time.
0 commit comments