Updated copy for portal signup notice

Refs https://github.com/TryGhost/Team/issues/2897
This commit is contained in:
Sanne de Vries 2023-04-12 08:28:02 +01:00
parent 8571011e7d
commit bbcc7de31c
4 changed files with 9 additions and 2 deletions

View File

@ -141,11 +141,12 @@
{{#if (feature "makingItRain")}}
<GhFormGroup class="gh-stack-item mt5 mb5" @errors={{this.settings.errors}} @hasValidated={{this.settings.hasValidated}}>
<label class="modal-fullsettings-title">Notice on signup</label>
<label class="modal-fullsettings-title">Display notice at signup</label>
<KoenigBasicHtmlInput
@name="footer"
@html={{this.settings.portalSignupTermsHtml}}
@class="miw-100 form-text gh-members-emailsettings-footer-input"
@placeholder="By signing up, I agree to receive emails from {{this.config.blogTitle}}."
@onChange={{action "setTermsHtml"}}
/>
<GhErrorMessage @errors={{this.settings.errors}} @property="portalSignupTermsHtml" />

View File

@ -286,7 +286,7 @@ export default ModalComponent.extend({
this.settings.hasValidated.removeObject('portalSignupTermsHtml');
if (content.length > this.maxTermsLength) {
this.settings.errors.add('portalSignupTermsHtml', 'You\'ve exceeded the character limit');
this.settings.errors.add('portalSignupTermsHtml', 'Signup notice is too long');
this.settings.hasValidated.pushObject('portalSignupTermsHtml');
}
}

View File

@ -17,8 +17,10 @@ export function countDownCharacters(params) {
if (length > maxCharacters) {
el.style.color = '#E25440';
el.style.fontWeight = 'bold';
} else {
el.style.color = '#30CF43';
el.style.fontWeight = 'bold';
}
el.innerHTML = length;

View File

@ -107,6 +107,10 @@
height: 60px;
}
.gh-portal-settings .gh-members-emailsettings-footer-input .__mobiledoc-editor.__has-no-content:after {
line-height: 1.5em
}
.gh-portal-setting-sectionheading {
font-size: 1.1rem;
font-weight: 600;