Skip to content

Commit

Permalink
Revert "MM-48603 Fixed RHS hover styling on checklist area" (#1931)
Browse files Browse the repository at this point in the history
* Revert "removed background from title to fix hover state issue (#1926)"

This reverts commit 5f3ca04.

* fix bg issue
  • Loading branch information
JulienTant authored Aug 20, 2024
1 parent ac079c8 commit 72bfd1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/checklist/checklist_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ const NewChecklist = styled.div`
background-color: rgba(var(--center-channel-color-rgb), 0.04);
z-index: 1;
position: sticky;
top: 48px; // height of rhs_checklists MainTitle
top: 0;
border-radius: 4px 4px 0px 0px;
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/checklist/collapsible_checklist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ const ProgressLine = styled.div<{width: number}>`

export const HorizontalBG = styled.div<{menuIsOpen: boolean}>`
background-color: var(--center-channel-bg);
/* sets a higher z-index to the checklist with open menu */
z-index: ${({menuIsOpen}) => (menuIsOpen ? '2' : '1')};
position: sticky;
top: 48px; // height of rhs_checklists MainTitle
top: 0;
`;

const Horizontal = styled.div`
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/rhs/rhs_checklist_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ const InnerContainer = styled.div<{parentContainer?: ChecklistParent}>`
`;

const MainTitleBG = styled.div<{numChecklists: number}>`
background-color: var(--center-channel-bg);
z-index: ${({numChecklists}) => numChecklists + 2};
position: sticky;
top: 0;
Expand Down

0 comments on commit 72bfd1e

Please sign in to comment.