diff --git a/assets/js/components/TourTooltip.js b/assets/js/components/TourTooltip.js
index ea0beb2a920..826cd806d01 100644
--- a/assets/js/components/TourTooltip.js
+++ b/assets/js/components/TourTooltip.js
@@ -33,6 +33,7 @@ import { __ } from '@wordpress/i18n';
*/
import { Button } from 'googlesitekit-components';
import { createIncrementalArrayBySize } from '@/js/util/create-incremental-array-by-size';
+import { useFeature } from '@/js/hooks/useFeature';
import CloseIcon from '@/svg/icons/close.svg';
import Typography from './Typography';
@@ -45,6 +46,7 @@ export default function TourTooltip( {
step,
tooltipProps,
} ) {
+ const setupFlowRefreshEnabled = useFeature( 'setupFlowRefresh' );
const indicatorArray = size > 1 ? createIncrementalArrayBySize( size ) : [];
function getIndicatorClassName( indicatorIndex ) {
return classnames( 'googlesitekit-tooltip-indicator', {
@@ -52,11 +54,18 @@ export default function TourTooltip( {
} );
}
+ // Determine close icon size based on feature flag.
+ const closeIconSize = setupFlowRefreshEnabled ? 10 : 14;
+
return (
@@ -75,21 +84,29 @@ export default function TourTooltip( {
-
- { indicatorArray.map( ( indicatorIndex ) => (
-
- ) ) }
-
+ { ! setupFlowRefreshEnabled && (
+
+ { indicatorArray.map( ( indicatorIndex ) => (
+
+ ) ) }
+
+ ) }
+ { setupFlowRefreshEnabled && (
+
+ { index + 1 } / { size }
+
+ ) }
{ index !== 0 && (