diff --git a/app/assets/javascripts/discourse/components/notifications-button.js.es6 b/app/assets/javascripts/discourse/components/notifications-button.js.es6 index 2695cfc9186..10f5d54f26e 100644 --- a/app/assets/javascripts/discourse/components/notifications-button.js.es6 +++ b/app/assets/javascripts/discourse/components/notifications-button.js.es6 @@ -22,7 +22,7 @@ export default DropdownButton.extend({ id: l.id, title: I18n.t(`${start}.title`), description: I18n.t(`${start}.description`), - styleClasses: `${l.key} fa fa-${l.icon}` + styleClasses: `${l.key.dasherize()} fa fa-${l.icon}` }; }); }, @@ -31,7 +31,7 @@ export default DropdownButton.extend({ text(notificationLevel) { const details = buttonDetails(notificationLevel); const { key } = details; - const icon = iconHTML(details.icon, { class: key }); + const icon = iconHTML(details.icon, { class: key.dasherize() }); if (this.get('buttonIncludesText')) { const prefix = this.get('i18nPrefix');