Skip to content

Commit

Permalink
Koenig - Use loose BEM naming for image style classes
Browse files Browse the repository at this point in the history
refs #9505
  • Loading branch information
kevinansfield committed May 22, 2018
1 parent 86c28e3 commit c50f60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/lib/mobiledoc/cards/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
let img = dom.createElement('img');
let imgClass = 'kg-image';
if (payload.imageStyle) {
imgClass = `${imgClass} kg-image--${payload.imageStyle}`;
imgClass = `${imgClass} kg-image-${payload.imageStyle}`;
}
img.setAttribute('src', payload.src);
img.setAttribute('class', imgClass);
Expand Down

0 comments on commit c50f60f

Please sign in to comment.