Inline links added for tos on register page

VAN-386
This commit is contained in:
adeelehsan
2021-03-17 02:14:56 +05:00
parent a66fb299f9
commit 882ae17f84
3 changed files with 12 additions and 6 deletions

View File

@@ -264,6 +264,11 @@ $apple-focus-black: $apple-black;
margin-left: -5px;
}
#honor-code p {
margin: 0;
padding: 0;
}
#honor-code a span {
@extend .sr-only;
}

View File

@@ -541,6 +541,7 @@ class RegistrationPage extends React.Component {
<div id="honor-code" className="pt-10 small">
<FormattedMessage
id="register.page.terms.of.service.and.honor.code"
tagName="p"
defaultMessage="By creating an account, you agree to the {tosAndHonorCode} and you acknowledge that {platformName} and each
Member process your personal data in accordance with the {privacyPolicy}."
description="Text that appears on registration form stating honor code and privacy policy"

View File

@@ -1417,7 +1417,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
className="pt-10 small"
id="honor-code"
>
<span>
<p>
By creating an account, you agree to the
<a
href="http://tos-and-honot-code.com"
@@ -1455,7 +1455,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
</span>
</a>
.
</span>
</p>
</div>
<div
className="form-group custom-control pt-10 mb-0"
@@ -2968,7 +2968,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
className="pt-10 small"
id="honor-code"
>
<span>
<p>
By creating an account, you agree to the
<a
href="http://tos-and-honot-code.com"
@@ -3006,7 +3006,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
</span>
</a>
.
</span>
</p>
</div>
<div
className="form-group custom-control pt-10 mb-0"
@@ -4480,7 +4480,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
className="pt-10 small"
id="honor-code"
>
<span>
<p>
By creating an account, you agree to the
<a
href="http://tos-and-honot-code.com"
@@ -4518,7 +4518,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
</span>
</a>
.
</span>
</p>
</div>
<div
className="form-group custom-control pt-10 mb-0"