Forms: remove dependency to @automattic/calypso-color-schemes#50461
Forms: remove dependency to @automattic/calypso-color-schemes#50461simison wants to merge 4 commits into
@automattic/calypso-color-schemes#50461Conversation
|
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! |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |

In preparation for improving WPDS CSS token build pipelines in Jetpack (#50108), I'm removing the few dependencies in old Calypso color schemes package.
Proposed changes
Replaced the error notice with the Notice component instead of a custom-made one.
Removed Gridicons dependency also now as unused in Forms.
Upsell styles at
projects/packages/forms/src/blocks/shared/components/upsell-nudge/style.scssI'm removing entirely — they're loosely coupled overrides for the Jetpack component styles which in turn override some core component styles. The Jetpack form-specific styles don't seem to be actually doing anything (at least that I can see).The errors could actually use the Notice component now and form field invalid message later once its available, instead of a custom-made thingy with an old Gridicon, but that's a separate worry. :-)
Related product discussion/links
Does this pull request change what data or activity we track or use?
Testing instructions
Build forms
jetpack build packages/formsIn the editor, test 3 things with Form block:
Upsell banner for file upload field

Error for invalid emails in the block settings sidebar
Error for invalid API key for Salesforce integration

Screenshots before: