-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Improve the communication around required and optional #35266
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
Conversation
Test Results SummaryCommit SHA: 146d796
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
joshuatf
left a comment
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.
Looks great! Left one optional change, but pre-approving! ✅
| label={ interpolateComponents( { | ||
| mixedString: __( | ||
| 'Slug {{span}}(optional){{/span}}', | ||
| 'Name {{span}}(required){{/span}}', |
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 wonder if passing just an {{required/}} component would make this slightly easier on translators.
E.g.,
components: {
optional: {
<span className="woocommerce-add-new-shipping-class-modal__optional-input">{ __( '(required)', 'woocommerce' ) }</span>
}
}
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.
Cool!!! This is way better. Thanks and Done!!!
026d0f8 to
794baad
Compare
joshuatf
left a comment
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.
Beautiful! Still testing well and LGTM 🚢
|
Hi @mdperez86, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
All Submissions:
Changes proposed in this Pull Request:
Closes #35191.
How to test the changes in this Pull Request:
(required)hint on the right side of its label should be theNameand the(optional)hit should not be shown for any fieldOther information:
pnpm changelog add --filter=<project>?FOR PR REVIEWER ONLY: