From fb22032d4d56ac575f18b723e439d795df82c19e Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Tue, 26 Mar 2024 13:41:06 -0700 Subject: [PATCH] [C-4075] Harmony qa round 2 (#7951) --- .../button/FollowButton/FollowButton.tsx | 1 - .../button/IconButton/IconButton.tsx | 22 +++++++++++++++++-- .../image-selection/ImageSelectionButton.jsx | 2 ++ .../nav/desktop/NavMenuButton.module.css | 4 ++-- .../profile-picture/ProfilePicture.jsx | 4 ++-- .../profile-picture/ProfilePicture.module.css | 17 +------------- .../components/desktop/ProfileBio.tsx | 22 ++++++++++--------- 7 files changed, 39 insertions(+), 33 deletions(-) diff --git a/packages/harmony/src/components/button/FollowButton/FollowButton.tsx b/packages/harmony/src/components/button/FollowButton/FollowButton.tsx index 07b6c5483aa..8f347e625f5 100644 --- a/packages/harmony/src/components/button/FollowButton/FollowButton.tsx +++ b/packages/harmony/src/components/button/FollowButton/FollowButton.tsx @@ -134,7 +134,6 @@ export const FollowButton = forwardRef( color ${motion.hover} `, '::before': { - zIndex: -1, content: '""', position: 'absolute', top: 0, diff --git a/packages/harmony/src/components/button/IconButton/IconButton.tsx b/packages/harmony/src/components/button/IconButton/IconButton.tsx index 714ff16d549..cf28073750c 100644 --- a/packages/harmony/src/components/button/IconButton/IconButton.tsx +++ b/packages/harmony/src/components/button/IconButton/IconButton.tsx @@ -37,14 +37,32 @@ export const IconButton = forwardRef( ...other } = props const { disabled } = other - const { color, cornerRadius, spacing } = useTheme() + const { color, cornerRadius, spacing, motion } = useTheme() const buttonCss: CSSObject = { background: 'transparent', border: 'none', borderRadius: '50%', padding: spacing.xs, - overflow: 'unset' + overflow: 'unset', + svg: { + transition: ` + transform ${motion.hover}, + color ${motion.hover} + ` + }, + '&:hover': { + transform: 'scale(1.0)', + svg: { + transform: 'scale(1.1)' + } + }, + '&:active': { + transform: 'scale(1.0)', + svg: { + transform: 'scale(0.98)' + } + } } const rippleCss: CSSObject = { diff --git a/packages/web/src/components/image-selection/ImageSelectionButton.jsx b/packages/web/src/components/image-selection/ImageSelectionButton.jsx index b0c14891af1..052b201ffb4 100644 --- a/packages/web/src/components/image-selection/ImageSelectionButton.jsx +++ b/packages/web/src/components/image-selection/ImageSelectionButton.jsx @@ -79,6 +79,7 @@ const ImageSelectionButton = ({ <>