FIX: Notifications dropdown had incorrect spacing
This commit is contained in:
parent
4f574e7c93
commit
ff4e295c4f
|
@ -54,6 +54,8 @@ registerIconRenderer({
|
|||
},
|
||||
|
||||
node(id, params) {
|
||||
let tagName = params.tagName || 'i';
|
||||
|
||||
const properties = {
|
||||
className: faClasses(id, params),
|
||||
attributes: { "aria-hidden": true }
|
||||
|
@ -61,9 +63,9 @@ registerIconRenderer({
|
|||
|
||||
if (params.title) { properties.attributes.title = params.title; }
|
||||
if (params.label) {
|
||||
return h('i', properties, h('span.sr-only', I18n.t(params.label)));
|
||||
return h(tagName, properties, h('span.sr-only', I18n.t(params.label)));
|
||||
} else {
|
||||
return h('i', properties);
|
||||
return h(tagName, properties);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -10,7 +10,7 @@ createWidget('notification-option', {
|
|||
|
||||
html(attrs) {
|
||||
return h('a', [
|
||||
iconNode(attrs.icon, { class: attrs.key }),
|
||||
iconNode(attrs.icon, { class: `icon ${attrs.key}`, tagName: 'span' }),
|
||||
h('div', [
|
||||
h('span.title', I18n.t(`topic.notifications.${attrs.key}.title`)),
|
||||
h('span.desc', I18n.t(`topic.notifications.${attrs.key}.description`)),
|
||||
|
|
Loading…
Reference in New Issue