Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domains step: Improve domain title spacing on smaller screens #94852

Merged
merged 16 commits into from
Sep 25, 2024

Conversation

renancarvalho
Copy link
Contributor

@renancarvalho renancarvalho commented Sep 24, 2024

Related to #94426
Fixes #94426

Proposed Changes

This is the second attempt, previously we had to revert due to some tests failing. No code has changed, only a null check to fix the tests

  • There are spacing issues when users choose excessively long domain names or titles. This affects both mobile and desktop views, with the main problem being the content growing too large to fit properly.

This PR addresses the issue by repositioning the 'deal' badges above the title and ensuring that overly long titles are automatically broken into multiple lines for better readability and layout.

Issue
image

Fix
image

Why are these changes being made?

  • Fixes this layout issue
image

Testing Instructions

  • Navigate to any flow (e.g., /setup/onboarding/domains) and proceed to the domains step.

  • Select an excessively long domain name and verify that the layout remains intact (compare it with the production version).

  • Ensure the domain grid matches the provided screenshots.

  • Compare it with the /start/onboarding flow and confirm that the horizontal scroll issue has been resolved, especially on mobile or smaller screens.

@renancarvalho renancarvalho self-assigned this Sep 24, 2024
@renancarvalho renancarvalho requested a review from a team as a code owner September 24, 2024 13:14
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Sep 24, 2024
@renancarvalho renancarvalho requested a review from a team September 24, 2024 13:16
@matticbot
Copy link
Contributor

matticbot commented Sep 24, 2024

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~22 bytes added 📈 [gzipped])

name                  parsed_size           gzip_size
videopress-flow            +148 B  (+0.0%)      +22 B  (+0.0%)
update-design-flow         +148 B  (+0.0%)      +22 B  (+0.0%)
sensei-flow                +148 B  (+0.0%)      +22 B  (+0.0%)
link-in-bio-tld-flow       +148 B  (+0.0%)      +22 B  (+0.0%)
domains                    +148 B  (+0.0%)      +22 B  (+0.0%)
copy-site-flow             +148 B  (+0.0%)      +22 B  (+0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Async-loaded Components (~22 bytes added 📈 [gzipped])

name                             parsed_size           gzip_size
async-load-signup-steps-domains       +148 B  (+0.0%)      +22 B  (+0.0%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@matticbot
Copy link
Contributor

matticbot commented Sep 24, 2024

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug fix/domains_title_space_issue on your sandbox.

@renancarvalho renancarvalho merged commit 8aeed12 into trunk Sep 25, 2024
12 checks passed
@renancarvalho renancarvalho deleted the fix/domains_title_space_issue branch September 25, 2024 08:01
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stepper: Offer sticker overlaps domains
2 participants