Unverified Commit 7d6ba826 authored by David Disu's avatar David Disu Committed by GitHub

Fix multiple badges (#970)

parent a142c4a6
...@@ -115,7 +115,7 @@ export class VerticalIcons extends Plugin { ...@@ -115,7 +115,7 @@ export class VerticalIcons extends Plugin {
setIconStatus (name, status) { setIconStatus (name, status) {
const el = this.icons[name] const el = this.icons[name]
if (!el) return if (!el) return
const statusEl = el.querySelector('span') const statusEl = el.querySelector('i')
if (statusEl) { if (statusEl) {
el.removeChild(statusEl) el.removeChild(statusEl)
} }
...@@ -134,13 +134,13 @@ export class VerticalIcons extends Plugin { ...@@ -134,13 +134,13 @@ export class VerticalIcons extends Plugin {
} else type = helper.checkSpecialChars(status.type) ? '' : status.type } else type = helper.checkSpecialChars(status.type) ? '' : status.type
const title = helper.checkSpecialChars(status.title) ? '' : status.title const title = helper.checkSpecialChars(status.title) ? '' : status.title
el.appendChild(yo`<span el.appendChild(yo`<i
title="${title}" title="${title}"
class="${this.resolveClasses(key, type)}" class="${this.resolveClasses(key, type)}"
aria-hidden="true" aria-hidden="true"
> >
${text} ${text}
</span>`) </i>`)
el.classList.add(`${css.icon}`) el.classList.add(`${css.icon}`)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment