A platform for community discussion. Free, open, simple.
UX: Show required indication consistently on signup (#11477)
Krise02c47c4f324
diff --git a/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs b/app/assets/javascripts/discourse/app/templates/modal/create-account.hbsindex a353fb0f889..22e4f7878a5 100644--- a/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs+++ b/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs@@ -17,7 +17,14 @@<table><tbody><tr class="input create-account-email">- <td class="label"><label for="new-account-email">{{i18n "user.email.title"}}</label></td>+ <td class="label">+ <label for="new-account-email">+ {{i18n "user.email.title"}}+ {{~#if userFields~}}+ <span class="required">*</span>+ {{/if}}+ </label>+ </td><td>{{#if emailValidated}}<span class="value">{{accountEmail}}</span>@@ -34,7 +41,14 @@</tr><tr class="input">- <td class="label"><label for="new-account-username">{{i18n "user.username.title"}}</label></td>+ <td class="label">+ <label for="new-account-username">+ {{i18n "user.username.title"}}+ {{~#if userFields~}}+ <span class="required">*</span>+ {{/if}}+ </label>+ </td><td>{{#if usernameDisabled}}<span class="value">{{accountUsername}}</span>@@ -52,7 +66,14 @@{{#if fullnameRequired}}<tr class="input"><td class="label">- <label for="new-account-name">{{i18n "user.name.title"}}</label>+ <label for="new-account-name">+ {{i18n "user.name.title"}}+ {{#if siteSettings.full_name_required}}+ {{~#if userFields~}}+ <span class="required">*</span>+ {{/if}}+ {{/if}}+ </label></td><td>{{#if nameDisabled}}@@ -83,7 +104,14 @@{{#if passwordRequired}}<tr class="input">- <td class="label"><label for="new-account-password">{{i18n "user.password.title"}}</label></td>+ <td class="label">+ <label for="new-account-password">+ {{i18n "user.password.title"}}+ {{~#if userFields~}}+ <span class="required">*</span>+ {{/if}}+ </label>+ </td><td>{{password-field value=accountPassword type="password" id="new-account-password" capsLockOn=capsLockOn}}</td>diff --git a/app/assets/stylesheets/common/base/user.scss b/app/assets/stylesheets/common/base/user.scssindex 24a318e2fbe..272ce23aadd 100644--- a/app/assets/stylesheets/common/base/user.scss+++ b/app/assets/stylesheets/common/base/user.scss@@ -339,6 +339,7 @@}}+.login-form,.user-field {.required {vertical-align: top;