From ea012d90bfe8be0065a7d8215be5db43b15b6c85 Mon Sep 17 00:00:00 2001 From: Cosimo Chetta <45094836+onim-at@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:23:11 +0200 Subject: [PATCH] fix: make edit and delete comment button subtle (#3835) --- .../ButtonShowReplies/ButtonShowReplies.tsx | 4 ++-- .../src/CommentItem/CommentItem.tsx | 15 ++++++------- packages/themes/src/common/button.ts | 21 +++++++++---------- src/common/HideDiscussionContainer.tsx | 1 + 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/packages/components/src/ButtonShowReplies/ButtonShowReplies.tsx b/packages/components/src/ButtonShowReplies/ButtonShowReplies.tsx index 786b67602..275c2f816 100644 --- a/packages/components/src/ButtonShowReplies/ButtonShowReplies.tsx +++ b/packages/components/src/ButtonShowReplies/ButtonShowReplies.tsx @@ -24,8 +24,8 @@ export const ButtonShowReplies = (props: Props) => { data-cy="show-replies" icon={icon} onClick={setIsShowReplies} - sx={{ alignSelf: 'flex-start', border: 'none' }} - variant="outline" + sx={{ alignSelf: 'flex-start' }} + variant="subtle" small > {text} {creatorName && ` to ${creatorName}`} diff --git a/packages/components/src/CommentItem/CommentItem.tsx b/packages/components/src/CommentItem/CommentItem.tsx index 6cf8157d8..f8f938a68 100644 --- a/packages/components/src/CommentItem/CommentItem.tsx +++ b/packages/components/src/CommentItem/CommentItem.tsx @@ -98,7 +98,7 @@ export const CommentItem = (props: IProps) => { )} {!_deleted && ( - + { > { {isEditable && (