refactor: ensure global setting links open in a new tab #7400
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.
Resolves: GIVE-813
Description
Some v3 block settings have the option to use global settings for the block. When global settings have been chosen, a link that navigates the user to the blocks settings page is shown. clicking this link can be frustrating if you are editing a form as it will navigate you from the builder to the settings page & you will lose any changes in progress.
The terms & conditions block + the donor name block both have this global setting link. This PR updates the anchor tags target and rel attributes to ensure they open the settings in a new tab. We also update the text within the link to capitalize the g in Global.
Affects
Donor Name Block
Terms & Conditions Block
Visuals
https://www.loom.com/share/197392b48ef341ae81b0f0535b18461c?sid=9af685c8-f528-43ee-a32c-a6f5f9653e12
Testing Instructions
Pre-review Checklist
@unreleased
tags included in DocBlocks