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:
parent
dcd7defb14
commit
490e1cfbbb
|
@ -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 = [];
|
||||
|
||||
|
|
|
@ -47,12 +47,6 @@
|
|||
background: var(--tertiary-low);
|
||||
}
|
||||
|
||||
.discourse-tag {
|
||||
&:hover {
|
||||
color: var(--primary);
|
||||
}
|
||||
}
|
||||
|
||||
.discourse-tag-count {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue