From 06f48ec79a468c95dcb42595d1e7998b8a3d3208 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 24 Nov 2024 19:59:31 -0500 Subject: [PATCH] Add active/hover state to collapsed thread --- app/scenes/Document/components/CommentThread.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/CommentThread.tsx b/app/scenes/Document/components/CommentThread.tsx index 940037d5dc..c0de4ae19c 100644 --- a/app/scenes/Document/components/CommentThread.tsx +++ b/app/scenes/Document/components/CommentThread.tsx @@ -1,5 +1,6 @@ import throttle from "lodash/throttle"; import { observer } from "mobx-react"; +import { darken } from "polished"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { useHistory, useLocation } from "react-router-dom"; @@ -342,12 +343,17 @@ const ShowMore = styled.div<{ $dir?: "rtl" | "ltr" }>` margin-right: ${(props) => (props.$dir !== "rtl" ? 0 : 32)}px; padding: 8px 12px; color: ${s("textTertiary")}; - background: ${s("backgroundTertiary")}; + background: ${(props) => darken(0.015, props.theme.backgroundSecondary)}; cursor: var(--pointer); font-size: 13px; + &: ${hover} { + color: ${s("textSecondary")}; + background: ${s("backgroundTertiary")}; + } + * { - border-color: ${s("backgroundTertiary")}; + border-color: ${(props) => darken(0.015, props.theme.backgroundSecondary)}; } `;