FIX: simplify styling of category-name when using category-drop/link

This commit is contained in:
Joffrey JAFFEUX 2018-02-02 10:31:20 +01:00 committed by GitHub
parent cf592fa35d
commit b4aad15267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -73,9 +73,9 @@ export function categoryBadgeHTML(category, opts) {
}
if (restricted) {
html += `${iconHTML('lock')}<span ${categoryDir}>${categoryName}</span>`;
html += `${iconHTML('lock')}<span class="category-name" ${categoryDir}>${categoryName}</span>`;
} else {
html += `<span ${categoryDir}>${categoryName}</span>`;
html += `<span class="category-name" ${categoryDir}>${categoryName}</span>`;
}
html += "</span>";

View File

@ -74,9 +74,9 @@ export default ComboBoxComponent.extend({
}).htmlSafe();
} else {
if (this.get("noSubcategories")) {
content.label = this.get("noCategoriesLabel");
content.label = `<span class="category-name">${this.get("noCategoriesLabel")}</span>`;
} else {
content.label = this.get("allCategoriesLabel");
content.label = `<span class="category-name">${this.get("allCategoriesLabel")}</span>`;
}
}