Skip to content

Commit 5d248b8

Browse files
authored
UX: update emoji, better icon match (#122)
1 parent 82bf4e7 commit 5d248b8

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

assets/javascripts/discourse-user-notes/connectors/after-reviewable-post-user/show-user-notes-on-flags.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<img
99
src={{this.emojiUrl}}
1010
title={{this.userNotesTitle}}
11-
alt="pencil"
11+
alt=""
1212
class="emoji"
1313
/>
1414
{{else}}
15-
{{d-icon "note-sticky"}}
15+
{{d-icon "pen-to-square"}}
1616
{{/if}}
1717
</DButton>
1818
{{/if}}

assets/javascripts/discourse-user-notes/connectors/after-reviewable-post-user/show-user-notes-on-flags.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
component.setProperties({
1616
userNotesCount,
1717
emojiEnabled: component.siteSettings.enable_emoji,
18-
emojiUrl: emojiUrlFor("pencil"),
18+
emojiUrl: emojiUrlFor("memo"),
1919
userNotesTitle: i18n("user_notes.show", { count: userNotesCount }),
2020
});
2121
},

assets/javascripts/discourse-user-notes/connectors/user-card-post-names/show-user-notes-on-card.gjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export default class extends Component {
4343
class="btn-flat"
4444
>
4545
{{#if this.siteSettings.enable_emoji}}
46-
{{emoji "pencil"}}
46+
{{emoji "memo"}}
4747
{{else}}
48-
{{icon "note-sticky"}}
48+
{{icon "pen-to-square"}}
4949
{{/if}}
5050
</DButton>
5151
{{/if}}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<DButton
22
class="btn-default show-user-notes-btn"
33
@action={{@show}}
4-
@icon="pencil"
4+
@icon="pen-to-square"
55
@translatedLabel={{this.label}}
66
/>

assets/javascripts/discourse/initializers/enable-user-notes.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
});
7171
api.addPostAdminMenuButton((attrs) => {
7272
return {
73-
icon: "pencil",
73+
icon: "pen-to-square",
7474
label: "user_notes.attach",
7575
action: (post) => {
7676
showUserNotes(
@@ -103,9 +103,9 @@ export default {
103103

104104
html() {
105105
if (this.siteSettings.enable_emoji) {
106-
return this.attach("emoji", { name: "pencil" });
106+
return this.attach("emoji", { name: "memo" });
107107
} else {
108-
return iconNode("note-sticky");
108+
return iconNode("pen-to-square");
109109
}
110110
},
111111
});

plugin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
register_asset "stylesheets/user_notes.scss"
1313

14-
register_svg_icon "note-sticky"
14+
register_svg_icon "pen-to-square"
1515

1616
after_initialize do
1717
require_dependency "user"

0 commit comments

Comments
 (0)