Skip to content

Update the splash screen for mobile viewports.#12721

Open
ankitrox wants to merge 7 commits into
developfrom
enhancement/12459-splash-mobile-viewport
Open

Update the splash screen for mobile viewports.#12721
ankitrox wants to merge 7 commits into
developfrom
enhancement/12459-splash-mobile-viewport

Conversation

@ankitrox
Copy link
Copy Markdown
Collaborator

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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

🤖 This comment is automatically updated by CI workflows. Each section is managed independently.

🎭 Playwright reports for 23edbef:

📚 Storybook for 23edbef:

📦 Build files for 23edbef:

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

Size Change: +52.5 kB (+2.28%)

Total Size: 2.36 MB

📦 View Changed
Filename Size Change
dist/assets/js/273-********************.js 52.5 kB +52.5 kB (new file) 🆕
ℹ️ 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 0 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 0 B 0 B 🆕
dist/assets/blocks/reader-revenue-manager/contribute-with-google/index.js 5.81 kB 0 B
dist/assets/blocks/reader-revenue-manager/contribute-with-google/non-site-kit-user.js 5 kB 0 B
dist/assets/blocks/reader-revenue-manager/subscribe-with-google/index.js 5.81 kB 0 B
dist/assets/blocks/reader-revenue-manager/subscribe-with-google/non-site-kit-user.js 5 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 0 B 0 B 🆕
dist/assets/blocks/sign-in-with-google/index.js 18.5 kB 0 B
dist/assets/css/googlesitekit-admin-css-********************.min.css 69.7 kB +38 B (+0.05%)
dist/assets/css/googlesitekit-adminbar-css-********************.min.css 12.3 kB 0 B
dist/assets/css/googlesitekit-authorize-application-css-********************.min.css 851 B 0 B
dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 8.88 kB 0 B
dist/assets/js/146-********************.js 960 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.88 kB 0 B
dist/assets/js/640-********************.js 2.35 kB 0 B
dist/assets/js/909-********************.js 1.01 kB 0 B
dist/assets/js/analytics-advanced-tracking-********************.js 404 B 0 B
dist/assets/js/googlesitekit-activation-********************.js 24.9 kB 0 B
dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 60.3 kB 0 B
dist/assets/js/googlesitekit-admin-pointers-tracking-********************.js 5.36 kB 0 B
dist/assets/js/googlesitekit-adminbar-********************.js 36 kB 0 B
dist/assets/js/googlesitekit-api-********************.js 8.04 kB 0 B
dist/assets/js/googlesitekit-block-tracking-********************.js 5.56 kB 0 B
dist/assets/js/googlesitekit-components-********************.js 5.63 kB 0 B
dist/assets/js/googlesitekit-consent-mode-********************.js 25.5 kB 0 B
dist/assets/js/googlesitekit-data-********************.js 1.76 kB 0 B
dist/assets/js/googlesitekit-datastore-forms-********************.js 7.21 kB 0 B
dist/assets/js/googlesitekit-datastore-location-********************.js 1.52 kB 0 B
dist/assets/js/googlesitekit-datastore-site-********************.js 18.7 kB 0 B
dist/assets/js/googlesitekit-datastore-ui-********************.js 7.37 kB 0 B
dist/assets/js/googlesitekit-datastore-user-********************.js 23.1 kB 0 B
dist/assets/js/googlesitekit-entity-dashboard-********************.js 73.6 kB 0 B
dist/assets/js/googlesitekit-events-provider-contact-form-7-********************.js 1.23 kB 0 B
dist/assets/js/googlesitekit-events-provider-easy-digital-downloads-********************.js 629 B 0 B
dist/assets/js/googlesitekit-events-provider-mailchimp-********************.js 1.22 kB 0 B
dist/assets/js/googlesitekit-events-provider-ninja-forms-********************.js 1.22 kB 0 B
dist/assets/js/googlesitekit-events-provider-optin-monster-********************.js 1.25 kB 0 B
dist/assets/js/googlesitekit-events-provider-popup-maker-********************.js 1.29 kB 0 B
dist/assets/js/googlesitekit-events-provider-woocommerce-********************.js 918 B 0 B
dist/assets/js/googlesitekit-events-provider-wpforms-********************.js 1.25 kB 0 B
dist/assets/js/googlesitekit-i18n-********************.js 6.1 kB 0 B
dist/assets/js/googlesitekit-key-metrics-setup-********************.js 53.7 kB 0 B
dist/assets/js/googlesitekit-main-dashboard-********************.js 159 kB 0 B
dist/assets/js/googlesitekit-metric-selection-********************.js 59.5 kB 0 B
dist/assets/js/googlesitekit-modules-********************.js 26 kB 0 B
dist/assets/js/googlesitekit-modules-ads-********************.js 47.9 kB 0 B
dist/assets/js/googlesitekit-modules-adsense-********************.js 137 kB 0 B
dist/assets/js/googlesitekit-modules-analytics-4-********************.js 191 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 52.6 kB 0 B
dist/assets/js/googlesitekit-modules-search-console-********************.js 65.3 kB 0 B
dist/assets/js/googlesitekit-modules-sign-in-with-google-********************.js 33.8 kB 0 B
dist/assets/js/googlesitekit-modules-tagmanager-********************.js 30.2 kB 0 B
dist/assets/js/googlesitekit-notifications-********************.js 66.7 kB 0 B
dist/assets/js/googlesitekit-polyfills-********************.js 228 B 0 B
dist/assets/js/googlesitekit-settings-********************.js 135 kB 0 B
dist/assets/js/googlesitekit-splash-********************.js 79.4 kB +53 B (+0.07%)
dist/assets/js/googlesitekit-user-input-********************.js 51.9 kB 0 B
dist/assets/js/googlesitekit-vendor-********************.js 315 kB 0 B
dist/assets/js/googlesitekit-widgets-********************.js 104 kB 0 B
dist/assets/js/googlesitekit-wp-dashboard-********************.js 61 kB 0 B
dist/assets/js/runtime-********************.js 1.89 kB +23 B (+1.24%)

compressed-size-action

Copy link
Copy Markdown
Collaborator

@techanvil techanvil left a comment

Choose a reason for hiding this comment

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

Thanks @ankitrox, this is most of the way there but could use a few tweaks. Please see my comments.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please rename this file to assets/svg/graphics/splash-screenshot-mobile.svg.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's wrap this right property in a media query to prevent the background image from obscuring the content in some narrow desktop viewports (e.g. 1024x768, as seen in the screenshot below).

Suggested change
@media (min-width: $bp-xlarge) {
right: 0;
}
Image

Comment on lines +143 to +154
@media (max-width: $bp-desktop) {
align-items: content;
display: flex;
overflow: hidden;
}

@media (max-width: $bp-tablet) {
.googlesitekit-setup__splash-graphic-screenshot {
max-height: none;
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if I'm missing something, but these styles don't seem to be needed. Also, content isn't a valid value for the align-items property.

Suggested change
@media (max-width: $bp-desktop) {
align-items: content;
display: flex;
overflow: hidden;
}
@media (max-width: $bp-tablet) {
.googlesitekit-setup__splash-graphic-screenshot {
max-height: none;
}
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thank you @techanvil
Removed it.

Comment on lines +160 to +163

.googlesitekit-setup__splash-graphic-screenshot {
bottom: 0;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Again, I might be missing something here but this doesn't seem needed:

Suggested change
.googlesitekit-setup__splash-graphic-screenshot {
bottom: 0;
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I added it when I was styling the screenshot on mobile, but seems like this is not required. Removed it.

Comment on lines 133 to 136
@@ -138,9 +137,37 @@
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think these properties should also be removed:

Suggested change
margin-bottom: $grid-gap-desktop;

@ankitrox
Copy link
Copy Markdown
Collaborator Author

Thanks @techanvil for reviewing the PR. I've addressed the feedback and sending your way for another review.

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