From d6ddb337c8e8aea2b1bb90b680ceb8f41c97aea9 Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 22 Nov 2022 19:46:35 -0500 Subject: [PATCH] UX: use solid envelope icon for consistency (#19157) --- .../javascripts/admin/addon/templates/user-index.hbs | 8 ++++---- .../discourse-common/addon/lib/icon-library.js | 4 ++-- .../javascripts/discourse/app/components/user-nav.hbs | 2 +- app/assets/javascripts/discourse/app/templates/about.hbs | 2 +- .../app/templates/components/edit-category-settings.hbs | 2 +- .../app/templates/components/reviewable-queued-post.hbs | 2 +- .../discourse/app/templates/components/tag-list.hbs | 2 +- .../app/templates/components/user-card-contents.hbs | 4 ++-- .../discourse/app/templates/preferences/account.hbs | 4 ++-- app/assets/javascripts/discourse/app/templates/user.hbs | 4 ++-- app/assets/stylesheets/common/base/menu-panel.scss | 2 +- .../templates/styleguide/organisms/user-about.hbs | 4 ++-- 12 files changed, 20 insertions(+), 20 deletions(-) diff --git a/app/assets/javascripts/admin/addon/templates/user-index.hbs b/app/assets/javascripts/admin/addon/templates/user-index.hbs index 8bf8131f57c..9e1e11b79bf 100644 --- a/app/assets/javascripts/admin/addon/templates/user-index.hbs +++ b/app/assets/javascripts/admin/addon/templates/user-index.hbs @@ -38,7 +38,7 @@ {{#if this.model.email}} {{this.model.email}} {{else}} - + {{/if}}
@@ -65,7 +65,7 @@ {{i18n "user.email.no_secondary"}} {{/if}} {{else}} - + {{/if}}
@@ -99,7 +99,7 @@ {{#if this.associatedAccountsLoaded}} {{this.associatedAccounts}} {{else}} - + {{/if}} @@ -561,7 +561,7 @@ {{#if this.ssoExternalEmail}}
{{this.ssoExternalEmail}}
{{else}} - + {{/if}} {{/if}} diff --git a/app/assets/javascripts/discourse-common/addon/lib/icon-library.js b/app/assets/javascripts/discourse-common/addon/lib/icon-library.js index b9a83de3d8b..df1149d8a58 100644 --- a/app/assets/javascripts/discourse-common/addon/lib/icon-library.js +++ b/app/assets/javascripts/discourse-common/addon/lib/icon-library.js @@ -34,8 +34,8 @@ const REPLACEMENTS = { "notification.liked_2": "heart", "notification.liked_many": "heart", "notification.liked_consolidated": "heart", - "notification.private_message": "far-envelope", - "notification.invited_to_private_message": "far-envelope", + "notification.private_message": "envelope", + "notification.invited_to_private_message": "envelope", "notification.invited_to_topic": "hand-point-right", "notification.invitee_accepted": "user", "notification.moved_post": "sign-out-alt", diff --git a/app/assets/javascripts/discourse/app/components/user-nav.hbs b/app/assets/javascripts/discourse/app/components/user-nav.hbs index 4caa7d2e7a6..f4a2757cae2 100644 --- a/app/assets/javascripts/discourse/app/components/user-nav.hbs +++ b/app/assets/javascripts/discourse/app/components/user-nav.hbs @@ -28,7 +28,7 @@ {{#if @showPrivateMessages}}
  • - {{d-icon "far-envelope"}} + {{d-icon "envelope"}} {{i18n "user.private_messages"}}
  • diff --git a/app/assets/javascripts/discourse/app/templates/about.hbs b/app/assets/javascripts/discourse/app/templates/about.hbs index 568edf21699..444b373c401 100644 --- a/app/assets/javascripts/discourse/app/templates/about.hbs +++ b/app/assets/javascripts/discourse/app/templates/about.hbs @@ -120,7 +120,7 @@ {{#if this.contactInfo}}
    -

    {{d-icon "far-envelope"}} {{i18n "about.contact"}}

    +

    {{d-icon "envelope"}} {{i18n "about.contact"}}

    {{html-safe this.contactInfo}}

    {{/if}} diff --git a/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs b/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs index 2f9f51a47fd..5df8c8dba4d 100644 --- a/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/edit-category-settings.hbs @@ -229,7 +229,7 @@ {{#if this.emailInEnabled}}
    diff --git a/app/assets/javascripts/discourse/app/templates/components/reviewable-queued-post.hbs b/app/assets/javascripts/discourse/app/templates/components/reviewable-queued-post.hbs index 39b8e7dd3a0..ff7e70e3af8 100644 --- a/app/assets/javascripts/discourse/app/templates/components/reviewable-queued-post.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/reviewable-queued-post.hbs @@ -7,7 +7,7 @@ {{#if this.reviewable.payload.via_email}} - {{d-icon "far-envelope" title="post.via_email"}} + {{d-icon "envelope" title="post.via_email"}} {{/if}} diff --git a/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs b/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs index eb3e459841a..1adf14a9613 100644 --- a/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs @@ -9,7 +9,7 @@ {{/if}} {{#each this.sortedTags as |tag|}}
    - {{discourse-tag tag.id description=tag.description isPrivateMessage=this.isPrivateMessage pmOnly=tag.pmOnly tagsForUser=this.tagsForUser}} {{#if tag.pmOnly}}{{d-icon "far-envelope"}}{{/if}}{{#if tag.totalCount}} x {{tag.totalCount}}{{/if}} + {{discourse-tag tag.id description=tag.description isPrivateMessage=this.isPrivateMessage pmOnly=tag.pmOnly tagsForUser=this.tagsForUser}} {{#if tag.pmOnly}}{{d-icon "envelope"}}{{/if}}{{#if tag.totalCount}} x {{tag.totalCount}}{{/if}}
    {{/each}}
    diff --git a/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs b/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs index eb422a5e393..a2097db3ef3 100644 --- a/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs @@ -196,11 +196,11 @@ {{/if}} {{#if this.showCheckEmail}} {{/if}} diff --git a/app/assets/javascripts/discourse/app/templates/preferences/account.hbs b/app/assets/javascripts/discourse/app/templates/preferences/account.hbs index 6d7069c5f9d..c8a33c91fdb 100644 --- a/app/assets/javascripts/discourse/app/templates/preferences/account.hbs +++ b/app/assets/javascripts/discourse/app/templates/preferences/account.hbs @@ -83,7 +83,7 @@ {{else}}
    - +
    {{/if}} @@ -123,7 +123,7 @@ {{else}}
    - +
    {{/if}} diff --git a/app/assets/javascripts/discourse/app/templates/user.hbs b/app/assets/javascripts/discourse/app/templates/user.hbs index 553196e307a..80b308b0132 100644 --- a/app/assets/javascripts/discourse/app/templates/user.hbs +++ b/app/assets/javascripts/discourse/app/templates/user.hbs @@ -199,7 +199,7 @@ {{#if this.model.email}} {{this.model.email}} {{else}} - + {{/if}} @@ -263,7 +263,7 @@ {{/if}} {{#if this.showPrivateMessages}} -
  • {{d-icon "far-envelope"}}{{i18n 'user.private_messages'}}
  • +
  • {{d-icon "envelope"}}{{i18n 'user.private_messages'}}
  • {{/if}} {{#if this.canInviteToForum}} diff --git a/app/assets/stylesheets/common/base/menu-panel.scss b/app/assets/stylesheets/common/base/menu-panel.scss index 201614eb630..4289530592a 100644 --- a/app/assets/stylesheets/common/base/menu-panel.scss +++ b/app/assets/stylesheets/common/base/menu-panel.scss @@ -504,7 +504,7 @@ } } .is-warning { - .d-icon-far-envelope { + .d-icon-envelope { color: var(--danger); } } diff --git a/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/organisms/user-about.hbs b/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/organisms/user-about.hbs index 2967778664a..35949d0b428 100644 --- a/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/organisms/user-about.hbs +++ b/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/organisms/user-about.hbs @@ -142,7 +142,7 @@
    {{i18n "user.trust_level"}}
    {{this.dummy.user.trustLevel.name}}
    {{i18n "user.email.title"}}
    - +
    {{i18n "groups.title" count=this.dummy.user.displayGroups.length}}
    @@ -237,7 +237,7 @@
    {{i18n "user.trust_level"}}
    {{this.dummy.user.trustLevel.name}}
    {{i18n "user.email.title"}}
    - +
    {{i18n "groups.title" count=this.dummy.user.displayGroups.length}}