UX: Update reassign dropdown styles (#242)

- Make drop down options regular font weight
- Add icon to drop down options
This commit is contained in:
janzenisaac 2021-11-15 10:47:29 -06:00 committed by GitHub
parent 28fbcac11e
commit 54bd6bd2c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

View File

@ -127,7 +127,14 @@ function registerTopicFooterButtons(api) {
classNames: ["reassign"],
content() {
const content = [
{ id: "unassign", name: I18n.t("discourse_assign.unassign.title") },
{
id: "unassign",
name: htmlSafe(
`${iconHTML("user-times")} ${I18n.t(
"discourse_assign.unassign.title"
)}`
),
},
];
if (
this.topic.isAssigned() &&
@ -136,12 +143,20 @@ function registerTopicFooterButtons(api) {
) {
content.push({
id: "reassign-self",
name: I18n.t("discourse_assign.reassign.to_self"),
name: htmlSafe(
`${iconHTML("user-plus")} ${I18n.t(
"discourse_assign.reassign.to_self"
)}`
),
});
}
content.push({
id: "reassign",
name: I18n.t("discourse_assign.reassign.title_w_ellipsis"),
name: htmlSafe(
`${iconHTML("group-plus")} ${I18n.t(
"discourse_assign.reassign.title_w_ellipsis"
)}`
),
});
return content;
},

View File

@ -107,10 +107,18 @@
}
}
.topic-footer-dropdown {
#topic-footer-dropdown-reassign {
.name {
font-weight: normal !important;
}
.avatar {
margin-right: 0.25em;
}
.d-icon,
i.fa {
margin-right: 0.25em;
color: var(--primary-medium);
}
}
// Group assigns sidebar nav