-
Notifications
You must be signed in to change notification settings - Fork 841
Forms: componentize more response fields #45918
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
base: trunk
Are you sure you want to change the base?
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
| return ( | ||
| <> | ||
| <span className="response-country-flag"> | ||
| <span className="jp-forms__inbox-response-country-flag"> |
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.
Could drop response out of CSS style since it's used here in the row as well, and perhaps componentize the whole thing further.
|
|
||
| .jp-forms__inbox-response-image-select { | ||
|
|
||
| .image-select-field-button { |
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.
TODO; remove the wrapper selector and just focus on this single selector to simplify.
Code Coverage SummaryCoverage changed in 1 file.
2 files are newly checked for coverage.
Full summary · PHP report · JS report Coverage check overridden by
I don't care about code coverage for this PR
|
ec08c3b to
5a16464
Compare
5a16464 to
ed2ed07
Compare
| text-align: left; | ||
| text-wrap: auto; |
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.
These two lines are new, and otherwise the CSS classes just got new structure.
They help better account for long labels; previously these were cutting out when too long, now they go to multiple lines.
| // Phone numbers | ||
| if ( isLikelyPhoneNumber( value ) ) { | ||
| return ( | ||
| <div className="phone-field"> |
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.
CSS class was unused so removed it.
Part of FORMS-391
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: