Skip to content

Conversation

@hussain-t
Copy link
Collaborator

@hussain-t hussain-t commented Dec 15, 2025

Summary

Addresses issue:

Relevant technical choices

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 7.4.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.
  • Ensure there are no unexpected significant changes to file sizes.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

Adjust close icon size and conditionally render indicators based on feature availability.
…omponent.

Adjust tooltip display based on setup flow refresh feature availability.
…ant.

Enhance decorators for fetchMock setup to improve story switching functionality.
@github-actions
Copy link

Storybook is ready:

@github-actions
Copy link

Size Change: +2.73 kB (+0.12%)

Total Size: 2.22 MB

ℹ️ View Unchanged
Filename Size Change
./dist/assets/blocks/reader-revenue-manager/block-editor-plugin/editor-styles.css 124 B 0 B
./dist/assets/blocks/reader-revenue-manager/block-editor-plugin/editor-styles.js 20 B 0 B
./dist/assets/blocks/reader-revenue-manager/block-editor-plugin/index.js 42.7 kB 0 B
./dist/assets/blocks/reader-revenue-manager/common/editor-styles.css 307 B 0 B
./dist/assets/blocks/reader-revenue-manager/common/editor-styles.js 20 B 0 B
./dist/assets/blocks/reader-revenue-manager/contribute-with-google/index.js 5.88 kB 0 B
./dist/assets/blocks/reader-revenue-manager/contribute-with-google/non-site-kit-user.js 5.07 kB 0 B
./dist/assets/blocks/reader-revenue-manager/subscribe-with-google/index.js 5.88 kB 0 B
./dist/assets/blocks/reader-revenue-manager/subscribe-with-google/non-site-kit-user.js 5.07 kB 0 B
./dist/assets/blocks/sign-in-with-google/editor-styles.css 84 B 0 B
./dist/assets/blocks/sign-in-with-google/editor-styles.js 20 B 0 B
./dist/assets/blocks/sign-in-with-google/index.js 18.6 kB 0 B
./dist/assets/css/googlesitekit-admin-css-********************.min.css 65.3 kB +134 B (+0.21%)
./dist/assets/css/googlesitekit-adminbar-css-********************.min.css 11.7 kB 0 B
./dist/assets/css/googlesitekit-authorize-application-css-********************.min.css 846 B 0 B
./dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 8.6 kB 0 B
./dist/assets/js/146-********************.js 963 B 0 B
./dist/assets/js/201-********************.js 2.85 kB 0 B
./dist/assets/js/314-********************.js 100 kB 0 B
./dist/assets/js/315-********************.js 3.08 kB 0 B
./dist/assets/js/379-********************.js 3.7 kB 0 B
./dist/assets/js/590-********************.js 1.89 kB 0 B
./dist/assets/js/640-********************.js 2.36 kB 0 B
./dist/assets/js/909-********************.js 1.01 kB 0 B
./dist/assets/js/analytics-advanced-tracking-********************.js 475 B 0 B
./dist/assets/js/googlesitekit-activation-********************.js 24.7 kB +164 B (+0.67%)
./dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 56.5 kB +122 B (+0.22%)
./dist/assets/js/googlesitekit-adminbar-********************.js 34.9 kB +167 B (+0.48%)
./dist/assets/js/googlesitekit-api-********************.js 7.88 kB 0 B
./dist/assets/js/googlesitekit-block-tracking-********************.js 5.49 kB 0 B
./dist/assets/js/googlesitekit-components-********************.js 5.81 kB 0 B
./dist/assets/js/googlesitekit-consent-mode-********************.js 25.5 kB 0 B
./dist/assets/js/googlesitekit-data-********************.js 1.7 kB 0 B
./dist/assets/js/googlesitekit-datastore-forms-********************.js 6.95 kB 0 B
./dist/assets/js/googlesitekit-datastore-location-********************.js 1.51 kB 0 B
./dist/assets/js/googlesitekit-datastore-site-********************.js 17.4 kB 0 B
./dist/assets/js/googlesitekit-datastore-ui-********************.js 7.1 kB 0 B
./dist/assets/js/googlesitekit-datastore-user-********************.js 22.7 kB 0 B
./dist/assets/js/googlesitekit-entity-dashboard-********************.js 65.1 kB +108 B (+0.17%)
./dist/assets/js/googlesitekit-events-provider-contact-form-7-********************.js 1.77 kB 0 B
./dist/assets/js/googlesitekit-events-provider-easy-digital-downloads-********************.js 745 B 0 B
./dist/assets/js/googlesitekit-events-provider-mailchimp-********************.js 1.77 kB 0 B
./dist/assets/js/googlesitekit-events-provider-ninja-forms-********************.js 1.69 kB 0 B
./dist/assets/js/googlesitekit-events-provider-optin-monster-********************.js 1.72 kB 0 B
./dist/assets/js/googlesitekit-events-provider-popup-maker-********************.js 1.79 kB 0 B
./dist/assets/js/googlesitekit-events-provider-woocommerce-********************.js 1.14 kB 0 B
./dist/assets/js/googlesitekit-events-provider-wpforms-********************.js 1.77 kB 0 B
./dist/assets/js/googlesitekit-i18n-********************.js 6.16 kB 0 B
./dist/assets/js/googlesitekit-key-metrics-setup-********************.js 47.4 kB +126 B (+0.27%)
./dist/assets/js/googlesitekit-main-dashboard-********************.js 137 kB +136 B (+0.1%)
./dist/assets/js/googlesitekit-metric-selection-********************.js 55 kB +137 B (+0.25%)
./dist/assets/js/googlesitekit-modules-ads-********************.js 48.6 kB +126 B (+0.26%)
./dist/assets/js/googlesitekit-modules-adsense-********************.js 134 kB +121 B (+0.09%)
./dist/assets/js/googlesitekit-modules-analytics-4-********************.js 190 kB +134 B (+0.07%)
./dist/assets/js/googlesitekit-modules-********************.js 19.9 kB 0 B
./dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 23.3 kB 0 B
./dist/assets/js/googlesitekit-modules-reader-revenue-manager-********************.js 43.9 kB +172 B (+0.39%)
./dist/assets/js/googlesitekit-modules-search-console-********************.js 65.4 kB +214 B (+0.33%)
./dist/assets/js/googlesitekit-modules-sign-in-with-google-********************.js 33.7 kB 0 B
./dist/assets/js/googlesitekit-modules-tagmanager-********************.js 30.2 kB 0 B
./dist/assets/js/googlesitekit-notifications-********************.js 61.2 kB +186 B (+0.31%)
./dist/assets/js/googlesitekit-polyfills-********************.js 230 B 0 B
./dist/assets/js/googlesitekit-settings-********************.js 127 kB +122 B (+0.1%)
./dist/assets/js/googlesitekit-splash-********************.js 75.3 kB +124 B (+0.16%)
./dist/assets/js/googlesitekit-user-input-********************.js 48.4 kB +132 B (+0.27%)
./dist/assets/js/googlesitekit-vendor-********************.js 328 kB 0 B
./dist/assets/js/googlesitekit-widgets-********************.js 104 kB +199 B (+0.19%)
./dist/assets/js/googlesitekit-wp-dashboard-********************.js 60.9 kB +111 B (+0.18%)
./dist/assets/js/runtime-********************.js 1.92 kB 0 B

compressed-size-action

@github-actions
Copy link

Build files for fba95fd are ready:

Copy link
Collaborator

@nfmohit nfmohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your work on this, @hussain-t.

I've left a number of comments for your consideration. Please let me know if you have any questions or concerns. Thanks!

Comment on lines +227 to +234
.googlesitekit-tooltip-title {
font-family: $f-primary;
font-size: $fs-title-lg;
font-weight: $fw-medium;
letter-spacing: $ls-xxs;
line-height: $lh-title-lg;
margin-bottom: 8px;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Figma designs, typography for this should be title-md.

Suggested change
.googlesitekit-tooltip-title {
font-family: $f-primary;
font-size: $fs-title-lg;
font-weight: $fw-medium;
letter-spacing: $ls-xxs;
line-height: $lh-title-lg;
margin-bottom: 8px;
}
.googlesitekit-tooltip-title {
font-family: $f-primary;
font-size: $fs-title-md;
font-weight: $fw-medium;
letter-spacing: $ls-xxs;
line-height: $lh-title-md;
margin-bottom: 8px;
}

Comment on lines +236 to +242
.googlesitekit-tooltip-content {
font-family: $f-primary;
font-size: $fs-body-md;
font-weight: $fw-normal;
letter-spacing: $ls-s;
line-height: $lh-body-md;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. According to the Figma designs, typography for this should be body-sm.
  2. I don't think it is necessary to specify the font family and weight.
  3. Letter spacing should be $ls-xs.
Suggested change
.googlesitekit-tooltip-content {
font-family: $f-primary;
font-size: $fs-body-md;
font-weight: $fw-normal;
letter-spacing: $ls-s;
line-height: $lh-body-md;
}
.googlesitekit-tooltip-content {
font-size: $fs-body-sm;
letter-spacing: $ls-xs;
line-height: $lh-body-sm;
}

Comment on lines +254 to +265
.googlesitekit-tooltip-button {
border-radius: $br-lg;
line-height: 20px;

&:focus {
outline: none;
}

&:focus:not(:active) {
outline: 2px solid $c-interactive-inverse-focus;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we considered conditionally removing the text prop from the button component if the feature flag is enabled? I think that would let us reduce some style overrides.

Additionally, can you kindly check if we render the tooltip outside the Site Kit context? If not, I think we can safely wrap the story template with a googlesitekit-plugin class, which will let the tooltip inherit a number of default styles.

Comment on lines +272 to +279
.googlesitekit-tooltip-steps {
font-family: $f-primary;
font-size: $fs-label-md;
font-weight: $fw-medium;
letter-spacing: $ls-xs;
line-height: $lh-label-md;
margin: 0;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. According to the Figma designs, this should use a body-sm typography.
  2. Font weight should be 400.
Suggested change
.googlesitekit-tooltip-steps {
font-family: $f-primary;
font-size: $fs-label-md;
font-weight: $fw-medium;
letter-spacing: $ls-xs;
line-height: $lh-label-md;
margin: 0;
}
.googlesitekit-tooltip-steps {
font-family: $f-primary;
font-size: $fs-body-sm;
font-weight: $fw-normal;
letter-spacing: $ls-xs;
line-height: $lh-body-sm;
margin: 0;
}

.googlesitekit-tooltip-title {
color: $c-content-on-primary;

// The tooltip title overrides the default Typography styles.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it'd be wiser to apply styles from the Typography component directly, and only override them like this when the setupFlowRefresh feature flag is not enabled (i.e. .googlesitekit-tour-tooltip:not(.googlesitekit-tour-tooltip--setupFlowRefresh) {}). We'll achieve two benefits from this change:

  1. The style addition will be very minimal as our new Typography styles will be applied from the component itself.
  2. Removing the feature flag at launch will be much simpler, where we'll just be able to remove the styles being overridden.

What do you think?

Comment on lines 89 to 97
@@ -98,7 +114,13 @@
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Figma designs, the "Back" button should be a tertiary button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants