-
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
A4A: Fix discrepancies in the Signup form v2 styling. #99414
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
const topGoalOptions = [ | ||
{ label: translate( 'Access to cutting-edge technology' ), value: 'cutting_edge_tech' }, | ||
{ | ||
label: translate( 'Comprehensive support and troubleshooting' ), | ||
value: 'comprehensive_support', | ||
}, | ||
{ | ||
label: translate( 'Lead generation and new business opportunities' ), | ||
value: 'lead_generation', | ||
}, | ||
{ label: translate( 'Training and education for your team' ), value: 'training_education' }, | ||
{ | ||
label: translate( 'Exclusive discounts or revenue-sharing options' ), | ||
value: 'exclusive_discounts', | ||
}, | ||
]; | ||
|
||
const mainGoal2025Options = [ | ||
{ label: translate( 'Scaling the agency significantly' ), value: 'scaling_agency' }, | ||
{ label: translate( 'Diversifying offered services' ), value: 'diversifying_services' }, | ||
{ | ||
label: translate( 'Increasing the number of long-term clients' ), | ||
value: 'increasing_clients', | ||
}, | ||
{ label: translate( 'Expanding into new markets or territories' ), value: 'expanding_markets' }, | ||
{ | ||
label: translate( "Strengthening the agency's brand and reputation" ), | ||
value: 'strengthening_brand', | ||
}, | ||
]; | ||
|
||
const workModelOptions = [ | ||
{ | ||
label: translate( | ||
'Refer customers to Automattic products/services to purchase on their own' | ||
), | ||
value: 'refer_customers', | ||
}, | ||
{ | ||
label: translate( "Purchase on our clients' behalf and resell Automattic products/services" ), | ||
value: 'purchase_resell', | ||
}, | ||
{ label: translate( 'A combination of referring and reselling' ), value: 'combination' }, | ||
{ label: translate( 'Other models (please explain)' ), value: 'other' }, | ||
]; | ||
|
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.
To make it easier for us to change template later, we put options into arrays.
const BluePrintFormRadio = ( { | ||
label, | ||
checked, | ||
onChange, | ||
}: { | ||
label: string; | ||
checked: boolean; | ||
onChange: () => void; | ||
} ) => { | ||
return ( | ||
<div | ||
className="blue-print-form__radio" | ||
onClick={ onChange } | ||
role="button" | ||
tabIndex={ 0 } | ||
onKeyDown={ ( e ) => { | ||
if ( e.key === 'Enter' ) { | ||
onChange(); | ||
} | ||
} } | ||
> | ||
<FormRadio label={ label } checked={ checked } onChange={ onChange } /> | ||
</div> | ||
); | ||
}; |
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.
The current FormRadio does not support click event on the label. This wrapper allows us to make the entire radio and label clickable improving UX.
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~145 bytes added 📈 [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. |
@@ -46,124 +47,116 @@ export default function PersonalizationForm( { onContinue }: Props ) { | |||
title={ translate( 'Personalize your experience' ) } | |||
description={ translate( "We'll tailor the product and onboarding for you." ) } | |||
> | |||
<div className="signup-multi-step-form__fields"> |
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.
We don't need this. The current form already has 16px spacing.
) } | ||
> | ||
<div className="signup-multi-step-form__fields"> |
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.
We don't need this. The current form already has 16px spacing.
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
@@ -18,6 +22,32 @@ type FormData = { | |||
specificApproach: string; | |||
}; | |||
|
|||
const BluePrintFormRadio = ( { |
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 think we can name it BlueprintFormRadio
with small 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.
Thanks for adding proper styling. The code is clean and UI looks great for me. I think we can merge this and iterate if needed.
706e9cb
to
a498ff1
Compare
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17234101 Some locales (Brazilian Portuguese, Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @jkguidaven for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
This PR fixes discrepancies on the Signup form v2 styling based on the original design.
NOTE: When testing this, make sure you set your Browser's preference to light mode. The Dark mode theme will be addressed on a separate PR.
Closes https://github.com/Automattic/automattic-for-agencies-dev/issues/1729
Closes https://github.com/Automattic/automattic-for-agencies-dev/issues/1730
Closes https://github.com/Automattic/automattic-for-agencies-dev/issues/1732
Closes https://github.com/Automattic/automattic-for-agencies-dev/issues/1733
Proposed Changes
FormFooter
component to standardize footer in the Form.Why are these changes being made?
Testing Instructions
/signup/wc-asia
page.Pre-merge Checklist