-
Notifications
You must be signed in to change notification settings - Fork 2k
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: Usability fixes for the edit domain contact screens #39534
Domains: Usability fixes for the edit domain contact screens #39534
Conversation
@@ -135,27 +134,23 @@ class ContactsPrivacyCard extends React.Component { | |||
|
|||
return ( | |||
<div> | |||
<SectionHeader label={ translate( 'Domain Contacts' ) } /> | |||
<Card className="contacts-privacy__card"> | |||
<p>{ translate( 'Your domain contact information' ) }</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 34 times:
translate( 'Domain Contact Information' )
ES Score: 7
See 1 additional suggestions in the PR translation status page
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~9 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. 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. Generated by performance advisor bot at iscalypsofastyet.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and LGTM - tried different domains both supporting and not privacy protection on a variety of domain partners.
One thing I'd suggest is that without the gray header, the box the contact details show up in is very hard to distinguish from the white background:
What do you think about setting the background color of the whole box to var( --color-neutral )
? Or some other way of making sure this contact block stands out a bit more from the rest of the layout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this as well and it looks good. I like @klimeryk's suggestion about changing the background colour. That'll differentiate it more from the rest of the content.
The update looks great! Thanks for that suggestion @klimeryk! 🚢 |
Changes proposed in this Pull Request
Contacts and Privacy (before):
Contacts and Privacy (after):
Edit Contact Info (before):
Edit Contact Info (after):
Testing instructions