add a slot to customize email helper text #179
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Allow overriding the helper text on the email field using a slot, if needed. This allows partners using advanced functionality (
show-email="true"
and event handlers to facilitate signing up users to their own email list) to customize the email label so it explains what's going on. This could be used in conjunction with customizing the footer as well to further clarify which terms and privacy policy apply.This is a prototype - seeking feedback to see if this makes sense to others, pending legal input on the approach as well.
Test Plan
I'm running
yarn cypress:open
and inspecting that the calculator looks reasonable when the last of the new email tests runs. The preview build for this PR should be unchanged from production.This is a screenshot from the Cypress test: