Skip to content

Commit f2920ad

Browse files
fix: Add tagCategory data attribute for CSS styling
1 parent dbb5f66 commit f2920ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

web/js/autocomplete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ class AutocompleteUI {
523523
const tagRow = document.createElement('div');
524524
tagRow.classList.add('autocomplete-plus-item', tagData.source);
525525
tagRow.dataset.index = tagDataIndex;
526+
tagRow.dataset.tagCategory = categoryText; // Used to color by CSS
526527

527528
// Tag icon and name
528529
const tagSourceIconHtml = `<svg class="autocomplete-plus-tag-icon-svg"><use xlink:href="#autocomplete-plus-icon-${tagData.source}"></use></svg>`;

0 commit comments

Comments
 (0)