DEV: Use tag renderer in tags filter dropdown (#11378)

A small change that would allow components to extend the tag
display in the filter dropdown, like they can in other contexts.

Was requested in the tag icons component, see
https://meta.discourse.org/t/tag-icons-component/109757/60?u=pmusaraj

The PR also standardises tag styling in select-kit dropdowns.
This commit is contained in:
Penar Musaraj 2020-12-07 12:10:21 -05:00 committed by GitHub
parent dcd7defb14
commit 490e1cfbbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -96,6 +96,10 @@ export default ComboBoxComponent.extend(TagsMixin, {
noTagsLabel: i18n("tagging.selector_no_tags"),
modifyComponentForRow() {
return "tag-row";
},
shortcuts: computed("tagId", function () {
const shortcuts = [];

View File

@ -47,12 +47,6 @@
background: var(--tertiary-low);
}
.discourse-tag {
&:hover {
color: var(--primary);
}
}
.discourse-tag-count {
margin-left: 0.5em;
}

View File

@ -170,8 +170,10 @@
}
.discourse-tag,
.discourse-tag:visited,
.discourse-tag:hover,
.discourse-tag-count {
color: var(--primary);
color: var(--primary-high);
}
&.create-color-row {