From 93afa8aab6e11b634def3b87210519fbc06fa368 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Mon, 14 Feb 2022 14:31:53 +0100 Subject: [PATCH 1/2] Simplify site icon animation on hover. --- .../header/fullscreen-mode-close/index.js | 13 +++++++++---- .../header/fullscreen-mode-close/style.scss | 6 +++++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/edit-post/src/components/header/fullscreen-mode-close/index.js b/packages/edit-post/src/components/header/fullscreen-mode-close/index.js index a698ce4994e44..8663128f0e528 100644 --- a/packages/edit-post/src/components/header/fullscreen-mode-close/index.js +++ b/packages/edit-post/src/components/header/fullscreen-mode-close/index.js @@ -2,6 +2,7 @@ * External dependencies */ import { get } from 'lodash'; +import classnames from 'classnames'; /** * WordPress dependencies @@ -59,9 +60,8 @@ function FullscreenModeClose( { showTooltip, icon, href } ) { const effect = { expand: { - scale: 1.7, - borderRadius: 0, - transition: { type: 'tween', duration: '0.2' }, + scale: 1.25, + transition: { type: 'tween', duration: '0.3' }, }, }; @@ -85,10 +85,15 @@ function FullscreenModeClose( { showTooltip, icon, href } ) { buttonIcon = ; } + const classes = classnames( { + 'edit-post-fullscreen-mode-close': true, + 'has-icon': siteIconUrl, + } ); + return (