From b171a6334854232104c628085a541e33b0911363 Mon Sep 17 00:00:00 2001 From: Dharit Tantiviramanond Date: Thu, 23 Jan 2025 14:49:20 -0500 Subject: [PATCH] Fix web FollowButton icon colors --- .../button/FollowButton/FollowButton.tsx | 33 ++++--------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/packages/harmony/src/components/button/FollowButton/FollowButton.tsx b/packages/harmony/src/components/button/FollowButton/FollowButton.tsx index a712d08c711..9892298539d 100644 --- a/packages/harmony/src/components/button/FollowButton/FollowButton.tsx +++ b/packages/harmony/src/components/button/FollowButton/FollowButton.tsx @@ -113,9 +113,7 @@ export const FollowButton = forwardRef( const { color, cornerRadius, motion, shadows } = useTheme() const textColor = - checkedValue || isHovering || isPressing - ? color.static.white - : color.primary.primary + checkedValue || isHovering || isPressing ? 'white' : 'active' const borderRadius = variant === 'pill' ? cornerRadius['2xl'] : cornerRadius.s @@ -137,31 +135,15 @@ export const FollowButton = forwardRef( background-color ${motion.hover}, color ${motion.hover} `, - '::before': { - content: '""', - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, - backgroundColor: 'rgba(0, 0, 0, 0)', - borderRadius - }, '&:hover': { - backgroundColor: color.primary.primary, borderWidth: 0, - boxShadow: shadows.mid, - '&::before': { - backgroundColor: 'rgba(255, 255, 255, 0.2)' - } + backgroundColor: color.primary.p300, + boxShadow: shadows.mid }, '&:active': { - backgroundColor: color.primary.primary, + backgroundColor: color.primary.p500, borderWidth: 0, - boxShadow: 'none', - '&::before': { - backgroundColor: 'rgba(0, 0, 0, 0.2)' - } + boxShadow: 'none' } } @@ -205,14 +187,13 @@ export const FollowButton = forwardRef( {...buttonProps} {...rootProps} > - {/* TODO: use theme icon colors (confirm w/design) */} - + {text}