-
Notifications
You must be signed in to change notification settings - Fork 72
update: subscription onboarding to use WP components #10907
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
update: subscription onboarding to use WP components #10907
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
@@ -87,14 +89,7 @@ const SubscriptionProductOnboardingModalContent = ( { | |||
'woocommerce-payments' | |||
), | |||
{ | |||
a: ( | |||
// eslint-disable-next-line jsx-a11y/anchor-has-content | |||
<a |
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.
Modifying to the external link component, since this opens in a new window. The external link component provides a visual hint that the link will open in a new page, and it ensures a11y compatibility by adding the "(opens in a new tab)" text.
@@ -10,6 +10,7 @@ | |||
} | |||
|
|||
.components-modal__content { | |||
padding-top: 0; |
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.
Size Change: +423 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
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.
Code looks good. We connected to get to the testing steps as I wasn't able to do it on my end.
Fixes WOOPMNT-5124
Changes proposed in this Pull Request
Ensuring that the
subscription-product-onboarding
dialog uses the components from the WP installation, rather than the@wordpress/components
bundled with the plugin's codebase.Testing instructions
Unfortunately, I couldn't find a way to "canonically" test this.
I opted for forcing the dialog to be displayed by manually altering the
includes/subscriptions/class-wc-payments-subscriptions-onboarding-handler.php
file:npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge