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

Fix spacing around domain transfer lock icon #96980

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

wojtekn
Copy link
Contributor

@wojtekn wojtekn commented Dec 2, 2024

Related to https://github.com/Automattic/dotcom-forge/issues/9789

Proposed Changes

I propose to fix the spacing around the domain transfer lock icon on the manage domain page and in the transfer form.

Why are these changes being made?

The spacing between the icon and text is incorrect.

Testing Instructions

  1. Open Calypso locally or use a Calypso Live link
  2. Navigate to the /domains/manage page
  3. Locate a domain and click it
  4. Confirm that spacing is fixed
Before After
Screenshot 2024-12-02 at 17 43 22 Screenshot 2024-12-02 at 17 42 23
Before After
Screenshot 2024-12-02 at 17 43 30 Screenshot 2024-12-02 at 17 42 33

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@wojtekn wojtekn requested a review from a team December 2, 2024 16:45
@wojtekn wojtekn self-assigned this Dec 2, 2024
@wojtekn wojtekn requested a review from a team as a code owner December 2, 2024 16:45
@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 Dec 2, 2024
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@wojtekn wojtekn added the Groundskeeping Issues handled through Dotcom Groundskeeping rotations label Dec 2, 2024
Copy link
Contributor

@fredrikekelund fredrikekelund left a comment

Choose a reason for hiding this comment

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

Works as expected 👍 I would take the opportunity to also remove the viewBox attribute on this line, though. The icon will align better with the baseline of the text if we do that.

Same thing here (we could also change the size attribute to 16)

<Icon icon={ lock } size={ 15 } viewBox="4 0 18 20" />

@wojtekn
Copy link
Contributor Author

wojtekn commented Dec 3, 2024

@fredrikekelund, thanks for the suggestion. I tried that, but the icon became distorted. I changed the size and viewPort for one of the icons to make them consistent, though.

@wojtekn wojtekn requested a review from okmttdhr December 3, 2024 09:30
@fredrikekelund
Copy link
Contributor

I tried that, but the icon became distorted

I also tested it and didn't notice any distortion 🤔 Did you see that with both icons or just one?

cc @matt-west for any design advice

@wojtekn wojtekn merged commit 7337b48 into trunk Dec 3, 2024
12 checks passed
@wojtekn wojtekn deleted the fix/domain-transfer-lock-icon-spacing branch December 3, 2024 09:37
@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 Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groundskeeping Issues handled through Dotcom Groundskeeping rotations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants