FIX: Class names should be dasherized, not underscored

This commit is contained in:
Robin Ward 2017-03-31 13:17:12 -04:00
parent 62be121328
commit f42b6054e6

View File

@ -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');