mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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"),
|
noTagsLabel: i18n("tagging.selector_no_tags"),
|
||||||
|
|
||||||
|
modifyComponentForRow() {
|
||||||
|
return "tag-row";
|
||||||
|
},
|
||||||
|
|
||||||
shortcuts: computed("tagId", function () {
|
shortcuts: computed("tagId", function () {
|
||||||
const shortcuts = [];
|
const shortcuts = [];
|
||||||
|
|
||||||
|
@ -47,12 +47,6 @@
|
|||||||
background: var(--tertiary-low);
|
background: var(--tertiary-low);
|
||||||
}
|
}
|
||||||
|
|
||||||
.discourse-tag {
|
|
||||||
&:hover {
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.discourse-tag-count {
|
.discourse-tag-count {
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
}
|
}
|
||||||
|
@ -170,8 +170,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.discourse-tag,
|
.discourse-tag,
|
||||||
|
.discourse-tag:visited,
|
||||||
|
.discourse-tag:hover,
|
||||||
.discourse-tag-count {
|
.discourse-tag-count {
|
||||||
color: var(--primary);
|
color: var(--primary-high);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.create-color-row {
|
&.create-color-row {
|
||||||
|
Loading…
Reference in New Issue
Block a user