From d7bf1b938bce3096fbb9a67296fdca3fc4a157dc Mon Sep 17 00:00:00 2001 From: Isla Koenigsknecht Date: Mon, 29 Jul 2024 11:31:54 -0400 Subject: [PATCH] fix(2576): Update hover and selected contrast and modify sidebar color in dark mode (#2579) * Update hover and selected contrast and modify sidebar color in dark mode * Update snapshots --- .../ChannelsPanel/ChannelsListItem.tsx | 12 +++++++++- .../ChannelsPanel/ChannelsPanel.test.tsx | 24 +++++++++---------- .../renderer/components/windows/Main.test.tsx | 4 ++-- packages/desktop/src/renderer/theme.ts | 8 ++++--- 4 files changed, 30 insertions(+), 18 deletions(-) diff --git a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx index 56790eb635..920acbc359 100644 --- a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx +++ b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsListItem.tsx @@ -21,7 +21,17 @@ const classes = { const StyledListItemButton = styled(ListItemButton)(({ theme }) => ({ [`&.${classes.root}`]: { - padding: 0, + width: 220, + height: 'hug', + padding: `3px 16px 3px 16px`, + gap: 4, + opacity: 1, + display: 'flex', + backgroundColor: 'inherit', + }, + + [`&.${classes.root}:hover`]: { + backgroundColor: theme.palette.colors.sidebarHover, }, [`&.${classes.selected}`]: { diff --git a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx index 6c062c84a4..cea9516723 100644 --- a/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx +++ b/packages/desktop/src/renderer/components/Sidebar/ChannelsPanel/ChannelsPanel.test.tsx @@ -134,7 +134,7 @@ describe('Channels panel', () => { data-testid="channelsList" >
{ />
{ />
{ />
{ />
{ />
{ data-testid="channelsList" >
{ />
{ />
{ />
{ />
{ />
{ class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root" >
{ data-testid="channelsList" >